All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Murphy <lists@colorremedies.com>
To: Zach Brown <zab@redhat.com>
Cc: Hugo Mills <hugo@carfax.org.uk>, Nick Lee <email@nickle.es>,
	linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Question: How can I recover this partition? (unable to find logical $hugenum len 4096)
Date: Thu, 29 Aug 2013 13:37:51 -0600	[thread overview]
Message-ID: <528DF163-08F5-412D-8351-ACC853AC418D@colorremedies.com> (raw)
In-Reply-To: <20130829173519.GN26818@lenny.home.zabbo.net>


On Aug 29, 2013, at 11:35 AM, Zach Brown <zab@redhat.com> wrote:

>>   If those fail, then look in dmesg for errors relating to the log
>> tree -- if that's corrupt and can't be read (or causes a crash), use
>> btrfs-zero-log.
> 
> In a bit of a tangent:
> 
> btrfs-zero-log throws away data that fsync/sync could have previously
> claimed was stable on disk.
> 
> Given how often this is thrown around as a solution to a broken
> partition, should the tool jump up and down and make it clear that it's
> about to roll the file system back?  This seems like relevant
> information.
> 
> Right now, as far as I can tell, it's completely undocumented and
> silent.

Yes, I think it helps remove some burden on the list answering questions about a tool that doesn't have any documentation, to have a warning.

How much longer will btrfs-zero-log be needed? If whatever it's doing isn't obviated by future improvements to btrfsck, and this sort of big hammer approach is still needed in some worse case scenarios, then it probably hurts no one to flag the user with essentially how you described it. I think documentation is a greater burden to create, and less likely to be consulted.

"Proceeding will roll back the file system to a previous state, and may cause the loss of successfully written data. Proceed? (Y/N)"

Alternative language could include a suggestion or reminder of what should be tried before proceeding, if applicable.



Chris Murphy

  reply	other threads:[~2013-08-29 19:37 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-22  6:47 Question: How can I recover this partition? (unable to find logical $hugenum len 4096) Nicholas Lee
2013-08-22 14:09 ` Mitch Harder
2013-08-22 19:23   ` Nicholas Lee
2013-08-22 19:38     ` Nicholas Lee
2013-08-22 22:58       ` Chris Murphy
2013-08-23  0:58         ` Chris Murphy
     [not found]           ` <6A12FF1B-5E1A-4F6F-92DA-41E52152E6F2@nickle.es>
2013-08-26 17:26             ` Nicholas Lee
2013-08-26 17:36               ` Chris Murphy
     [not found]                 ` <CAGURm2FS=YTuBpbrg7BV=Un8ZCp9xYZae-WuqhjV29xXA7e0jw@mail.gmail.com>
2013-08-26 19:10                   ` Chris Murphy
2013-08-26 19:31                     ` Hugo Mills
2013-08-27  3:39                       ` Chris Murphy
2013-08-29 17:35                       ` Zach Brown
2013-08-29 19:37                         ` Chris Murphy [this message]
2013-08-29 19:40                           ` Hugo Mills
2013-08-29 19:44                             ` Chris Murphy
2013-08-29 19:53                               ` Hugo Mills
2013-08-29 20:19                                 ` Chris Murphy
2013-08-29 20:28                                   ` Chris Murphy
2013-08-30 14:44                                   ` Eric Sandeen
2013-08-30 14:54                                     ` Hugo Mills
2013-08-23  0:59         ` Nicholas Lee
2013-08-23  1:26           ` Chris Murphy
2013-08-22 23:53 ` Duncan
     [not found] ` < pan$c2c58$61dbf027$55d0c5a2$71b9b679@cox.net>
2013-08-23  1:47   ` Duncan

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=528DF163-08F5-412D-8351-ACC853AC418D@colorremedies.com \
    --to=lists@colorremedies.com \
    --cc=email@nickle.es \
    --cc=hugo@carfax.org.uk \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=zab@redhat.com \
    /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 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.