Re: A tool for remapping bad sectors in CURRENT?

From: Gary Jennejohn <gary.jennejohn_at_freenet.de>
Date: Wed, 17 Mar 2010 13:05:42 +0100
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
Received on Wed Mar 17 2010 - 11:05:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:01 UTC