[master 2/2] Deprecate createSubVolumes method
vojtechtrefny
installerbot-noreply at redhat.com
Thu Oct 8 12:59:10 UTC 2015
From: Vojtech Trefny <vtrefny at redhat.com>
Signed-off-by: Vojtech Trefny <vtrefny at redhat.com>
---
blivet/devices/btrfs.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/blivet/devices/btrfs.py b/blivet/devices/btrfs.py
index 0cc888a..ceaff16 100644
--- a/blivet/devices/btrfs.py
+++ b/blivet/devices/btrfs.py
@@ -351,14 +351,12 @@ def listSubVolumes(self, snapshotsOnly=False):
return subvols
+ @util.deprecated('1.16', '')
def createSubVolumes(self):
- self._do_temp_mount()
-
for _name, subvol in self.subvolumes:
if subvol.exists:
continue
- subvol.create(mountpoint=self._temp_dir_prefix)
- self._undo_temp_mount()
+ subvol.create()
def removeSubVolume(self, name):
raise NotImplementedError()
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/caf9abc1806a40f036a78fc7f35e6ac32ec633cd
More information about the anaconda-patches
mailing list