Increasing efficiency of data storage in a file system
First Claim
Patent Images
1. A method in a data processing system, the method comprising:
- receiving a command to store a file in a file system having an inode, wherein the inode is usable to store metadata associated with the file;
responsive to the file having a size that is greater than a block size of blocks in the file system, storing a plurality of data of the file only in an integer number of blocks, wherein a first remainder data of the file remains after storing, and wherein the first remainder data is less than the block size;
determining whether space is available in the inode; and
responsive to space being available in the inode, placing the first remainder data directly into the inode.
0 Assignments
0 Petitions
Accused Products
Abstract
A method, apparatus, and computer instructions for storing data in a file system. A determination is made as to whether space is available in an inode of the file in the file system. The data is stored into the inode in response to space being available. Additionally, data for a file may be stored in a block that is partially filled with data from another file. Data for a file may be stored using either the inode or by sharing a block. Data also may be stored using both of these mechanisms.
36 Citations
18 Claims
-
1. A method in a data processing system, the method comprising:
-
receiving a command to store a file in a file system having an inode, wherein the inode is usable to store metadata associated with the file; responsive to the file having a size that is greater than a block size of blocks in the file system, storing a plurality of data of the file only in an integer number of blocks, wherein a first remainder data of the file remains after storing, and wherein the first remainder data is less than the block size; determining whether space is available in the inode; and responsive to space being available in the inode, placing the first remainder data directly into the inode. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A recordable-type computer readable medium a computer program product encoded thereon executable in a data processing system, the computer program product comprising:
-
instructions for receiving a command to store a file in a file system having an inode, wherein the inode is usable to store metadata associated with the file; instructions for responsive to the file having a size that is greater than a block size of blocks in the file system, storing a plurality of data of the file only in an integer number of blocks, wherein a first remainder data of the file remains after storing, and wherein the first remainder data is less than the block size; instructions for determining whether space is available in the inode; and instructions for, responsive to space being available in the inode, placing the first remainder data directly into the inode. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
Specification