[blivet] Allow / in the name of all kinds of btrfs device (#1183061)
David Shea
dshea at redhat.com
Fri Jan 16 18:51:32 UTC 2015
On 01/16/2015 01:38 PM, David Shea wrote:
> ---
> blivet/devices/btrfs.py | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/blivet/devices/btrfs.py b/blivet/devices/btrfs.py
> index 13adbb4..b5df2d0 100644
> --- a/blivet/devices/btrfs.py
> +++ b/blivet/devices/btrfs.py
> @@ -138,6 +138,11 @@ class BTRFSDevice(StorageDevice):
> spec = super(BTRFSDevice, self).fstabSpec
> return spec
>
> + @classmethod
> + def isNameValid(cls, name):
> + # Override StorageDevice.isNameValid to allow /
> + return not('\x00' in name or name == '.' or name == '..')
> +
Of course, . and .. are also possible names. Trying again.
More information about the anaconda-patches
mailing list