> I have 2 concerns with -ff: > 1. I think the right flag would be -F, which is more in keeping with the > existing CLI (e.g. see zpool import -f / -F, and zfs receive -F) > 2. I'm not a big fan of making zpool overwrite unknown data. Even zpool create > / zpool add will give a specific warning if it detects another filesystem type > (e.g. UFS) present on the device, and it will refuse to add the device if it's > currently mounted. Can we make zpool labelclear -F at least that > conservative?
My +1 for both -Igor > # newfs /dev/dsk/c1t1d0s0 > # zpool create test c1t1d0s0 > invalid vdev specification > use '-f' to override the following errors: > /dev/dsk/c1t1d0s0 contains a ufs filesystem. > # zpool create test c1t1d0 > invalid vdev specification > use '-f' to override the following errors: > /dev/dsk/c1t1d0s0 contains a ufs filesystem. > # mount /dev/dsk/c1t1d0s0 /mnt > # zpool create -f test c1t1d0 > invalid vdev specification > the following errors must be manually repaired: > /dev/dsk/c1t1d0s0 is currently mounted on /mnt. Please see umount(1M). > # zpool create -f test c1t1d0 > <success> > > You are receiving this because you are subscribed to this thread. > Reply to this email directly or view it on GitHub > <https://github.com/openzfs/openzfs/pull/83#issuecomment-205021076> > > openzfs-developer | Archives > <https://www.listbox.com/member/archive/274414/=now> > <https://www.listbox.com/member/archive/rss/274414/28059325-76ffcbac> | > Modify > <https://www.listbox.com/member/?& > 3> Your Subscription <http://www.listbox.com> ------------------------------------------- openzfs-developer Archives: https://www.listbox.com/member/archive/274414/=now RSS Feed: https://www.listbox.com/member/archive/rss/274414/28015062-cce53afa Modify Your Subscription: https://www.listbox.com/member/?member_id=28015062&id_secret=28015062-f966d51c Powered by Listbox: http://www.listbox.com