Search International and National Patent Collections

1. (WO2018040590) SPACE ALLOCATION METHOD AND APPARATUS FOR FILE SYSTEM

Pub. No.:    WO/2018/040590    International Application No.:    PCT/CN2017/081343
Publication Date: Fri Mar 09 00:59:59 CET 2018 International Filing Date: Sat Apr 22 01:59:59 CEST 2017
IPC: G06F 3/06
Applicants: HUAWEI TECHNOLOGIES CO., LTD.
华为技术有限公司
Inventors: WENG, Yujia
翁宇佳
Title: SPACE ALLOCATION METHOD AND APPARATUS FOR FILE SYSTEM
Abstract:
A space allocation method and apparatus for a file system are provided. The space allocation method comprises: receiving a data writing request, wherein the data writing request comprises data to be written and a length of the data to be written (S301); according to the length of the data to be written, determining a target data block group among multiple data block groups of a storage device, wherein the target data block group comprises one or more data blocks, the size of a free space of each data block corresponds to a same size range, and the length of the data to be written is within the size range (S302); determining a target data block among the multiple data blocks (S303); and writing the data to be written into a free space of the target data block (S304). When the method and apparatus of the present invention are used to group data blocks, only information about the size of free spaces of the data blocks needs to be acquired, such that when a data block writing address is determined, the size of a buffer space occupied by obtained data block information is reduced, improving device performance.