public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Small change for mkfs.xfs?
@ 2010-02-27 11:29 Justin Piszcz
  2010-02-28 22:37 ` Eric Sandeen
  0 siblings, 1 reply; 2+ messages in thread
From: Justin Piszcz @ 2010-02-27 11:29 UTC (permalink / raw)
  To: xfs

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
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Small change for mkfs.xfs?
  2010-02-27 11:29 Small change for mkfs.xfs? Justin Piszcz
@ 2010-02-28 22:37 ` Eric Sandeen
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Sandeen @ 2010-02-28 22:37 UTC (permalink / raw)
  To: Justin Piszcz; +Cc: xfs

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@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
> 

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-28 22:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-27 11:29 Small change for mkfs.xfs? Justin Piszcz
2010-02-28 22:37 ` Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox