Hello,
Please consider commiting attached patch to support biosboot partition
creation.
(openlmi-storage correctly reports type of such existing partition
through LMI_DataFormat but can't create a new one.)
Best regards,
Alexander
commit 9897b359ac9e95c73a2a5e509c319e349b53dedf
Author: Alexander Lakhin <[email protected]>
Date: Fri Mar 13 14:13:56 2015 +0300
Add BIOSBOOT file system support
diff --git a/mof/LMI_Storage-Filesystem.mof b/mof/LMI_Storage-Filesystem.mof
index 546c5f8..2c2c1de 100644
--- a/mof/LMI_Storage-Filesystem.mof
+++ b/mof/LMI_Storage-Filesystem.mof
@@ -65,11 +65,11 @@ class LMI_FileSystemCapabilities : CIM_FileSystemCapabilities
[ Override("ActualFileSystemType"), Implemented(true),
ValueMap{"0", "2", "3", "4", "5", "6", "7", "8", "9", "10",
"11", "12", "13", "..",
- "32769", "32770", "32771", "32772", "32773" },
+ "32769", "32770", "32771", "32772", "32773", "32774" },
Values { "Unknown", "UFS", "HFS", "FAT", "FAT16", "FAT32",
"NTFS4", "NTFS5", "XFS", "AFS", "EXT2", "EXT3",
"REISERFS", "DMTF Reserved",
- "EXT4", "BTRFS", "JFS", "TMPFS", "VFAT"}]
+ "EXT4", "BTRFS", "JFS", "TMPFS", "VFAT", "BIOSBOOT"}]
uint16 ActualFileSystemType;
[ Implemented(true) ] uint16 SupportedPersistenceTypes[];
@@ -100,11 +100,11 @@ class LMI_FileSystemConfigurationCapabilities : CIM_FileSystemConfigurationCapab
[ Override("SupportedActualFileSystemTypes"), Implemented(true),
ValueMap{"0", "2", "3", "4", "5", "6", "7", "8", "9", "10",
"11", "12", "13", "..",
- "32769", "32770", "32771", "32772", "32773" },
+ "32769", "32770", "32771", "32772", "32773", "32774" },
Values { "Unknown", "UFS", "HFS", "FAT", "FAT16", "FAT32",
"NTFS4", "NTFS5", "XFS", "AFS", "EXT2", "EXT3",
"REISERFS", "DMTF Reserved",
- "EXT4", "BTRFS", "JFS", "TMPFS", "VFAT"}]
+ "EXT4", "BTRFS", "JFS", "TMPFS", "VFAT", "BIOSBOOT"}]
uint16 SupportedActualFileSystemTypes[];
@@ -139,11 +139,11 @@ class LMI_FileSystemSetting : CIM_FileSystemSetting
[ Override("ActualFileSystemType"), Implemented(true),
ValueMap{"0", "2", "3", "4", "5", "6", "7", "8", "9", "10",
"11", "12", "13", "..",
- "32769", "32770", "32771", "32772", "32773" },
+ "32769", "32770", "32771", "32772", "32773", "32774" },
Values { "Unknown", "UFS", "HFS", "FAT", "FAT16", "FAT32",
"NTFS4", "NTFS5", "XFS", "AFS", "EXT2", "EXT3",
"REISERFS", "DMTF Reserved",
- "EXT4", "BTRFS", "JFS", "TMPFS", "VFAT"}]
+ "EXT4", "BTRFS", "JFS", "TMPFS", "VFAT", "BIOSBOOT"}]
uint16 ActualFileSystemType;
[ Implemented(true) ] uint16 DataExtentsSharing;
@@ -206,11 +206,11 @@ class LMI_FileSystemConfigurationService : CIM_FileSystemConfigurationService
"NULL."),
ValueMap{"0", "2", "3", "4", "5", "6", "7", "8", "9", "10",
"11", "12", "13", "..",
- "32769", "32770", "32771", "32772", "32773" },
+ "32769", "32770", "32771", "32772", "32773", "32774" },
Values { "Unknown", "UFS", "HFS", "FAT", "FAT16", "FAT32",
"NTFS4", "NTFS5", "XFS", "AFS", "EXT2", "EXT3",
"REISERFS", "DMTF Reserved",
- "EXT4", "BTRFS", "JFS", "TMPFS", "VFAT"}]
+ "EXT4", "BTRFS", "JFS", "TMPFS", "VFAT", "BIOSBOOT"}]
uint16 FileSystemType,
[IN, Description (
"Label of the filesystem being "
diff --git a/src/lmi/storage/LMI_FileSystemCapabilities.py b/src/lmi/storage/LMI_FileSystemCapabilities.py
index 23d2692..99e295d 100644
--- a/src/lmi/storage/LMI_FileSystemCapabilities.py
+++ b/src/lmi/storage/LMI_FileSystemCapabilities.py
@@ -152,6 +152,7 @@ class LMI_FileSystemCapabilities(CapabilitiesProvider):
JFS = pywbem.Uint16(32771)
TMPFS = pywbem.Uint16(32772)
VFAT = pywbem.Uint16(32773)
+ BIOSBOOT = pywbem.Uint16(32774)
class SupportedPersistenceTypes(object):
Other = pywbem.Uint16(1)
diff --git a/src/lmi/storage/LMI_FileSystemConfigurationCapabilities.py b/src/lmi/storage/LMI_FileSystemConfigurationCapabilities.py
index 8587725..1bdb3ef 100644
--- a/src/lmi/storage/LMI_FileSystemConfigurationCapabilities.py
+++ b/src/lmi/storage/LMI_FileSystemConfigurationCapabilities.py
@@ -98,6 +98,7 @@ class LMI_FileSystemConfigurationCapabilities(CapabilitiesProvider):
JFS = pywbem.Uint16(0x8003)
TMPFS = pywbem.Uint16(0x8004)
VFAT = pywbem.Uint16(0x8005)
+ BIOSBOOT = pywbem.Uint16(0x8006)
class SupportedAsynchronousMethods(object):
CreateFileSystem = pywbem.Uint16(2)
diff --git a/src/lmi/storage/LMI_FileSystemConfigurationService.py b/src/lmi/storage/LMI_FileSystemConfigurationService.py
index c38d917..fe67acc 100644
--- a/src/lmi/storage/LMI_FileSystemConfigurationService.py
+++ b/src/lmi/storage/LMI_FileSystemConfigurationService.py
@@ -189,7 +189,8 @@ class LMI_FileSystemConfigurationService(ServiceProvider):
types.EXT3: 'ext3',
types.EXT4: 'ext4',
types.BTRFS: 'btrfs',
- types.VFAT: 'vfat'
+ types.VFAT: 'vfat',
+ types.BIOSBOOT: 'biosboot'
}
fsname = fstypes.get(param_filesystemtype, 'None')
if not fsname:
@@ -507,6 +508,7 @@ class LMI_FileSystemConfigurationService(ServiceProvider):
JFS = pywbem.Uint16(32771)
TMPFS = pywbem.Uint16(32772)
VFAT = pywbem.Uint16(32773)
+ BIOSBOOT = pywbem.Uint16(32774)
class DeleteFileSystem(object):
Job_Completed_with_No_Error = pywbem.Uint32(0)
Not_Supported = pywbem.Uint32(1)
diff --git a/src/lmi/storage/LocalFileSystemProvider.py b/src/lmi/storage/LocalFileSystemProvider.py
index daf74e9..b991c05 100644
--- a/src/lmi/storage/LocalFileSystemProvider.py
+++ b/src/lmi/storage/LocalFileSystemProvider.py
@@ -506,6 +506,7 @@ class LocalFileSystemProvider(FormatProvider, SettingHelper):
JFS = pywbem.Uint16(0x8003)
TMPFS = pywbem.Uint16(0x8004)
VFAT = pywbem.Uint16(0x8005)
+ BIOSBOOT = pywbem.Uint16(0x8006)
class FilenameCaseAttributes(object):
Unknown = pywbem.Uint16(0)
_______________________________________________
openlmi-devel mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/openlmi-devel