Hi,

I would like to propose a patch for LMI_FileSystemConfigurationService.LMI_CreateFileSystem. This method takes ElementName as a label for a new fs, but uses it only when creating btrfs.
With the proposed change a label can be set for other FSes too.

Best regards,
Alexander


diff --git a/src/lmi/storage/LMI_FileSystemConfigurationService.py b/src/lmi/storage/LMI_FileSystemConfigurationService.py
index 55b9528..c38d917 100644
--- a/src/lmi/storage/LMI_FileSystemConfigurationService.py
+++ b/src/lmi/storage/LMI_FileSystemConfigurationService.py
@@ -272,6 +272,7 @@ class LMI_FileSystemConfigurationService(ServiceProvider):
             action = blivet.ActionCreateDevice(volume)
         else:
             # create simple CreateFormat action
+            fmt.label = label
             action = blivet.ActionCreateFormat(devices[0], fmt)
 
         lmi.storage.util.storage.do_storage_action(
_______________________________________________
openlmi-devel mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/openlmi-devel

Reply via email to