On Fri, 2004-02-27 at 05:52, nag talekar wrote:
> hi
> thanks for replying
> can u please explain on multi sector transfer fixups?
see http://linux-ntfs.sourceforge.net/ntfs/concepts/fixup.html
and/or in ntfsprogs/libntfs/mst.c::ntfs_mst_post_read_fixup() for code
of how to do it.
> problem is converting from vcn to lcn
see http://linux-ntfs.sourceforge.net/ntfs/concepts/data_runs.html
and/or in ntfsprogs/libntfs/runlist.c::ntfs_mapping_pairs_decompress()
for code that decompresses the mapping pairs array into data runs and in
ntfsprogs/libntfs/runlist.c::ntfs_rl_vcn_to_lcn() for code that converts
a vcn to an lcn. Also see
ntfsprogs/libntfs/attrib.c::ntfs_attr_vcn_to_lcn() which also copes with
not fully read into memory run lists.
Note that if you use any of our code you must publish your code under
GPL license, too.
> why do i go to invalid INdex records even when my
> calculations of LCNs using data runs r correct?
Obviously your calculations are not correct!
> when does this problem arise?
When you have done something wrong...
> can i access all index records by only going thru
> dataruns without going thru the b+ tree
Yes, of course. You just need to check that the corresponding index
record is allocated as described by the BITMAP attribute corresponding
to the INDEX_ALLOCATION attribute you are looking at.
> i cant use ur library as i am developing in a different environment
Out of curiosity, what environment is that?
It would be a lot easier to help you if you showed your code...
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ &
http://www-stu.christs.cam.ac.uk/~aia21/
|