On Fri, Sep 05, 2014 at 11:51:24PM +0800, Anand Jain wrote:
> Here is a test case which says it all..
> 
> mkfs.xfs -f $DEV
> mkfs.btrfs -f $DEV
> mount $DEV $MNT
> mount: /dev/vdiskc: more filesystems detected. This should not happen,
>        use -t <type> to explicitly specify the filesystem type or
>        use wipefs(8) to clean up the device.
> 
> mount: you must specify the filesystem type
> 
> with this patch btrfs_prepare_device() also wipes old FS if any,
> btrfs_prepare_device() is called after we have verified that
> user has provided -f option.

Good catch.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to