All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Wiping for newly created LVs, support for blkid_wiping (configurable)
@ 2013-11-15 15:00 Peter Rajnoha
  0 siblings, 0 replies; only message in thread
From: Peter Rajnoha @ 2013-11-15 15:00 UTC (permalink / raw)
  To: lvm-devel

This patchset reuses existing signature recognition and wiping
that is already used during pvcreate. This refactor makes it possible
to use it for lvcreate and it's also bound to a new -W/--wipesignatures {y/n}
option for lvcreate.

The aim here is to wipe those signatures before any event-based scanning
happens. If those signatures are not properly wiped, we could possibly end
up with unwanted activation or mount of some old block device subsystem or
filesystem that just fits the newly created LV data area and which is then
recognized after event-based scans.

Also, this patchset adds a new configure option --enable-blkid_wiping
with which we link with libblkid to reuse the "wipefs" functionality
(that is much richer in signature/filesystem recognition).

Peter Rajnoha (6):
  device: add wipe_known_sbs wrapper fn
  lvcreate: recognize --wipesignatures arg
  lv_manip: rename set_lv -> wipe_lv and include signature wiping capability
  man: lvcreate -W/--wipesignatures {y/n}
  configure: add --enable-blkid_wiping
  wiping: add support for blkid wiping

 configure                        | 126 ++++++++++++++++++++++++++++++++++
 configure.in                     |  21 ++++++
 lib/device/dev-type.c            | 143 +++++++++++++++++++++++++++++++++++++++
 lib/device/dev-type.h            |   4 ++
 lib/metadata/lv_manip.c          |  98 +++++++++++++++++++--------
 lib/metadata/metadata-exported.h |  19 +++++-
 lib/metadata/metadata.c          |  46 ++-----------
 lib/metadata/mirror.c            |  18 +++--
 lib/metadata/raid_manip.c        |  11 ++-
 lib/metadata/thin_manip.c        |  12 +++-
 lib/misc/configure.h.in          |   3 +
 liblvm/lvm_lv.c                  |   1 +
 make.tmpl.in                     |   5 +-
 man/lvcreate.8.in                |  14 +++-
 tools/Makefile.in                |   2 +-
 tools/args.h                     |   1 +
 tools/commands.h                 |   4 +-
 tools/lvchange.c                 |  13 +++-
 tools/lvconvert.c                |  27 +++++++-
 tools/lvcreate.c                 |  15 ++--
 20 files changed, 488 insertions(+), 95 deletions(-)

-- 
1.8.4.2



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-11-15 15:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-15 15:00 [PATCH 0/6] Wiping for newly created LVs, support for blkid_wiping (configurable) Peter Rajnoha

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.