[PATCH] When a btrfs subvol's name is changed, change its subvol argument too.
Chris Lumens
clumens at redhat.com
Wed May 1 20:58:34 UTC 2013
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
--
1.8.1.2
More information about the anaconda-patches
mailing list