DragonFly hammer List (threaded) for 2009-05
DragonFly BSD
DragonFly hammer List (threaded) for 2009-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Resolving data_offset and data_len


From: Daniel Lorch <daniel.lorch@xxxxxxx>
Date: Wed, 27 May 2009 22:41:54 +0200

Hello,

I am currently implementing the `read' call in Linux VFS.

I have a variable of type `struct hammer_inode' and I would like to get
the file's offset and length, so I can fetch it from disk using sb_bread().

The field `ino_leaf' contains `data_offset' and `data_len', which is
what I am looking for. But these fields currently contain incorrect data.

I am retrieving the `struct hammer_inode' using a call to
hammer_get_inode(). I tried inserting hammer_ip_resolve_data(&cursor)
somewhere into that function, but that didn't help and `ino_leaf' still
contains incorrect data.

Any hints or advice?

Daniel



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]