[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 4/6] Fix ordering of arguments to xfs_admin for writing fs label. (#556546)



xfs_admin expects -L <label> <device>.
---
 storage/formats/fs.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 3aee981..22291d6 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -1230,6 +1230,12 @@ class XFS(FS):
     _existingSizeFields = ["dblocks =", "blocksize ="]
     partedSystem = fileSystemType["xfs"]
 
+    def _getLabelArgs(self, label):
+        argv = []
+        argv.extend(self.defaultLabelOptions)
+        argv.extend([label, self.device])
+        return argv
+
 register_device_format(XFS)
 
 
-- 
1.6.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]