主权项 |
1. A method for use in managing logical views of directories, the method comprising:
creating a directory logical namespace view from a primary logical namespace view, wherein the primary logical namespace view indicates a logical collection of a set of storage objects, wherein the set of storage objects are organized in a hierarchy, wherein the directory logical namespace view includes a subset of the set of storage objects, wherein a root of the directory logical namespace view indicates a file directory hierarchy, wherein the file directory hierarchy includes the subset of the set of storage objects organized in a hierarchy; creating a mapping object for the directory logical namespace view, wherein the mapping object includes a directory namespace inode, wherein the mapping object manages access to the subset of the set of storage objects, wherein the mapping object for the directory logical namespace view is a version of a namespace inode for the primary logical namespace view, wherein the directory namespace inode includes a mapping information for each storage object of the set of storage objects, wherein the mapping information for each storage object associates a real inode of the storage object to a virtual inode for the storage object; and removing information from the mapping object for the directory logical namespace view, wherein removing the information from the mapping object includes iterating through each mapping information included in the mapping object for a storage object of the set of storage objects, evaluating whether the storage object is included in the subset of the set of storage objects and based on the determination, removing the mapping information for the storage object from the mapping object. |