Skip to contentSkip to conversation

Small change for mkfs.xfs?

DISCUSSION Justin Piszcz 2 participants 2 messages Feb 27, 2010 – Feb 28, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

# mkfs.xfs /dev/md0
mkfs.xfs: /dev/md0 appears to contain an existing filesystem (ext3).
mkfs.xfs: Use the -f option to force overwrite.

This occurs if the filesystem is ext4. Need to differentiate between the two FS if possible?

Justin.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#1 lore raw
Quoted 8 lines · Justin Piszcz

Hi,

# mkfs.xfs /dev/md0
mkfs.xfs: /dev/md0 appears to contain an existing filesystem (ext3).
mkfs.xfs: Use the -f option to force overwrite.

This occurs if the filesystem is ext4. Need to differentiate between the two FS if possible?

Why, you're just overwriting it anyway ;)

FWIW, recent xfsprogs built against recent libblkid will detect ext4 correctly.

libdisk could be patched if anyone really cared enough but that's deprecated going forward...

-Eric

Quoted 7 lines

Justin.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs