[PATCH] When a btrfs subvol's name is changed, change its subvol argument too.

Vratislav Podzimek vpodzime at redhat.com
Thu May 2 08:40:43 UTC 2013


On Wed, 2013-05-01 at 16:58 -0400, Chris Lumens wrote:
> Related: rhbz#892363
> ---
>  blivet/devicefactory.py | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py
> index 88336d1..a16bb92 100644
> --- a/blivet/devicefactory.py
> +++ b/blivet/devicefactory.py
> @@ -1306,3 +1306,10 @@ class BTRFSFactory(DeviceFactory):
>          kwargs["metaDataLevel"] = self.container_raid_level
>          kwargs["subvol"] = True
>          return self.storage.newBTRFS(*args, **kwargs)
> +
> +    def _set_name(self):
> +        super(BTRFSFactory, self)._set_name()
> +        if self.device_name is None:
> +            return
> +
> +        self.device.format.options = "subvol=" + self.device.name
These both look good to me.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list