# US 2015/0178309 A1 · Preserving a state using snapshots with selective tuple versioning

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2015/0178309 A1
- Document ID: US20150178309A1
- Status: Published application
- Kind: A1
- Application number: 14/637,051
- Filed: 2015-03-03
- Published: 2015-06-25
- Earliest claimed: 2012-06-05
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Yariv BACHAR; Aviv KUVENT; Asaf LEVY
- Web page: https://patentgrep.com/patent/US20150178309A1

## CPC

- G06F 16/178: Techniques for file synchronisation in file systems
- G06F 16/128: {Details of file system snapshots on the file-level, e.g. snapshot creation, administration, deletion (error detection or correction of the data by redundancy in operations or in hardware G06F11/14, G06F11/16)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Selective tuple versioning is used on a file system providing file system snapshots by, receiving a request for updating at least one node and at least a node identification (ID) and associated attributes of the plurality of nodes, generating a new snapshot timestamp indicating the time of the updating, duplicating one of a plurality of rows of the nodes in the file system table into a new one of the rows of the file system table with an end time set equal to a new snapshot timestamp if the snapshot has the snapshot timestamp that is greater than a start time and less than the end time of the nodes, and updating the rows of the nodes in the file system table according to the update request, wherein the start time of the nodes is set equal to the new snapshot timestamp.

## Claims

### Claim 1

A method for providing file system snapshots using selective tuple versioning in a computing environment using a processor device, comprising:
receiving a request for updating at least one of a plurality of nodes and at least a node identification (ID) and associated attributes of the plurality of nodes, generating a new snapshot timestamp indicating the time of the updating,
duplicating one of a plurality of rows of the plurality of nodes in the file system table into a new one of the rows of the plurality of nodes in the file system table with an end time set equal to a new snapshot timestamp if the snapshot has the snapshot timestamp that is greater than a start time of the plurality of nodes and less than the end time of the plurality of nodes, and
updating the rows of the plurality of nodes in the file system table according to the update request, wherein the start time of the plurality of nodes is set equal to the new snapshot timestamp.

### Claim 2 (depends on 1)

The method of claim 1, further comprising using the selective tuple versioning on a file system table by adding a snapshot table, to associate with the file system table, and storing in the snapshot table the plurality of rows each containing the snapshot timestamp relating to the snapshot created for preserving past states of the plurality of nodes in a file system, wherein rows of the plurality of nodes under the snapshot are maintained in the file system table.

### Claim 3 (depends on 1)

The method of claim 1, further including using a snapshot identification (ID) for retrieving the snapshot timestamp for accessing the rows of the plurality of nodes under the snapshot.

### Claim 4 (depends on 1)

The method of claim 1, further including, in conjunction using with the selective tuple versioning, performing one of:
creating the plurality of nodes with at least a node identification (ID) and associated attributes, wherein the node identification and the associated attributes are included in the rows of the plurality of nodes in the file system table,
adding a start time and an end time to a new one of a plurality of rows in the file system table, wherein the start time is set equal to the time when the new one of the plurality of rows was added to the file system table and the end time is set equal to infinity, and
adding a new one of the plurality of rows to the snapshot table containing the snapshot ID and the snapshot time stamp upon creation of the snapshot.

### Claim 5 (depends on 1)

The method of claim 1, further including relating the snapshot to the plurality of nodes having a start time that is less than the snapshot timestamp and an end time that is greater than the snapshot timestamp.

### Claim 6 (depends on 1)

The method of claim 1, further including, performing at least one of:
adding at least one field to each of a plurality of rows in the file system table for indicating whether the plurality of nodes in the file system should be preserved,
requesting to preserve the plurality of nodes by creating the snapshot,
updating the file system with the snapshot, and
removing a request to preserve the file system.

### Claim 7 (depends on 1)

The method of claim 1, further including generating the snapshot timestamp at the time of creating the snapshot.

### Claim 8 (depends on 1)

The method of claim 1, further including performing at least one of:
deleting the snapshot and a snapshot identification (ID) upon receiving a request for the deleting, and
deleting the plurality of nodes relating to the snapshot and the rows of the plurality of nodes in the file system table upon receiving a request for the deleting, wherein a query is performed for removing the plurality of nodes not associated with any other snapshots from the file system table.

### Claim 9 (depends on 8)

The method of claim 8, further including, in conjunction with deleting the snapshot and the snapshot identification, performing at least one of:
receiving a request for deleting the snapshot and the snapshot ID,
retrieving from the snapshot table at least one of a preceding snapshot timestamp, a subsequent snapshot timestamp, and the snapshot timestamp,
if a preceding snapshot to the snapshot that is to be deleted is not found in the snapshot table, setting the preceding snapshot timestamp to a value of zero,
if a subsequent snapshot to the snapshot that is to be deleted is not found in the snapshot table, setting the subsequent snapshot timestamp to a value of infinity, and
deleting the snapshot and the rows of the plurality of nodes in the file system table associated with the snapshot that is related to the plurality of nodes having a start time that is greater than the preceding snapshot timestamp and an end time that is less than the subsequent snapshot timestamp.

### Claim 10

A system for providing file system snapshots using selective tuple versioning in a computing environment, comprising:
at least one processor device operable in the computing environment, wherein the at least one processor device is adapted for:
receiving a request for updating at least one of a plurality of nodes and at least a node identification (ID) and associated attributes of the plurality of nodes,
generating a new snapshot timestamp indicating the time of the updating,
duplicating one of a plurality of rows of the plurality of nodes in the file system table into a new one of the rows of the plurality of nodes in the file system table with an end time set equal to a new snapshot timestamp if the snapshot has the snapshot timestamp that is greater than a start time of the plurality of nodes and less than the end time of the plurality of nodes, and
updating the rows of the plurality of nodes in the file system table according to the update request, wherein the start time of the plurality of nodes is set equal to the new snapshot timestamp.

### Claim 11 (depends on 10)

The system of claim 10, wherein the at least one processor device is further adapted for, using the selective tuple versioning on a file system table by adding a snapshot table, to associate with the file system table, and storing in the snapshot table the plurality of rows each containing the snapshot timestamp relating to the snapshot created for preserving past states of the plurality of nodes in a file system, wherein rows of the plurality of nodes under the snapshot are maintained in the file system table.

### Claim 12 (depends on 10)

The system of claim 10, wherein the at least one processor device is further adapted for using a snapshot identification (ID) for retrieving the snapshot timestamp for accessing the rows of the plurality of nodes under the snapshot.

### Claim 13 (depends on 10)

The system of claim 10, wherein the at least one processor device is further adapted for, in conjunction using with the selective tuple versioning, performing one of:
creating the plurality of nodes with at least a node identification (ID) and associated attributes, wherein the node identification and the associated attributes are included in the rows of the plurality of nodes in the file system table,
adding a start time and an end time to a new one of a plurality of rows in the file system table, wherein the start time is set equal to the time when the new one of the plurality of rows was added to the file system table and the end time is set equal to infinity, and
adding a new one of the plurality of rows to the snapshot table containing the snapshot ID and the snapshot time stamp upon creation of the snapshot.

### Claim 14 (depends on 10)

The system of claim 10, wherein the at least one processor device is further adapted for relating the snapshot to the plurality of nodes having a start time that is less than the snapshot timestamp and an end time that is greater than the snapshot timestamp.

### Claim 15 (depends on 10)

The system of claim 10, wherein the at least one processor device is further adapted for performing at least one of:
adding at least one field to each of a plurality of rows in the file system table for indicating whether the plurality of nodes in the file system should be preserved,
requesting to preserve the plurality of nodes by creating the snapshot,
updating the file system during a lifetime of the snapshot, and
removing a request to preserve the file system.

### Claim 16 (depends on 10)

The system of claim 10, wherein the at least one processor device is further adapted for generating the snapshot timestamp at the time of creating the snapshot.

### Claim 17 (depends on 10)

The system of claim 10, wherein the at least one processor device is further adapted for performing at least one of:
deleting the snapshot and a snapshot identification (ID) upon receiving a request for the deleting, and
deleting the at least one file system relating to the snapshot and the plurality of rows associated with the at least one file system upon receiving a request for the deleting, wherein a query is performed for removing the at least one file system not associated with any other snapshots from the file system table.

### Claim 18 (depends on 17)

The system of claim 17, wherein the at least one processor device is further adapted for, in conjunction with deleting the snapshot and the snapshot identification, performing at least one of:
receiving a request for deleting the snapshot and the snapshot ID,
retrieving from the snapshot table at least one of a preceding snapshot timestamp, a subsequent snapshot timestamp, and a snapshot timestamp, wherein the snapshot timestamp by using the snapshot ID,
if a preceding snapshot to the snapshot that is to be deleted is not found in the snapshot table, setting a timestamp marked as “previous” to a value of zero,
if a subsequent snapshot to the snapshot that is to be deleted is not found in the snapshot table, setting a timestamp marked as “subsequent” to a value of infinity, and
deleting the snapshot and the plurality of rows associated with the snapshot that are related to at least one file system having a start time that is greater than the timestamp of the preceding snapshot and an end time that is less than the timestamp of the subsequent snapshot.

### Claim 19

A computer program product for providing file system snapshots using selective tuple versioning in a computing environment using a processor device, the computer program product comprising a non-transitory computer-readable storage medium having computer-readable program code portions stored therein, the computer-readable program code portions comprising:
a first executable portion for receiving a request for:
updating at least one of a plurality of nodes and at least a node identification (ID) and associated attributes of the plurality of nodes,
generating a new snapshot timestamp indicating the time of the updating,
duplicating one of a plurality of rows of the plurality of nodes in the file system table into a new one of the rows of the plurality of nodes in the file system table with an end time set equal to a new snapshot timestamp if the snapshot has the snapshot timestamp that is greater than a start time of the plurality of nodes and less than the end time of the plurality of nodes, and
updating the rows of the plurality of nodes in the file system table according to the update request, wherein the start time of the plurality of nodes is set equal to the new snapshot timestamp.

### Claim 20 (depends on 19)

The computer program product of claim 19, further including a second executable portion for using the selective tuple versioning on a file system table by adding a snapshot table, to associate with the file system table, and storing in the snapshot table the plurality of rows each containing the snapshot timestamp relating to the snapshot created for preserving past states of the plurality of nodes in a file system, wherein rows of the plurality of nodes under the snapshot are maintained in the file system table.

### Claim 21 (depends on 19)

The computer program product of claim 19, further including a second executable portion for using a snapshot identification (ID) for retrieving the snapshot timestamp for accessing the rows of the plurality of nodes under the snapshot.

### Claim 22 (depends on 19)

The computer program product of claim 19, further including a second executable portion for, in conjunction using with the selective tuple versioning, performing one of:
creating the plurality of nodes with at least a node identification (ID) and associated attributes, wherein the node identification and the associated attributes are included in the rows of the plurality of nodes in the file system table,
adding a start time and an end time to a new one of a plurality of rows in the file system table, wherein the start time is set equal to the time when the new one of the plurality of rows was added to the file system table and the end time is set equal to infinity, and
adding a new one of the plurality of rows to the snapshot table containing the snapshot ID and the snapshot time stamp upon creation of the snapshot.

### Claim 23 (depends on 19)

The computer program product of claim 19, further including a second executable portion for relating the snapshot to the plurality of nodes having a start time that is less than the snapshot timestamp and an end time that is greater than the snapshot timestamp.

### Claim 24 (depends on 19)

The computer program product of claim 19, further including a second executable portion for performing at least one of:
adding at least one field to each of a plurality of rows in the file system table for indicating whether the plurality of nodes in the file system should be preserved,
requesting to preserve the plurality of nodes by creating the snapshot,
updating the file system during a lifetime of the snapshot, and
removing a request to preserve the file system.

### Claim 25 (depends on 19)

The computer program product of claim 19, further including a second executable portion for generating the snapshot timestamp at the time of creating the snapshot.

### Claim 26 (depends on 19)

The computer program product of claim 19, further including a second executable portion for performing at least one of:
deleting the snapshot and a snapshot identification (ID) upon receiving a request for the deleting, and
deleting the plurality of nodes relating to the snapshot and the rows of the plurality of nodes in the file system table upon receiving a request for the deleting, wherein a query is performed for removing the plurality of nodes not associated with any other snapshots from the file system table.

### Claim 27 (depends on 19)

The computer program product of claim 19, further including a second executable portion for, in conjunction with deleting the snapshot and the snapshot identification, performing at least one of:
receiving a request for deleting the snapshot and the snapshot ID,
retrieving from the snapshot table at least one of a preceding snapshot timestamp, a subsequent snapshot timestamp, and the snapshot timestamp,
if a preceding snapshot to the snapshot that is to be deleted is not found in the snapshot table, setting the preceding snapshot timestamp to a value of zero,
if a subsequent snapshot to the snapshot that is to be deleted is not found in the snapshot table, setting the subsequent snapshot timestamp to a value of infinity, and
deleting the snapshot and the rows of the plurality of nodes in the file system table associated with the snapshot that are related to the plurality of nodes having a start time that is greater than the preceding snapshot timestamp and an end time that is less than the subsequent snapshot timestamp.
