Resource allocation method and system
A technology of resource allocation and resource allocation, which is applied in the field of resource allocation of shared storage systems, can solve problems such as limited scope of application, and achieve the effect of wide application range and avoiding space waste
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0019] In the ext4 file system, when a file is allocated resources, the file layout adopts the block segment method, and the pre-allocated resources are recorded in the file layout in the form of (file offset, blk start, blk len), marking the logical position of the file (file offset, blk len) corresponds to the physical storage location (blk start, blk len); in addition, an unused flag is also set to identify whether the resource is used to indicate whether the part of the resource is empty, that is, whether it has been allocated but still unwritten.
[0020] The block segment-based file layout structure in the ext4 file system is as follows:
[0021] struct ext4_extent{
[0022] _le32 ee_block;
[0023] _le16 ee_len;
[0024] _le16 ee_start_hi;
[0025] _le32 ee_start;
[0026]};
[0027] Among them, ee_block represents the logical block number of the file; ee_len represents the granularity of the block segment, the total number of digits in ee_len is 16 bits, and the h...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 