Invention Grant
US07805471B2 Method and apparatus to perform incremental truncates in a file system
有权
在文件系统中执行增量截断的方法和装置
- Patent Title: Method and apparatus to perform incremental truncates in a file system
- Patent Title (中): 在文件系统中执行增量截断的方法和装置
-
Application No.: US12013504Application Date: 2008-01-14
-
Publication No.: US07805471B2Publication Date: 2010-09-28
- Inventor: Shashidhar Bomma , Joon Chang , Ramesh Veeramalla , Sreenivas Makineedi
- Applicant: Shashidhar Bomma , Joon Chang , Ramesh Veeramalla , Sreenivas Makineedi
- Applicant Address: US NY Armonk
- Assignee: International Business Machines, Corporation
- Current Assignee: International Business Machines, Corporation
- Current Assignee Address: US NY Armonk
- Agent David A. Mims; Robert C. Rolnik
- Main IPC: G06F7/00
- IPC: G06F7/00

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.
Public/Granted literature
- US20090182792A1 METHOD AND APPARATUS TO PERFORM INCREMENTAL TRUNCATES IN A FILE SYSTEM Public/Granted day:2009-07-16
Information query