发明名称 Storing a small file with a reduced storage and memory footprint
摘要 An I/O request to store a file in a file-system is received. A determination is made whether the size of the file does not exceed a threshold size. Exceeding the threshold results in storing at least a portion of the file in a block of the file-system devoid of sub-blocks. A determination is made whether the size of the file does not exceed a size of unallocated space within a single block in the file-system. The single block includes a set of sub-blocks. Responsive to the size of the file not exceeding the threshold size and the size of unallocated space within the single block, the file is stored, at an address, in a first subset of the set of the sub-blocks of the single block. The address identifies the single block and a position of a sub-block in the subset.
申请公布号 US9058338(B2) 申请公布日期 2015.06.16
申请号 US201113282454 申请日期 2011.10.26
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 Aslot Vishal Chittranjan;Bello Adekunle;Thompson Robert Wright
分类号 G06F12/10;G06F17/30;G06F3/06 主分类号 G06F12/10
代理机构 Garg Law Firm, PLLC 代理人 Garg Law Firm, PLLC ;Garg Rakesh;Vallone Mark C.
主权项 1. A method for storing files, the method comprising: a processor receiving a first I/O request to store a first file in a file-system of a data storage device; the processor determining whether the size of the first file does not exceed a threshold size, wherein the size of the first file exceeding the threshold size results in storing at least a portion of the first file in a block of the file-system, wherein the block does not have any addressable sub-blocks configured in the block and wherein the block is only addressable as a whole; the processor determining whether the size of the first file does not exceed a size of unallocated space within a single block in the file system, the single block comprising a set of at least two addressable sub-blocks, each sub-block in the set of sub-blocks being of equal size; and the processor, responsive to determining that the size of the first file does not exceed the threshold size, and responsive to determining that the size of the first file does not exceed the size of unallocated space within the single block in the file-system, storing, at a first address, the first file in a first subset of the set of the sub-blocks of the single block, wherein the first address identifies the single block and a position of a sub-block in the subset.
地址 Armonk NY US