# US 2017/0255638 A1 · Modifying storage space consumed by snapshots

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

- Number: US 2017/0255638 A1
- Document ID: US20170255638A1
- Status: Published application
- Kind: A1
- Application number: 15/060,894
- Filed: 2016-03-04
- Published: 2017-09-07
- Earliest claimed: 2016-03-04
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Hiroshi Araki; Shah Mohammad R. Islam; Hiroyuki Miyoshi
- Web page: https://patentgrep.com/patent/US20170255638A1

## CPC

- 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 16/13: File access structures, e.g. distributed indices (arrangements of input from, or output to, record carriers G06F3/06)
- G06F 16/1727: {Details of free space management performed by the file system (saving storage space on storage systems G06F3/0608; management of blocks in storage devices G06F3/064)}
- G06F 16/178: Techniques for file synchronisation in file systems
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The method includes identifying, by one or more computer processors, a live file. The method further includes identifying, by one or more computer processors, a snapshot that corresponds to the live file. The method further includes amending, by one or more computer processors, data corresponding to the identified live file to include tracking data for the identified snapshot. The method further includes amending, by one or more computer processors, data corresponding to the identified snapshot of the live file to include tracking data for the identified live file. The method further includes determining, by one or more computer processors, a difference in the data between the identified live file and the identified snapshot. The method further includes amending, by one or more computer processors, the identified snapshot to include only the determined difference in data between the identified live file and the identified snapshot.

## Claims

### Claim 1

A method for reducing storage space consumed by snapshots, the method comprising:
identifying, by one or more computer processors, a live file;
identifying, by one or more computer processors, a snapshot that corresponds to the identified live file;
amending, by one or more computer processors, data corresponding to the identified live file to include tracking data for the identified snapshot;
amending, by one or more computer processors, data corresponding to the identified snapshot of the live file to include tracking data for the identified live file;
determining, by one or more computer processors, a difference in data between the identified live file and the identified snapshot; and
amending, by one or more computer processors, the identified snapshot to include only the determined difference in data between the identified live file and the identified snapshot.

### Claim 2 (depends on 1)

The method of claim 1, wherein amending, by one or more computer processors, data corresponding to the identified live file to include tracking data for the identified snapshot comprises:
adding, by one or more computer processors, metadata to the identified live file that indicates a data system number of the identified snapshot.

### Claim 3 (depends on 1)

The method of claim 1, wherein amending, by one or more computer processors, data corresponding to the identified snapshot of the live file to include tracking data for the identified live file comprises:
adding, by one or more computer processors, metadata to the identified snapshot that indicates a data system number of the identified live file.

### Claim 4 (depends on 1)

The method of claim 1, wherein amending, by one or more computer processors, the identified snapshot to include only the determined difference in data between the identified live file and the identified snapshot comprises:
removing, by one or more computer processors, data from the identified snapshot that is identical to data in the live file.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
adding, by one or more computer processors, a flag of zero or one to the amended tracking data that indicates if the snapshot has been amended to include only the determined difference in data.

### Claim 6 (depends on 1)

The method of claim 1, wherein determining, by one or more computer processors, a difference in the data between the identified live file and the identified snapshot comprises:
performing, by one or more computer processors, a checksum analysis of the identified live file and the identified snapshot to determine if there are differences between the identified live file and the identified snapshot; and
in response to determining that there is a difference between the identified live file and the identified snapshot, performing, by or more computer processors, a byte analysis of the identified live file and the identified snapshot to identify the differences between the identified live file and the identified snapshot.

### Claim 7 (depends on 1)

The method of claim 1, wherein amending, by one or more computer processors, the identified snapshot to include only the determined difference in data between the identified live file and the identified snapshot comprises:
creating, by one or more computer processors, a copy-on-write relationship between the identified live file and the identified snapshot.

### Claim 8

