mkfs.xfs uses -f instead of -F flag

mkfs.xfs uses the -f instead of -F flag to force creating a filesystem on a devices that have an existing filesystem
reviewable/pr18780/r1
jravetch 10 years ago
parent d2d0ed2259
commit c89ce9e8d7

@ -97,7 +97,7 @@ def main():
cmd = None cmd = None
if fstype in ['ext2', 'ext3', 'ext4', 'ext4dev']: if fstype in ['ext2', 'ext3', 'ext4', 'ext4dev']:
force_flag="-F" force_flag="-F"
elif fstype in ['btrfs']: elif fstype in ['xfs', 'btrfs']:
force_flag="-f" force_flag="-f"
else: else:
force_flag="" force_flag=""

Loading…
Cancel
Save