All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Masover <ninja@slaphack.com>
To: ric@emc.com
Cc: Hans Reiser <reiser@namesys.com>, Peter <sw98234@hotmail.com>,
	reiserfs-list@namesys.com
Subject: Re: FEATURE Req: integrate badblocks check into fsck.reiser*
Date: Thu, 07 Sep 2006 12:35:06 -0500	[thread overview]
Message-ID: <4500584A.4040601@slaphack.com> (raw)
In-Reply-To: <4500529F.2040603@emc.com>

Ric Wheeler wrote:
> David Masover wrote:

>> Why do you presume to make this decision for users?
> 
> It's not a decision that I want to make for users, it is a decision that 
> Hans and his team need to make about how best to spend their limited 
> resources.

Agreed.  It's not important if it takes more than, say, an hour.

> It will also give more users a bad experience with the file system, 
> since users rarely have the in depth knowledge required to make this 
> kind of choice.

While it's true that most users just click through dialog boxes, I 
imagine this would be sufficient:

===WARNING===WARNING===WARNING===
---------------------------------
THIS DISK IS BAD!
If you continue with the format,
we will not help you when you lose data.
When, not if.  You are strongly encouraged to
THROW THIS DISK OUT!
---------------------------------------------
ARE YOU ABSOLUTELY SURE YOU WANT TO CONTINUE?
(yes/no):

And require an actual "yes" or "no" answer.  No "y/n".

Now, compare that to a filesystem which doesn't allow badblocks in mkfs 
at all.  While it's rare, I suspect that would be a worse experience if 
you actually had a real need for it.  If you've got a huge 300 gig drive 
with some bad blocks, you can always throw some stuff on it anyway, for 
backup, or stuff you don't care about, even knowing it'll fail soon.

Again, probably not a high priority item at all, but it certainly won't 
make the user experience worse.  Any user who says "yes" to the above 
warning does not get to complain about their experience.

> Here we mostly agree.  The need for enhanced tools is not to encourage 
> people to keep using bad drives, rather to allow them to fsck & remount 
> a drive for data recovery.  If you cannot mount & fsck fails to repair 
> enough to give you at least a readable file system, then you are in real 
> trouble ;-)
> 
> Also, unlike failing writes, disk read errors are quite often ephemeral 
> and will be self correcting on the next write (you might get an error 
> from dust, etc that gets "swept" clean on the next write).

Either one, I would personally feel quite a lot safer grabbing a disk 
image and doing the fsck once the image was on known good media.

One thing that would be even better here, though, if you don't want to 
spend the time for a huge backup:  A way to tell badblocks to only scan 
space which is actually being used, and then enough free space to make 
sure relocations work.  If you're mounting readonly, you shouldn't care 
about marking every single bad sector in free space.  I guess this would 
require a lot more intelligence from fsck, though -- it would have to be 
able to constantly check for bad blocks, as opposed to just running 
badblocks once and grabbing a list to avoid.

  reply	other threads:[~2006-09-07 17:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-01 18:23 FEATURE Req: integrate badblocks check into fsck.reiser* Peter
2006-09-01 18:50 ` Vladimir V. Saveliev
2006-09-01 19:26   ` Hans Reiser
2006-09-01 22:27   ` David Masover
2006-09-01 23:00     ` Hans Reiser
2006-09-01 23:02     ` Peter
2006-09-01 23:12       ` David Masover
2006-09-01 23:16         ` Hans Reiser
2006-09-04  2:41         ` Ric Wheeler
2006-09-06  0:53           ` Hans Reiser
2006-09-06 15:08             ` David Masover
2006-09-07 10:35               ` Ric Wheeler
2006-09-07 16:22                 ` David Masover
2006-09-07 17:10                   ` Ric Wheeler
2006-09-07 17:35                     ` David Masover [this message]
2006-09-08 12:29                       ` Peter

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=4500584A.4040601@slaphack.com \
    --to=ninja@slaphack.com \
    --cc=reiser@namesys.com \
    --cc=reiserfs-list@namesys.com \
    --cc=ric@emc.com \
    --cc=sw98234@hotmail.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.