diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-01-24 22:03:36 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-01-24 22:03:36 +0000 |
commit | 163295099651a6aa71e8fbd5dfef4267242939d3 (patch) | |
tree | 0f23165959c3c3faaeba87dafd00c3675ad3d0f3 /fsset.py | |
parent | c827f3b84cbc3305eb23a9ddbd63d1fd06faaa8c (diff) | |
download | anaconda-163295099651a6aa71e8fbd5dfef4267242939d3.tar.gz anaconda-163295099651a6aa71e8fbd5dfef4267242939d3.tar.xz anaconda-163295099651a6aa71e8fbd5dfef4267242939d3.zip |
skeleton LVM code so that msf can start working on the real gui. doesn't
actually create the volumes or anything yet
Diffstat (limited to 'fsset.py')
-rw-r--r-- | fsset.py | 41 |
1 files changed, 41 insertions, 0 deletions
@@ -490,6 +490,47 @@ class raidMemberDummyFileSystem(FileSystemType): fileSystemTypeRegister(raidMemberDummyFileSystem()) +class lvmPhysicalVolumeDummyFileSystem(FileSystemType): + def __init__(self): + FileSystemType.__init__(self) + self.partedFileSystemType = parted.file_system_type_get("ext2") + self.partedPartitionFlags = [ parted.PARTITION_LVM ] + self.formattable = 1 + self.checked = 0 + self.linuxnativefs = 1 + self.name = "physical volume (LVM)" + self.maxSize = 2 * 1024 * 1024 + self.supported = 1 + + def isMountable(self): + return 0 + + def formatDevice(self, entry, progress, chroot='/'): + # pvcreate did all we need to format this partition... + pass + +fileSystemTypeRegister(lvmPhysicalVolumeDummyFileSystem()) + +class lvmVolumeGroupDummyFileSystem(FileSystemType): + def __init__(self): + FileSystemType.__init__(self) + self.partedFileSystemType = parted.file_system_type_get("ext2") + self.formattable = 1 + self.checked = 0 + self.linuxnativefs = 0 + self.name = "volume group (LVM)" + self.supported = 0 + self.maxSize = 2 * 1024 * 1024 + + def isMountable(self): + return 0 + + def formatDevice(self, entry, progress, chroot='/'): + # vgcreate does this + pass + +fileSystemTypeRegister(lvmVolumeGroupDummyFileSystem()) + class swapFileSystem(FileSystemType): enabledSwaps = {} |