NTFS_LOOKUP_INODE_BY_NAME

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

ntfs_lookup_inode_by_name - find an inode in a directory given its name  

SYNOPSIS

"SYNOPSIS"

u64 ntfs_lookup_inode_by_name (ntfs_inode * dir_ni, const ntfschar * uname, const int uname_len);  

ARGUMENTS

dir_ni
ntfs inode of the directory in which to search for the name
uname
Unicode name for which to search in the directory
uname_len
length of the name uname in Unicode characters
 

DESCRIPTION

Look for an inode with name uname in the directory with inode dir_ni. ntfs_lookup_inode_by_name walks the contents of the directory looking for the Unicode name. If the name is found in the directory, the corresponding inode number (>= 0) is returned as a mft reference in cpu format, i.e. it is a 64-bit number containing the sequence number.

On error, a negative value is returned corresponding to the error code. In particular if the inode is not found -ENOENT is returned. Note that you can't just check the return value for being negative, you have to check the inode number for being negative which you can extract using MREC(return value).

Note, uname_len does not include the (optional) terminating NULL character.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:34 GMT, October 09, 2005