Re: [PATCH] wipefs: Add --force option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 20, 2012 at 12:16:34PM +0100, Karel Zak wrote:
> On Mon, Nov 19, 2012 at 03:41:16PM +0000, Richard W.M. Jones wrote:
> > This change adds the --force option which, when used, undoes the above
> > flag change.  However you still have to use --force most of the time
> > when erasing something that isn't a plain unmounted filesystem.
> 
>  I'll improve the code. It's stupid disadvantage that --force is
>  necessary for things like partitions tables. We have to use
>  O_EXCL more carefully.

 ... it seems that this is unnecessary. It's possible to delete
 partition table (open with O_EXCL) if any of the partitions is not
 mounted. It seems that only mount(2) has any impact to O_EXCL.

 I guess that --force is enough.

    Karel


-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux