Method of and system for reverse mapping vnode pointers
First Claim
1. Logic encoded in a non-transitory computer-readable storage medium and, when executed by a computer processor, is operable to perform operations of reverse mapping virtual node (vnode) pointers, comprising:
- using a reverse name lookup cache (RNLC) to translate vnode pointers and file identifiers into file names and absolute path names, the operations comprising;
intercepting a first function call into a virtual file system layer, wherein the first function call includes a first name of a file and first path name information associated with a first file reference of the file, and wherein the first intercepted function call is processed in the virtual file system layer to return the first file reference;
populating a first entry of a table structure with the first file reference, the first name, and the first path name information, wherein the table holds one or more file references, names, and path name information, whereinone or more entries in the table structure have sufficient information to determine an absolute path name to the file,the table structure is organized into a vnode pointer (vp) table and a file identifier (fid) table, wherein each vp entry in the vp table comprises a vnode reference and absolute path information associated with a corresponding vnode, andeach fid entry in the fid table comprises a file structure and absolute path information associated with a corresponding fid; and
converting a particular vnode reference to a particular file identifier upon trapping a function call inactivating a corresponding vnode, wherein the table structure is further populated with a particular file name associated with the corresponding inactivated vnode.
11 Assignments
0 Petitions
Accused Products
Abstract
Embodiment of the invention provide a reverse name lookup function for providing an absolute path name or file name and absolute path name to the file name parent directory based on a vnode reference, NFS file handle reference, or file identifier reference associated with a computer virtual file system. A method in accordance with the invention comprises populating a table structure with vnodes, names, and absolute path information associated with the vnodes. The table structure and information are sufficient to generate an absolute path name and file name for each vnode. The table structure also includes entries for file identifiers, names, and associated absolute path information associated with the file identifiers. This information is sufficient to generate an absolute path name for each file identifier. The table is populated by hooking virtual file system function calls including the vnode name lookup function and the vnode inactive function. The table is populated with the file identifier entries by hooking the vnode inactive function.
-
Citations
17 Claims
-
1. Logic encoded in a non-transitory computer-readable storage medium and, when executed by a computer processor, is operable to perform operations of reverse mapping virtual node (vnode) pointers, comprising:
using a reverse name lookup cache (RNLC) to translate vnode pointers and file identifiers into file names and absolute path names, the operations comprising; intercepting a first function call into a virtual file system layer, wherein the first function call includes a first name of a file and first path name information associated with a first file reference of the file, and wherein the first intercepted function call is processed in the virtual file system layer to return the first file reference; populating a first entry of a table structure with the first file reference, the first name, and the first path name information, wherein the table holds one or more file references, names, and path name information, wherein one or more entries in the table structure have sufficient information to determine an absolute path name to the file, the table structure is organized into a vnode pointer (vp) table and a file identifier (fid) table, wherein each vp entry in the vp table comprises a vnode reference and absolute path information associated with a corresponding vnode, and each fid entry in the fid table comprises a file structure and absolute path information associated with a corresponding fid; and converting a particular vnode reference to a particular file identifier upon trapping a function call inactivating a corresponding vnode, wherein the table structure is further populated with a particular file name associated with the corresponding inactivated vnode. - View Dependent Claims (2, 3, 4)
-
5. A method for reverse mapping virtual node (vnode) pointers comprising:
using a reverse name lookup cache (RNLC) to translate vnode pointers and file identifiers into file names and absolute path names, the operations comprising; intercepting a first function call into a virtual file system layer, wherein the first function call includes a first name of a file and first path name information associated with a first file reference of the file, and wherein the first intercepted function call is processed in the virtual file system layer to return the first file reference; populating a first entry of a table structure with the first file reference, the first name, and the first path name information, wherein the table holds one or more file references, names, and path name information, wherein one or more entries in the table structure have sufficient information to determine an absolute path name to the file, the table structure is organized into a vnode pointer (vp) table and a file identifier (fid) table, wherein each vp entry in the vp table comprises a vnode reference and absolute path information associated with a corresponding vnode, and each fid entry in the fid table comprises a file structure and absolute path information associated with a corresponding fid; and converting a particular vnode reference to a particular file identifier upon trapping a function call inactivating a corresponding vnode, wherein the table structure is further populated with a particular file name associated with the corresponding inactivated vnode. - View Dependent Claims (6, 7, 8, 9, 10, 11, 12)
-
13. A computer device for reverse mapping virtual node (vnode) pointers comprising:
-
a table structure configured to store one or more entries, each entry including a file reference, a name, and path information; a program module for populating the table structure; and one or more computer processors operable to execute operations associated with the table structure and the program module using a reverse name lookup cache (RNLC) to translate the vnode pointers and file identifiers into file names and absolute path names, the operations comprising; intercepting a first function call into a virtual file system layer, wherein the first function call includes a first name of a file and first path name information associated with a first file reference of the file, and wherein the first intercepted function call is processed in the virtual file system layer to return the first file reference; and populating a first entry of the table structure with the first file reference, the first name, and the first path name information, wherein one or more entries in the table structure have sufficient information to determine an absolute path name to the file, the table structure is organized into a vnode pointer (vp) table and a file identifier (fid) table, wherein each vp entry in the vp table comprises a vnode reference and absolute path information associated with a corresponding vnode, and each fid entry in the fid table comprises a file structure and absolute path information associated with a corresponding fid; and converting a particular vnode reference to a particular file identifier upon trapping a function call inactivating a corresponding vnode, wherein the table structure is further populated with a particular file name associated with a the corresponding inactivated vnode. - View Dependent Claims (14, 15, 16, 17)
-
Specification