xfs
[Top] [All Lists]

XFS bmap to disk lba question.

To: nathans@xxxxxxx, xfs@xxxxxxxxxxx
Subject: XFS bmap to disk lba question.
From: "Michael Li (gmail)" <mikore.li@xxxxxxxxx>
Date: Fri, 14 Jul 2006 01:58:04 +0800
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding; b=K0iMu0RreeXqVPd5bAO4CIgVFLEeUtMA1Ty4aFb4kdh4LxvnQb6QI4mdTOkfYDtW2LyGaHNLaGbDqwVeZXBq++AM1eCAkYmtxc0kFejMxveXvOvAC14V8GFWK57AQzzcfoFpf9zB2/uPrkvYOLtDDdp0EIzSDc/zRPr6DBziTWg=
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
Hi, Nathans and all,

I am looking for the way to map bmap of file extent to disk physical LBA on IRIX/CXFS. Since here is the BEST place to get help about XFS, I send my confusion to you.

We know that the command xfs_bmap can show us the file's extent range, for example [20 - 100], but how can we know the real physical secoter ID (or named as LBA) of file's first block(512Bytes) on a raw disk? I've read XVM admin for IRIX, it show us less clue for this mapping. We can get this mapping method on linux, as linux/xfs is open sourced, but IRIX is not, we don't know how to do it on IRIX, although the filesystem is the in the same name XFS.

Furthermore, is it the same way to mapping the bmap/LBA in a striped volume. For example: a file on striped volume is in bmap range[20, 1000]. there are 3 physical disks(disk1/disk2/disk3) in the stripe, stripe unit is 128. each stripe unit has 32 512B-blocks. How can we map the first block in the file to one of disk's X sector? After read XVM document. the stripe chunksize should be 128*32 blocks, the stripe width is 3. In the special case, the file's first block must belong to disk1. But how can we know the real LBA on disk1? assume it is a very simple stripe group, not for log subvolume/realtime subvolume.

Could you help me?

Thanks very much!

Michael

BTW: If we should not talk about IRIX here, I will stop posting such a topic here. Sorry for the noise.


<Prev in Thread] Current Thread [Next in Thread>