]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: support zone reset for wipefs
authorNaohiro Aota <naohiro.aota@wdc.com>
Mon, 26 Apr 2021 05:50:36 +0000 (14:50 +0900)
committerKarel Zak <kzak@redhat.com>
Mon, 24 May 2021 11:39:53 +0000 (13:39 +0200)
commitdb221158757e93912a36a58a5403201bf82edee5
treee3dab73830221fa2c6e47d68b7076dd2d5efa115
parent6be38dccae0c6f8d8246bc60aac177e783eeac43
libblkid: support zone reset for wipefs

We cannot overwrite superblock magic in a sequential required zone. So,
wipefs cannot work as it is. Instead, this commit implements the wiping by
zone resetting.

Zone resetting must be done only for a sequential write zone. This is
checked by is_conventional().

Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
libblkid/src/probe.c