A tool for remapping bad sectors in CURRENT?
Gary Jennejohn
gary.jennejohn at freenet.de
Wed Mar 17 12:05:45 UTC 2010
On Wed, 17 Mar 2010 12:41:33 +0100
Miroslav Lachman <000.fbsd at quip.cz> wrote:
> I absolutely don't understand how you get the number 4 (it is some magic
> for me :]) but it works!
>
> fsdb (inum: 3)> blocks
> Blocks for inode 3:
> Direct blocks:
> 3001 (1 frag)
>
> 3001 * 4 = 12004
>
> fsdb (inum: 3)> findblk 12004
> 12004: data block of inode 3
>
> Thank you for this hint!
>
Umm, it's standard C code: 1 << 2 = 4. It's a power of 2, in this
case 2 squared.
---
Gary Jennejohn
More information about the freebsd-current
mailing list