US 11,809,371 B2
Method, apparatus, electronic device, and medium for file management
Andy Ling Wu, Shanghai (CN); Xingjun Lv, Wuxi (CN); and Roland Fei Sun, Shanghai (CN)
Assigned to DELL PRODUCTS L.P., Round Rock, TX (US)
Filed by Dell Products L.P., Round Rock, TX (US)
Filed on Mar. 18, 2022, as Appl. No. 17/699,003.
Claims priority of application No. 202210061849.4 (CN), filed on Jan. 19, 2022.
Prior Publication US 2023/0229626 A1, Jul. 20, 2023
Int. Cl. G06F 7/00 (2006.01); G06F 16/11 (2019.01); G06F 16/901 (2019.01)
CPC G06F 16/122 (2019.01) [G06F 16/9017 (2019.01)] 20 Claims
OG exemplary drawing
 
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.