Small change for mkfs.xfs?

Eric Sandeen sandeen at sandeen.net
Sun Feb 28 16:37:32 CST 2010


Justin Piszcz wrote:
> 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
 
> Justin.
> 
> _______________________________________________
> xfs mailing list
> xfs at oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
> 




More information about the xfs mailing list