Hi Russ,
> Is there sample code available for using the NTFS user library?
There's no sample code as such, just the source code to all the
utilities.
> I am trying to figure out how to get from the point of a filename
> to an MFT_REF number.
Hmm, there doesn't seem to be any examples of that. You need to use
ntfs_inode_lookup_by_name. You need the ntfs_inode of a directory,
then search for each part of the path in turn (there are example of
converting ASCII to Unicode). You get the initial directory (.) for
free when you open the volume.
I could give you more help, but where's the fun in that :-)
Good luck,
FlatCap (Rich)
nt...@fl...
WWW: http://linux-ntfs.sourceforge.net
IRC: #ntfs on irc.freenode.net
|