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

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

 



On Mon, Nov 19, 2012 at 03:41:16PM +0000, Richard W.M. Jones wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=872831
> https://bugzilla.redhat.com/show_bug.cgi?id=865961
> 
> Unfortunately this means you nearly always need to use the --force
> option with wipefs when trying to wipe something which is not an
> unmounted filesystem.
> 
> Tested using a modified version of libguestfs which detects if wipefs
> supports the --force option, and if it does unconditionally adds it.
> I verified that this fixes the virt-format utility on Fedora 18.

 Applied, thanks.

> 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.

    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