Method and system of compacting sparse directories in a file system
AssigneeEMC Corporation
InventorsDov Bulka, Ashok Ramakrishnan, Phillip Ray Hinton JR., Eric Wagner
Life of this patent
Estimating the term…
Abstract
A method and system are described for reducing search for data in a directory scheme employing hash tables. The method involves compacting directory entries in a manner in which the directory entries will gradually migrate and concentrate at the highest level hash tables which coincide with early blocks in a hash table sequence representing the directory.
Claims9
A method of compacting sparse directories, in a file system employing a directory structure which uses a sequence of hash tables made up of blocks, with the numbers of blocks in each hash table being the numbers of blocks of its prior hash table in sequence, multiplied by two, and the blocks in each subsequent hash table comprising a lower level of blocks than the blocks in the prior hash table, and with first predetermined blocks at any level associated with second predetermined blocks at the next lower level, the method comprising:
- determining whether any first predetermined block for any hash table in the directory structure contains a number of files lower than a predetermined value;
- if it is determined for any first predetermined block that the number of files therein is lower than said predetermined value, determining if any second predetermined blocks at the next lower level contain any files therein;
- and
- if any second predetermined blocks at the next lower level contain files therein, migrating files in any second predetermined blocks into its corresponding first predetermined block or as many of the files in any second predetermined block corresponding to said first predetermined block sufficient to fill said first predetermined block.
Dependencies are inferred from the claim text.