All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ric Wheeler <ric@emc.com>
To: David Masover <ninja@slaphack.com>
Cc: Peter <sw98234@hotmail.com>, reiserfs-list@namesys.com
Subject: Re: FEATURE Req: integrate badblocks check into fsck.reiser*
Date: Sun, 03 Sep 2006 22:41:34 -0400	[thread overview]
Message-ID: <44FB925E.2000300@emc.com> (raw)
In-Reply-To: <44F8BE78.1080503@slaphack.com>



David Masover wrote:

> Peter wrote:
>
>> On Fri, 01 Sep 2006 17:27:20 -0500, David Masover wrote:
>> snip...
>>
>>>> both mkfs.reiserfs and fsck.reiserfs have -B option to accept list of
>>>> bad blocks. We thought that should be enough.
>>>
>>> It really should.  Why bother with a patch?  Just write a wrapper 
>>> script
>>> that runs badblocks and passes in the list to mkfs.
>>
>>
>> It was just a thought from userland. My perspective was that a user, 
>> not a
>> hard-boiled geek, might get lulled into a false sense of security but 
>> may
>> not have the wherewithal to write a wrapper. If nothing else, when the
>> final doc is written (did I say final?:)), it should include a notice
>> about not running badblocks.
>
>
> Well, let's see...  Most hard drives come more thoroughly tested at 
> the factory than anything badblocks would do.  Also, it seems 
> redundant to have every single mkfs have to implement a badblocks flag..
>
> I'd suggest a universal wrapper, then, or a modification to the "mkfs" 
> frontend, so that this works the same way across all filesystems. 
> Something like "mkfs -B -t reiser4"


I don't think that modern drives that fail writes are worth using for a 
brand new file system.

While failing reads is quite common and can be caused by temporal issues 
(dirt on the platter, a bad write, etc), failed writes are almost always 
a sign that you have a serious issue.  Almost all modern drives remap 
each failed write to a bad sector automatically.  This action only fails 
if you have exhausted this remapping area (or have some really nasty 
issue like a bad cable, bad write head, etc).

Having mkfs ignore bad writes would seem to encourage users to create a 
new file system on a disk that is known to be bad & most likely not 
going to function well.  If a user ever has a golden opportunity to toss 
a drive in the trash, it is when they notice mkfs fails ;-)  This option 
to mkfs sounds like an invitation to disaster.

The other tools (debugreiserfs, reiserfsck, etc) do need to be able to 
handle bad blocks as well as possible since they are often needed during 
a salvage operation. in order to recover data (which might need to be 
migrated to a new disk). It is not clear to me that passing a list of 
bad blocks helps them as much as a robust general purpose error recovery 
support.







  parent reply	other threads:[~2006-09-04  2:41 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 [this message]
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
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=44FB925E.2000300@emc.com \
    --to=ric@emc.com \
    --cc=ninja@slaphack.com \
    --cc=reiserfs-list@namesys.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.