Merge pull request #11168 from dmyerscough/develop

mkpart should only create partitions and mkpartfs should support xfs
This commit is contained in:
Joseph Hall 2014-03-13 06:42:58 -06:00
commit 95855a0abf

View File

@ -444,7 +444,7 @@ def mkpart(device, part_type, fs_type, start, end):
)
if fs_type not in set(['ext2', 'fat32', 'fat16', 'linux-swap', 'reiserfs',
'hfs', 'hfs+', 'hfsx', 'NTFS', 'ufs']):
'hfs', 'hfs+', 'hfsx', 'NTFS', 'ufs', 'xfs']):
raise CommandExecutionError(
'Invalid fs_type passed to partition.mkpart'
)
@ -487,7 +487,7 @@ def mkpartfs(device, part_type, fs_type, start, end):
)
if fs_type not in set(['ext2', 'fat32', 'fat16', 'linux-swap', 'reiserfs',
'hfs', 'hfs+', 'hfsx', 'NTFS', 'ufs']):
'hfs', 'hfs+', 'hfsx', 'NTFS', 'ufs', 'xfs']):
raise CommandExecutionError(
'Invalid fs_type passed to partition.mkpartfs'
)