(12) United States Patent ao) Patent No.: Us 7,472,138 B2
Adkins et al. (45) Date of Patent: Dec. 30,2008
(54) SYSTEM AND METHOD FOR HANDING
INPUT/OUTPUT ERRORS DURING
RECOVERY OF JOURNALING FILES IN A
DATA PROCESSING SYSTEM
(75) Inventors: Janet Elizabeth Adkins, Austin, TX
(US); Joon Chang, Austin, TX (US);
Ashley D. Lai, Austin, TX (US)
(73) Assignee: International Business Machines Corporation, Armonk, NY (US)
( * ) Notice: Subject to any disclaimer, the term of this patent is extended or adjusted under 35 U.S.C. 154(b) by 453 days.
(21) Appl.No.: 11/011,242
(22) Filed: Dec. 14, 2004
(65) Prior Publication Data
US 2006/0129611 Al Jun. 15, 2006
(51) Int. CI.
(52) U.S. CI 707/202; 707/200; 707/204;
714/1; 714/15; 714/16; 714/19; 714/20
(58) Field of Classification Search None
See application file for complete search history.
(56) References Cited
U.S. PATENT DOCUMENTS
4,507,751 A * 3/1985 Gawlicketal 707/202
5,043,871 A * 8/1991 Nishigaki et al 707/202
5,086,502 A * 2/1992 Malcolm 714/8
5,684,991 A * 11/1997 Malcolm 707/204
A system and method in a data processing system for recovering data in a file system. A request to modify a data block in the file system is detected. In response to detecting the request to modify the data block, metadata describing the data block in the file system is written in a log. In response to detecting an error during the writing of the metadata, an error counter is incremented. Finally, in response to a request to recover the data in the file system, the metadata is read only if the error counter is less than or equal to a predetermined value.
12 Claims, 8 Drawing Sheets