Recovery of file systems after modification failure

Error detection/correction and fault detection/recovery – Data processing system error or fault handling – Reliability and availability

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

C707S793000, C707S793000

Reexamination Certificate

active

06205558

ABSTRACT:

FIELD OF INVENTION
This invention pertains to the field of file system modification in a digital computer system. More specifically, this invention pertains to automatic recovery from failure of file system modification.
BACKGROUND OF THE INVENTION
Typically, when a computer is powered up or reset, a sequence of events must occur in order for the operating system to “boot” (begin operation). Generally, this sequence of events occurs when a Read Only Memory (ROM) startup program is executed. The ROM startup program determines which, if any, of the attached storage devices contain or contains information sufficient to boot the operating system. For IBM PC type computers, the ROM startup program generally begins by looking to any removable storage media, generally a removable disk. If there are no removable storage media configured for booting the operating system, the ROM startup program checks a fixed storage medium, which is generally a hard-disk. Although other types of storage media are in use, for the purposes of this discussion the storage media will be assumed to be magnetic disks.
Finding a disk which is configured to boot the operating system, the ROM startup program executes a program found at the first physical sectors of the disk. For removable disks, these first sectors make up a boot record. A boot record contains a boot program that loads and executes system files on the disk for booting the operating system. For hard-disks, these first sectors make up a master boot record. The data storage space on hard-disks can generally be divided into partitions, each of which appears to the operating system as a separate disk. In order to support multiple partitions, the master boot record contains a master boot program which determines which partition is to be booted from. Typically, each partition includes a boot record at the first sectors of that partition, and the boot record contains a boot program like that of removable disks. The master boot program transfers control to the boot program contained in the appropriate partition.
There are a variety of file systems in use by different operating systems. Each of these file systems uses a different file system structure to manage data on disks. A file system structure stores information about files on the disk. Sometimes the file system structure is located at the beginning of a disk or partition, and sometimes it is located at various places throughout a disk or partition. The data on disks is generally divided into files, and the information stored in the file system structure generally includes the name and location of each file, in addition to other attributes of the files.
One common type of file system is based on a File Allocation Table (FAT). In such a file system, following the boot record on each disk or partition is a File Allocation Table (FAT). The FAT contains information for every cluster of sectors on the disk or partition, and is used as a map to indicate which clusters contain which computer-readable files. Following the FAT is a directory structure which maps specific file names to corresponding entries in the FAT. In order to locate files on a disk or partition, both the FAT and the directory structure must be intact. When the boot program loads system files to boot the operating system, it relies on the file system structure being intact. In this example, the file system structure would include the FAT and the directory structure. As the operating system is booted, it also relies on the file system structure being intact, in order to find and update files as needed. If the file system structure is damaged, or altered in an unexpected way, the operating system will likely not be able to boot from that disk. In most circumstances, a damaged FAT will result in the loss of at least some, if not all, data on the disk. There are at least three different file systems which utilize the FAT as part of a file system structure: FAT
12
, FAT
16
, and FAT
32
. These file systems correspond to various versions of DOS and Windows operating systems. There are other file systems, such as NTFS (for Windows NT), ODS-2 (for VMS), HPFS (for OS/2) and Ext2fs (for Linux), which use different kinds of file system structures. For example, NTFS uses a Master File Table (MFT), rather than a FAT, to keep track of files. All of these file systems, however, rely on information which constitutes a file system structure.
Many hard disk utility programs make significant modifications to file system structures. For example, a utility which converts a FAT from one format to another must reorganize the information in the FAT, as well as the directory structure. Also, utilities which change the size of partitions on a disk must significantly alter the FAT and directory structure. These operations are generally complicated, and can take a significant amount of time to complete. If there is an unexpected shut-down or reset of the system during any of these procedures, the result is often a file system structure which does not entirely conform to either the pre-modification state or the post-modification state. This resulting state is generally an invalid state. As noted above, this generally results in an unusable file system structure, and a disk which cannot boot. This is also generally accompanied by a loss of data on the disk.
Current file system structure modification programs attempt to reduce the chances of such a catastrophic failure by reducing the amount of time that a file system structure is in an invalid state. However, because some of the operations which must be performed on the file system structure are not atomic operations (which can be executed quickly and do not rely on other procedures), the possibility of a shutdown during one of these operations remains significant. Also, some of the atomic operations are themselves lengthy, and there is a chance of a failure during one of these operations.
What is needed is a method for providing for recovery from a failure of a file system structure modification.
SUMMARY OF THE INVENTION
The present invention provides for recovery from a failure of a file system structure modification procedure (
406
). In one embodiment of the invention, prior to execution of any file system structure modification procedure (
406
) which can leave the file system structure in an invalid state, a copy is made of a boot record (
110
), and the boot record (
110
) is replaced by a recovery program (
130
). In some implementations the boot record (
110
) is a master boot record. If the file system structure modification procedure (
406
) fails, leaving the file system structure in an invalid state, the recovery program (
130
) is automatically executed when the computer is restarted (
414
). In one embodiment, the recovery program (
130
) completes the failed file system structure modification (
406
). In another embodiment, the recovery program (
130
) rolls the file system structure back to a valid state which predates the attempted file system structure modification (
406
).
After restoring the file system structure to an intact state, the recovery program (
130
) uses the copy of the boot record (
110
) to restore the boot record (
110
) to its original state. This allows for recovery of the file system structure without intervention by a user, and without loss of information.


REFERENCES:
patent: 5241672 (1993-08-01), Slomcenski et al.
patent: 5469573 (1995-11-01), McGill, III et al.
patent: 5706472 (1998-01-01), Ruff et al.
patent: 5956475 (1999-09-01), Burckhartt et al.
patent: 5974567 (1999-10-01), Dickson, Jr. et al.
“Enhanced Remote Network Installation”,IBM Technical Disclosure Bulletin, vol. 40, No. 11, Nov. 1997, U.S.A.

LandOfFree

Say what you really think

Search LandOfFree.com for the USA inventors and patents. Rate them and share your experience with other people.

Rating

Recovery of file systems after modification failure does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Recovery of file systems after modification failure, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Recovery of file systems after modification failure will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-2547947

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.