The patent badge is an abbreviated version of the USPTO patent document. The patent badge does contain a link to the full patent document.
The patent badge is an abbreviated version of the USPTO patent document. The patent badge covers the following: Patent number, Date patent was issued, Date patent was filed, Title of the patent, Applicant, Inventor, Assignee, Attorney firm, Primary examiner, Assistant examiner, CPCs, and Abstract. The patent badge does contain a link to the full patent document (in Adobe Acrobat format, aka pdf). To download or print any patent click here.
Patent No.:
Date of Patent:
Sep. 28, 2010
Filed:
Jan. 14, 2008
Shashidhar Bomma, Austin, TX (US);
Joon Chang, Austin, TX (US);
Ramesh Veeramalla, Austin, TX (US);
Sreenivas Makineedi, Austin, TX (US);
Shashidhar Bomma, Austin, TX (US);
Joon Chang, Austin, TX (US);
Ramesh Veeramalla, Austin, TX (US);
Sreenivas Makineedi, Austin, TX (US);
International Business Machines, Corporation, Armonk, NY (US);
Abstract
The present invention provides a computer implemented method for truncating a file in a file system. The file system receives a request to truncate a file to a target size, the file having a first inode. The file system creates a second inode to a transient directory, wherein the second inode holds a plurality of in-progress entries. The file system sets a target size in the first inode. The file system writes a truncate entry to a journal, the truncate entry comprising a predetermined size. The file system truncates the file by up to the predetermined size. The file system determines that the file is above the target size. Responsive to a determination that the file is above the target size, the file system repeats the truncating step and the determining step. Responsive to a determination that the file is not above the target size, the file system applies the in-progress entries from the transient directory.