From: Petr Uzel <puzel@suse.cz>
To: util-linux <util-linux@vger.kernel.org>
Subject: Re: [PATCH] libblkid: make blkid_do_wipe() work with probes with offset
Date: Fri, 22 Apr 2016 16:38:24 +0200 [thread overview]
Message-ID: <20160422143824.GA3205@skipper.site> (raw)
In-Reply-To: <20160419091851.nzetsxvea7klztbm@ws.net.home>
[-- Attachment #1: Type: text/plain, Size: 1497 bytes --]
On Tue, Apr 19, 2016 at 11:18:51AM +0200, Karel Zak wrote:
> On Tue, Apr 19, 2016 at 11:05:02AM +0200, Petr Uzel wrote:
> > On Mon, Apr 18, 2016 at 08:00:18PM +0200, Karel Zak wrote:
> > > On Mon, Apr 18, 2016 at 04:22:05PM +0200, Petr Uzel wrote:
> > > > When a probe is created with an offset, e.g. via
> > > > blkid_probe_set_device(), this offset is correctly used when looking for
> > > > the signatures, but is not respected by blkid_do_wipe() function.
> > > > Therefore the signature is removed from an invalid location.
> > >
> > > Wow, excellent catch.
> >
> > Thanks, feels good to again contribute a fix after such a long time :)
> >
> > > How did you found it? Do you use libblkid in some partitioning tool or
> > > installer?
> >
> > Yes, I'm trying to implement a --wipesignatures for parted - this
> > would wipe the signatures from a new partition, _before_ the kernel
> > is informed. This is to avoid mess like RAID autoassembly...
> >
> > [If only there was some sane mechanism lock a device to temporarily
> > prevent udev from touching it :/]
>
> since v2.28 fdisk wipes disks (--wipe=auto,always,never), but it does
> not care about partitions.
>
> Maybe we can improve it and add --wipe-partitions too. IMHO it should
> not be enabled by default, because change disk layout and keep
> filesystems seems like a valid use-case.
Agreed, it certainly has to be disabled by default.
Petr
--
Petr Uzel
TL SUSE L3 Team 2
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2016-04-22 14:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-18 14:22 [PATCH] libblkid: make blkid_do_wipe() work with probes with offset Petr Uzel
2016-04-18 18:00 ` Karel Zak
2016-04-19 9:05 ` Petr Uzel
2016-04-19 9:18 ` Karel Zak
2016-04-22 14:38 ` Petr Uzel [this message]
2016-05-13 13:50 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160422143824.GA3205@skipper.site \
--to=puzel@suse.cz \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox