linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hubert Kario <hka@qbs.com.pl>
To: dave@jikos.cz
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH v2 1/5] btrfs: add command to zero out superblock
Date: Wed, 09 May 2012 19:23:47 +0200	[thread overview]
Message-ID: <5640951.VQCHRfAj9R@k85hala03> (raw)
In-Reply-To: <20120509171807.GO19331@twin.jikos.cz>

On Wednesday 09 of May 2012 19:18:07 David Sterba wrote:
> On Thu, May 03, 2012 at 03:11:45PM +0200, Hubert Kario wrote:
> > nice, didn't know about this. Such functionality would be nice to h=
ave.
> > But then I don't think that a "recreate the array if the parameters=
 are
> > the
> > same" is actually a good idea, lots of space for error. A pair of
> > functions:
> >=20
> > btrfs dev zero-superblock
> > btrfs dev restore-superblock
>=20
> As a user, I'm not sure what can I expect from the restore command. F=
rom
> where does it restore? Eg. a file?
>=20
> As a tester I have use for a temporary clearing of a superblock on a
> device, then mount it with -o degraded, work work, and then undo
> clearing. So, my idea is like
>=20
>   btrfs device zero-superblock --undo
>=20
> with the obvious sanity checks. A regular user would never need to ca=
ll
> this.

Yes, that's a better idea.

--=20
Hubert Kario
QBS - Quality Business Software
02-656 Warszawa, ul. Ksawer=F3w 30/85
tel. +48 (22) 646-61-51, 646-74-24
www.qbs.com.pl
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2012-05-09 17:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-01 12:40 [PATCH v2 1/5] btrfs: add command to zero out superblock Hubert Kario
2012-05-01 12:40 ` [PATCH v2 2/5] handle null pointers in btrfs_prepare_device Hubert Kario
2012-05-01 12:40 ` [PATCH v2 3/5] Remove unused option " Hubert Kario
2012-05-02 14:28 ` [PATCH v2 1/5] btrfs: add command to zero out superblock David Sterba
2012-05-02 14:48   ` David Sterba
2012-05-02 16:42   ` Hubert Kario
2012-05-02 17:36     ` David Sterba
2012-05-03 13:11       ` Hubert Kario
2012-05-09 17:18         ` David Sterba
2012-05-09 17:23           ` Hubert Kario [this message]

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=5640951.VQCHRfAj9R@k85hala03 \
    --to=hka@qbs.com.pl \
    --cc=dave@jikos.cz \
    --cc=linux-btrfs@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;
as well as URLs for NNTP newsgroup(s).