[master 4/4] Set a subvolspec format args when making a new BTRFS volume.
mulkieran
installerbot-noreply at redhat.com
Thu May 7 20:41:40 UTC 2015
From: mulhern <amulhern at redhat.com>
Set it from the MAIN_VOLUME_ID for a volume.
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/blivet.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/blivet/blivet.py b/blivet/blivet.py
index 0db833c..b89bef2 100644
--- a/blivet/blivet.py
+++ b/blivet/blivet.py
@@ -39,6 +39,7 @@
from .deviceaction import ActionDestroyFormat, ActionResizeDevice, ActionResizeFormat
from .devicelibs.edd import get_edd_dict
from .devicelibs.dasd import make_dasd_list, write_dasd_conf
+from .devicelibs.btrfs import MAIN_VOLUME_ID
from .errors import StorageError
from .size import Size
from .devicetree import DeviceTree
@@ -1023,6 +1024,7 @@ def newBTRFS(self, *args, **kwargs):
name = self.suggestContainerName(hostname=hostname)
if "label" not in fmt_args:
fmt_args["label"] = name
+ fmt_args['subvolspec'] = MAIN_VOLUME_ID
# discard fmt_type since it's btrfs always
kwargs.pop("fmt_type", None)
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/f6ff8a328d89f61bb032eda3812b44b71c9f849c
More information about the anaconda-patches
mailing list