All of lore.kernel.org
 help / color / mirror / Atom feed
* badblocks blocksize setting
@ 2003-03-15  0:09 Marius Reiner
  2003-03-15  8:16 ` Oleg Drokin
  0 siblings, 1 reply; 4+ messages in thread
From: Marius Reiner @ 2003-03-15  0:09 UTC (permalink / raw)
  To: reiserfs-list

Hi,
not really a reiserfs issue:
When following the FAQ everything is fine, I set blocksize zu 4096 as
debugreiserfs told me, and don't get any bad blocks.
Nevertheless I'm a bit concerned about the ones, badblocks reports, when
being invoked without the -b option. How does this happen?
Which docs are there on this topic apart from badblocks manpage/sourcecode?
Or should I just ignore them?
Thanks in advance
Marius


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

* Re: badblocks blocksize setting
  2003-03-15  0:09 badblocks blocksize setting Marius Reiner
@ 2003-03-15  8:16 ` Oleg Drokin
  2003-03-15 11:38   ` Marius Reiner
  0 siblings, 1 reply; 4+ messages in thread
From: Oleg Drokin @ 2003-03-15  8:16 UTC (permalink / raw)
  To: Marius Reiner; +Cc: reiserfs-list

Hello!

On Sat, Mar 15, 2003 at 01:09:19AM +0100, Marius Reiner wrote:

> not really a reiserfs issue:
> When following the FAQ everything is fine, I set blocksize zu 4096 as
> debugreiserfs told me, and don't get any bad blocks.

Good.

> Nevertheless I'm a bit concerned about the ones, badblocks reports, when
> being invoked without the -b option. How does this happen?

Can you please show the command line and the resulting output with badblocks?
Also what is in dmesg output after such a run?

> Or should I just ignore them?

There is not enough info yet.
Can you please tell us whole story?

Bye,
    Oleg

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

* Re: badblocks blocksize setting
  2003-03-15  8:16 ` Oleg Drokin
@ 2003-03-15 11:38   ` Marius Reiner
  2003-03-15 11:44     ` Oleg Drokin
  0 siblings, 1 reply; 4+ messages in thread
From: Marius Reiner @ 2003-03-15 11:38 UTC (permalink / raw)
  To: reiserfs-list

> Hello!
>
> On Sat, Mar 15, 2003 at 01:09:19AM +0100, Marius Reiner wrote:
>
> > not really a reiserfs issue:
> > When following the FAQ everything is fine, I set blocksize zu 4096 as
> > debugreiserfs told me, and don't get any bad blocks.
>
> Good.
>
> > Nevertheless I'm a bit concerned about the ones, badblocks reports, when
> > being invoked without the -b option. How does this happen?
>
> Can you please show the command line and the resulting output with
badblocks?
> Also what is in dmesg output after such a run?

# badblocks /dev/hdc8 -b 4096
# dmesg -c
invalidate: busy buffer
# badblocks /dev/hdc8
979932
# dmesg
invalidate: busy buffer
attempt to access beyond end of device
16:08: rw=0, want=979936, limit=979933
attempt to access beyond end of device
16:08: rw=0, want=979936, limit=979933

So using the -b option has the side-effect of not accessing the partition
beyond its end? I'm running a vanilla 2.4.20 kernel, actually it's the
kernels task to refuse those accesses, isn't it?
However, what I'm missing in the FAQ, is a short note about _why_ one should
use the -b option, so no worries arise when getting bad blocks without it.
Thanks
Marius


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

* Re: badblocks blocksize setting
  2003-03-15 11:38   ` Marius Reiner
@ 2003-03-15 11:44     ` Oleg Drokin
  0 siblings, 0 replies; 4+ messages in thread
From: Oleg Drokin @ 2003-03-15 11:44 UTC (permalink / raw)
  To: Marius Reiner; +Cc: reiserfs-list

Hello!

On Sat, Mar 15, 2003 at 12:38:23PM +0100, Marius Reiner wrote:

> > Can you please show the command line and the resulting output with
> badblocks?
> > Also what is in dmesg output after such a run?
> # badblocks /dev/hdc8 -b 4096
> # dmesg -c
> invalidate: busy buffer
> # badblocks /dev/hdc8
> 979932
> # dmesg
> invalidate: busy buffer
> attempt to access beyond end of device
> 16:08: rw=0, want=979936, limit=979933
> attempt to access beyond end of device
> 16:08: rw=0, want=979936, limit=979933

Hm, is 979936 looks like size of your device in kilobytes (+-3)?
If so, this is known kernel bug/problem, where it cannot access parts
of device at the end sometimes. This is somehow related to setblocksize.
This can be ignored, then.

> However, what I'm missing in the FAQ, is a short note about _why_ one should
> use the -b option, so no worries arise when getting bad blocks without it.

-b is needed so block output by bad blocks have the same bad blocks as
in reiserfs. (4096 bytes in size, without -b, badblocks
defaults to 1024 bytes blocks, so you need to divide its output by 4).

Bye,
    Oleg

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

end of thread, other threads:[~2003-03-15 11:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-15  0:09 badblocks blocksize setting Marius Reiner
2003-03-15  8:16 ` Oleg Drokin
2003-03-15 11:38   ` Marius Reiner
2003-03-15 11:44     ` Oleg Drokin

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.