A computer program product for reducing the storage space consumed by snapshots, the computer program product comprising:
one or more computer readable storage media and program instructions stored on the one or more computer readable storage media, the program instructions comprising:
program instructions to identify a live file;
program instructions to identify a snapshot that corresponds to the live file;
program instructions to amend data corresponding to the identified live file to include tracking data for the identified snapshot;
program instructions to amend data corresponding to the identified snapshot of the live file to include tracking data for the identified live file;
program instructions to determine a difference in the data between the identified live file and the identified snapshot; and
program instructions to amend the identified snapshot to include only the determined difference in data between the identified live file and the identified snapshot.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein program instructions to amend data corresponding to the identified live file to include tracking data for the identified snapshot comprises program instructions to:
add metadata to the identified live file that indicates a data system number of the identified snapshot.

### Claim 10 (depends on 8)

The computer program product of claim 8, wherein program instructions to amend data corresponding to the identified snapshot of the live file to include tracking data for the identified live file comprises program instructions to:
add metadata to the identified snapshot that indicates a data system number of the identified live file.

### Claim 11 (depends on 8)

The computer program product of claim 8, wherein program instructions to amend the identified snapshot to include only the determined difference in data between the identified live file and the identified snapshot comprises program instructions to:
remove data from the identified snapshot that is identical to data in the live file.

### Claim 12 (depends on 8)

The computer program product of claim 8, further comprising program instructions to:
add a flag of zero or one to the amended tracking data that indicates if the snapshot has been amended to include only the determined difference in data.

### Claim 13 (depends on 8)

The computer program product of claim 8, wherein program instructions to determine a difference in the data between the identified live file and the identified snapshot comprises program instructions to:
perform a checksum analysis of the identified live file and the identified snapshot to determine if there are differences between the identified live file and the identified snapshot; and
in response to determining that there is a difference between the identified live file and the identified snapshot, program instructions to perform a byte analysis of the identified live file and the identified snapshot to identify the differences between the identified live file and the identified snapshot.

### Claim 14 (depends on 8)

The computer program product of claim 8, wherein program instructions to amend the identified snapshot to include only the determined difference in data between the identified live file and the identified snapshot comprises program instructions to:
create a copy-on-write relationship between the identified live file and the identified snapshot.

### Claim 15

A computer system for reducing the storage space consumed by snapshots, the computer system comprising:
one or more computer processors;
one or more computer readable storage media;
program instructions stored on the computer readable storage media for execution by at least one of the one or more computer processors, the program instructions comprising:
program instructions to identify a live file;
program instructions to identify a snapshot that corresponds to the live file;
program instructions to amend data corresponding to the identified live file to include tracking data for the identified snapshot;
program instructions to amend data corresponding to the identified snapshot of the live file to include tracking data for the identified live file;
program instructions to determine a difference in the data between the identified live file and the identified snapshot; and
program instructions to amend the identified snapshot to include only the determined difference in data between the identified live file and the identified snapshot.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein program instructions to amend data corresponding to the identified live file to include tracking data for the identified snapshot comprises program instructions to:
add metadata to the identified live file that indicates a data system number of the identified snapshot.

### Claim 17 (depends on 15)

The computer system of claim 15, wherein program instructions to amend data corresponding to the identified snapshot of the live file to include tracking data for the identified live file comprises program instructions to:
add metadata to the identified snapshot that indicates a data system number of the identified live file.

### Claim 18 (depends on 15)

The computer system of claim 15, wherein program instructions to amend the identified snapshot to include only the determined difference in data between the identified live file and the identified snapshot comprises program instructions to:
remove data from the identified snapshot that is identical to data in the live file.

### Claim 19 (depends on 15)

The computer system of claim 15, wherein program instructions to determine a difference in the data between the identified live file and the identified snapshot comprises program instructions to:
perform a checksum analysis of the identified live file and the identified snapshot to determine if there are differences between the identified live file and the identified snapshot; and
in response to determining that there is a difference between the identified live file and the identified snapshot, program instructions to perform a byte analysis of the identified live file and the identified snapshot to identify the differences between the identified live file and the identified snapshot.

### Claim 20 (depends on 15)

The computer system of claim 15, wherein program instructions to amend the identified snapshot to include only the determined difference in data between the identified live file and the identified snapshot comprises program instructions to:
create a copy-on-write relationship between the identified live file and the identified snapshot.
