public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Deal with incorrect checksums
@ 2013-09-06 18:11 Gabriel de Perthuis
  2013-09-06 18:11 ` [PATCH 1/2] libblkid: Abort after an incorrect checksum Gabriel de Perthuis
  2013-09-06 18:11 ` [PATCH 2/2] wipefs: Also wipe superblocks with bad checksums Gabriel de Perthuis
  0 siblings, 2 replies; 8+ messages in thread
From: Gabriel de Perthuis @ 2013-09-06 18:11 UTC (permalink / raw)
  To: Karel Zak; +Cc: Rolf Fokkens, util-linux, Gabriel de Perthuis

This is to avoid exposing backend devices that are supposed
to be used through a stacked device.

Good magic / bad csum superblocks are still exposed to wipefs.

Prompted by the bcache patch.

Can be pulled from https://github.com/g2p/util-linux/commits

Gabriel de Perthuis (2):
  libblkid: Abort after an incorrect checksum
  wipefs: Also wipe superblocks with bad checksums

 libblkid/src/blkid.h.in                 | 1 +
 libblkid/src/blkidP.h                   | 6 ++++++
 libblkid/src/probe.c                    | 7 +++++++
 libblkid/src/superblocks/lvm.c          | 9 ++++++---
 libblkid/src/superblocks/nilfs.c        | 3 +--
 libblkid/src/superblocks/silicon_raid.c | 7 ++++---
 libblkid/src/superblocks/superblocks.c  | 9 +++++++++
 libblkid/src/superblocks/via_raid.c     | 4 ++--
 misc-utils/wipefs.c                     | 3 ++-
 9 files changed, 38 insertions(+), 11 deletions(-)

-- 
1.8.4.25.g05e4ae6


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-09-16 11:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-06 18:11 [PATCH 0/2] Deal with incorrect checksums Gabriel de Perthuis
2013-09-06 18:11 ` [PATCH 1/2] libblkid: Abort after an incorrect checksum Gabriel de Perthuis
2013-09-14 15:59   ` Gabriel de Perthuis
2013-09-16  8:24     ` Karel Zak
2013-09-16 10:10       ` Gabriel de Perthuis
2013-09-16 11:11         ` Karel Zak
2013-09-14 17:03   ` [PATCH] " Gabriel de Perthuis
2013-09-06 18:11 ` [PATCH 2/2] wipefs: Also wipe superblocks with bad checksums Gabriel de Perthuis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox