发明授权
US08504792B2 Methods and apparatuses to allocate file storage via tree representations of a bitmap 有权
通过位图的树表示来分配文件存储的方法和装置

Methods and apparatuses to allocate file storage via tree representations of a bitmap
摘要:
Methods and apparatuses that search tree representations of a bitmap for available blocks to allocate in storage devices are described. An allocation request for a file may be received to initiate the search. In one embodiment, the bitmap may include an array of bits corresponding to blocks in the storage devices. Each bit may indicate whether one of the blocks is available. The tree representations may include at least one red-black tree having nodes corresponding to one or more consecutive bits in the bitmap indicating an extent of available blocks. One of the tree representations may be selected according to a file associated with an allocation request to identify an extent of available block matching the allocation request. The tree representations may be synchronized as the bitmap is updated with changes of block allocations in the storage devices.
信息查询
0/0