Date: Wed, 17 Mar 2010 13:05:42 +0100 From: Gary Jennejohn <gary.jennejohn@freenet.de> To: Miroslav Lachman <000.fbsd@quip.cz> Cc: freebsd-current@freebsd.org Subject: Re: A tool for remapping bad sectors in CURRENT? Message-ID: <20100317130542.3fe19ba0@ernst.jennejohn.org> In-Reply-To: <4BA0BFED.7050103@quip.cz> References: <20100308102918.GA5485@localhost> <4B94DDC8.5080008@quip.cz> <20100308115052.GA31896@office.redwerk.com> <4B94FBA6.5090107@quip.cz> <861vfq995i.fsf@ds4.des.no> <4B9BF957.4060507@quip.cz> <86eijn3of2.fsf@ds4.des.no> <4B9CB287.9080205@quip.cz> <20100314123859.47664ace@ernst.jennejohn.org> <4B9D0C65.7000809@quip.cz> <20100314184806.3eddf33b@ernst.jennejohn.org> <4BA0BFED.7050103@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 17 Mar 2010 12:41:33 +0100 Miroslav Lachman <000.fbsd@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100317130542.3fe19ba0>