CPC G06F 16/122 (2019.01) [G06F 16/9017 (2019.01)] | 20 Claims |
1. A method, comprising:
setting, by a file management system comprising a processor, from a set of grouping identifiers, a grouping identifier for a file in metadata of the file based on the metadata address, wherein the setting the grouping identifier is automatically triggered based on a first criterion;
determining, by the file management system, a storage address of a data block of the file, the storage address indicating an extent of the data block and an offset, wherein the extent is a cylinder group of a disk and comprises a storage region comprising respective grouping flag blocks for grouping identifiers of the set of grouping identifiers, and wherein the cylinder group includes one or more contiguous cylinders;
setting, by the file management system, in a grouping flag block corresponding to the grouping identifier, a flag for the data block based on the offset, wherein setting the flag is automatically triggered based on a second criterion;
receiving a request to delete a specified file having the grouping identifier;
determining the grouping flag block of the extent corresponding to the grouping identifier;
releasing, based on the flag in the grouping flag block, a data block of the extent corresponding to the flag set in the grouping flag block; and
clearing the flag in the grouping flag block.
|