linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Allow for quick removing of btrfs signature from block device
@ 2012-05-01 12:38 Hubert Kario
  2012-05-01 12:43 ` Tomasz Torcz
  0 siblings, 1 reply; 3+ messages in thread
From: Hubert Kario @ 2012-05-01 12:38 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Hubert Kario

If there is a btrfs created on a raw block device (raw disk) and later there
are created partitions and btrfs file systems created on partitions, subsequent
`btrfs device scan` won't remove the btrfs signature from the raw block device.

This patch series adds `btrfs device zero super <dev>` command to remove the
btrfs signature from the device as well as fix few minor problems in
btrfs_prepare_device function.

This obsoletes my previous patch "btrfs: add command to zero out superblock".

V1->V2 changes: better error reporting when there are problems with only one
of the devices passed as parameters.

Hubert Kario (5):
  btrfs: add command to zero out superblock
  handle null pointers in btrfs_prepare_device
  Remove unused option in btrfs_prepare_device
  better error handling in btrfs_prepare_device()
  btrfs: remove unused variables

 btrfs-vol.c    |    2 +-
 cmds-device.c  |   45 ++++++++++++++++++++++++++++++++++++++++++++-
 man/btrfs.8.in |    7 +++++++
 mkfs.c         |   12 ++++++------
 utils.c        |   41 ++++++++++++++++++++++++-----------------
 utils.h        |    4 ++--
 6 files changed, 84 insertions(+), 27 deletions(-)

-- 
1.7.10


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

end of thread, other threads:[~2012-05-01 13:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-01 12:38 [PATCH v2 0/5] Allow for quick removing of btrfs signature from block device Hubert Kario
2012-05-01 12:43 ` Tomasz Torcz
2012-05-01 13:37   ` Hubert Kario

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).