Thai Nguyen wrote:
> For various purposes in the engineering work we do to validate our disk 
> controller product, we need to be able to ascertain what LBAs on the disk 
> actually correspond to a given file written out under ZFS. Once a file is 
> written and closed, we want to be able to traverse associated ZFS directory 
> and allocation structures to uncover where ultimately the data sectors for 
> the file live on the disk. To understand this, we want to write a utility 
> that "walks" through the relevant file system housekeeping objects winding 
> through until we have all the pieces uncovered which allow us to translate a 
> given offset of a file to actual LBAs on the disk.
> 
> It is our understanding that there may be some utilities which perform 
> similar operations (or at least contain a lot of the traversing logic we 
> would require). Can you please point us in the right direction for requisite 
> documentation and related source code? Any other information and/or 
> suggestions would be greatly appreciated.

[EMAIL PROTECTED] is the best place to ask.

However I think for validating a disk controller you should NOT go 
through a filesystem but instead read/write directly on the OS device nodes.

-- 
Darren J Moffat
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to