METHOD AND SYSTEM FOR HANDLING REALLOCATED BLOCKS IN A FILE SYSTEM
First Claim
1. A computer implemented method for managing a file system, the computer implemented method comprising:
- responsive to a user selecting an image of the file system to perform a rollback operation, searching for each data block in the file system that is owned by the image;
determining if a data block owned by the image is marked in a first map and a second map;
responsive to determining that the data block owned by the image is marked in the first map and the second map, marking the data block in a third map;
responsive to determining that the data block owned by the image is marked in the third map, allocating a new data block in the file system; and
copying data from the data block owned by the image to the new data block in the file system prior to performing the rollback operation to avoid a collision that causes data corruption.
1 Assignment
0 Petitions
Accused Products
Abstract
A system for managing a file system. In response to a user selecting an image of the file system to perform a rollback operation, each data block in the file system that is owned by the image is searched for. Then, it is determined whether a data block owned by the image is marked in a first map and a second map. In response to determining that the data block owned by the image is marked in the first map and the second map, the data block is marked in a third map. In response to determining that the data block owned by the image is marked in the third map, a new data block is allocated in the file system. Subsequently, data from the data block owned by the image is copied to the new data block in the file system prior to performing the rollback operation to avoid a collision that causes data corruption.
88 Citations
20 Claims
-
1. A computer implemented method for managing a file system, the computer implemented method comprising:
-
responsive to a user selecting an image of the file system to perform a rollback operation, searching for each data block in the file system that is owned by the image; determining if a data block owned by the image is marked in a first map and a second map; responsive to determining that the data block owned by the image is marked in the first map and the second map, marking the data block in a third map; responsive to determining that the data block owned by the image is marked in the third map, allocating a new data block in the file system; and copying data from the data block owned by the image to the new data block in the file system prior to performing the rollback operation to avoid a collision that causes data corruption. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A data processing system for managing a file system, comprising:
-
a bus system; a storage device connected to the bus system, wherein the storage device includes a set of instructions; and a processing unit connected to the bus system, wherein the processing unit executes the set of instructions to search for each data block in the file system that is owned by an image of the file system in response to a user selecting the image to perform a rollback operation, determine if a data block owned by the image is marked in a first map and a second map, mark the data block in a third map in response to determining that the data block owned by the image is marked in the first map and the second map, allocate a new data block in the file system in response to determining that the data block owned by the image is marked in the third map, and copy data from the data block owned by the image to the new data block in the file system prior to performing the rollback operation to avoid a collision that causes data corruption. - View Dependent Claims (15)
-
-
16. A computer program product for managing a file system, the computer program product comprising:
a computer usable medium having computer usable program code embodied therein, the computer usable medium comprising; computer usable program code configured to search for each data block in the file system that is owned by an image of the file system in response to a user selecting the image to perform a rollback operation; computer usable program code configured to determine if a data block owned by the image is marked in a first map and a second map; computer usable program code configured to mark the data block in a third map in response to determining that the data block owned by the image is marked in the first map and the second map; computer usable program code configured to allocate a new data block in the file system in response to determining that the data block owned by the image is marked in the third map; and computer usable program code configured to copy data from the data block owned by the image to the new data block in the file system prior to performing the rollback operation to avoid a collision that causes data corruption. - View Dependent Claims (17, 18, 19, 20)
Specification