System and method for maintaining mappings from data containers to their parent directories
First Claim
Patent Images
1. A method for retrieving inode to pathname information within a file system, comprising:
- requesting, by a user, a primary pathname associated with a data container;
determining, by a processor, whether a primary name data structure within a metadata portion of an inode associated with the data container contains a specific value, the specific value signifies that the file system has not yet identified an appropriate inode to pathname (I2P) mapping information for the inode, wherein the primary name data structure includes a parent directory inode field that contains an inode value that is associated with a parent directory of the data container and a parent directory cookie field that identifies an entry in a directory associated with the parent directory inode;
in response to determining the primary name data structure does not contain the specific value, identifying, by the file system, the primary pathname for the requested data container using information stored in the primary name data structure;
determining whether an option has been selected to display alternate pathnames; and
in response to determining the option has been selected, returning and displaying the primary pathname and one or more alternate pathnames on a display device, wherein an alternate pathname data container stores the one or more alternate pathnames associated with the inode.
2 Assignments
0 Petitions
Accused Products
Abstract
A system and method maintains mappings from data containers to their parent directories within a file system of a storage system. Each inode is modified to include a primary name data structure comprising a parent directory inode and a parent directory cookie value. The parent directory cookie value identifies a particular directory entry within a specified block of a directory identified by parent directory inode. An alternate name file is utilized to store alternate names, such as those associated with hard links.
-
Citations
17 Claims
-
1. A method for retrieving inode to pathname information within a file system, comprising:
-
requesting, by a user, a primary pathname associated with a data container; determining, by a processor, whether a primary name data structure within a metadata portion of an inode associated with the data container contains a specific value, the specific value signifies that the file system has not yet identified an appropriate inode to pathname (I2P) mapping information for the inode, wherein the primary name data structure includes a parent directory inode field that contains an inode value that is associated with a parent directory of the data container and a parent directory cookie field that identifies an entry in a directory associated with the parent directory inode; in response to determining the primary name data structure does not contain the specific value, identifying, by the file system, the primary pathname for the requested data container using information stored in the primary name data structure; determining whether an option has been selected to display alternate pathnames; and in response to determining the option has been selected, returning and displaying the primary pathname and one or more alternate pathnames on a display device, wherein an alternate pathname data container stores the one or more alternate pathnames associated with the inode. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system for maintaining a mapping from a data container to a parent directory, the system comprising:
-
a network adaptor configured to receive a request, from a user, for a primary pathname associated with a data container; and a processor executing a file system the file system configured to; determine whether a primary name data structure within a metadata portion of an inode associated with the data container contains a specific value, the specific value signifies that the file system has not yet identified an appropriate inode to pathname (I2P) mapping information for an inode, wherein the primary name data structure includes a parent directory inode field that contains an inode value that is associated with a parent directory of the data container and a parent directory cookie field that identifies an entry in a directory associated with the parent directory inode, identify the primary pathname for the requested data container using information stored in the primary name data structure, determine whether an option has been selected to display alternate pathnames, and return and display the primary pathname and one or more alternate pathnames on a display device in response to determining the option has been selected, wherein an alternate pathname data container stores the one or more alternate pathnames associated with the inode. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory computer readable medium containing executable program instructions executed by a processor, comprising:
-
program instructions that accept requests, by a user, for a primary pathname associated with a data container; program instructions that determine whether a primary name data structure within a metadata portion of an inode associated with the data container contains a specific value, the specific value signifies that the file system has not yet identified an appropriate inode to pathname (I2P) mapping information for the inode., wherein the primary name data structure includes a parent directory inode field that contains an inode value that is associated with a parent directory of the data container and a parent directory cookie field that identifies an entry in a directory associated with the parent directory inode; program instructions that identify the primary pathname for the requested data container using information stored in the primary name data structure; program instructions that determine whether an option has been selected to display alternate pathnames, and program instructions that return and display the primary pathname and one or more alternate pathnames on a display device in response to determining the option has been selected, wherein an alternate pathname data container stores the one or more alternate pathnames associated with the inode. - View Dependent Claims (16)
-
-
17. An apparatus, having a processor, and configured for retrieving inode to pathname information within a file system, comprising:
-
means for receiving a request, from a user, for a primary pathname associated with a data container; means for determining whether a primary name data structure within a metadata portion of an inode associated with the data container contains a specific value, the specific value signifying that the file system has not yet identified an appropriate inode to pathname (I2P) mapping information for an inode, wherein the primary name data structure includes a parent directory inode field that contains an inode value that is associated with a parent directory of the data container and a parent directory cookie field that identifies an entry in a directory associated with the parent directory inode; means for identifying the primary pathname for the requested data container using information stored in the primary name data structure; means for determining whether an option has been selected to display alternate pathnames; and means for returning and displaying the primary pathname and one or more alternate pathnames on a display device in response to determining the option has been selected, wherein an alternate pathname data container stores the one or more alternate pathnames associated with the inode.
-
Specification