IP Library › Granted Patent US 9,632,721
Granted Patent B1
US 9,632,721 · App. 14/935,515 · Granted Apr 25, 2017

Data writing in a file system

Inventors: Tohru Hasegawa (Tokyo, JP); Hiroshi Itagaki (Yokohama, JP); Shinsuke Mitsuma (Tokyo, JP); Noriko Yamamoto (Tokyo, JP); Terue Watanabe (Tokyo, JP)
Assignee: International Business Machines Corporation
G06F3/0643G06F3/061G06F3/0682G11B5/008G11B5/00813G11B20/1201G11B20/1202G11B20/1204G11B20/1205
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,632,721
App. No.
14/935,515
Granted
Apr 25, 2017
Kind
B1
Abstract

In an approach for writing data on a tape using a file system, a processor receives a first write request of a first file. A processor obtains data of the first file. A processor writes the data of the first file on a tape. A processor receives a second write request of a second file prior to completion of writing the data of the first file on the tape. A processor adds information about the second file to a first list, wherein the first list includes files waiting to write. Subsequent to writing the data of the first file on the tape, a processor obtains data of the second file based on the first list. A processor writes the data of the second file after the first file on the tape.

Claims (68)

1. A method for writing data on a tape using a file system, the method comprising:

receiving a first write request of a first file;

obtaining, by one or more processors, data of the first file;

writing, by one or more processors, the data of the first file on a tape;

receiving a second write request of a second file prior to completion of writing the data of the first file on the tape;

adding, by one or more processors, information about the second file to a first list, wherein the first list includes files waiting to write;

subsequent to writing the data of the first file on the tape, obtaining, by one or more processors, data of the second file based on the first list; and

writing, by one or more processors, the data of the second file after the first file on the tape.

2. The method of claim 1 , wherein writing the data of the first file on the tape comprises:

writing, by one or more processors, a first portion of the data of the first file in a first wrap of the tape, wherein the first portion of the data of the first file is of a first predetermined length; and

writing, by one or more processors, information on a write position of the first portion of the data of the first file in a second list, wherein the second list includes information about write interrupts.

3. The method of claim 2 , wherein writing the data of the second file after the first file on the tape comprises:

writing, by one or more processors, a first portion of the data of the second file after the first portion of the data of the first file in the first wrap of the tape, wherein the first portion of the data of the second file is of a second predetermined length; and

writing, by one or more processors, information on a write position of the first portion of the data of the second file in the second list.

4. The method of claim 3 , further comprising:

writing, by one or more processors, a second portion of the data of the second file in a second wrap of the tape, wherein the second portion of the data of the second file is of a third predetermined length, based on the information on the write position of the first portion of the data of the second file in the second list.

5. The method of claim 4 , further comprising:

writing, by one or more processors, a second portion of the data of the first file in a second wrap of the tape, wherein the second portion of the data of the first file is of a fourth predetermined length, based on the information on the write position of the first portion of the data of the first file in the second list.

6. The method of claim 2 , further comprising:

subsequent to writing the data of the first file, deleting, by one or more processors, the information on the write position of the first portion of the data of the first file from the second list.

7. The method of claim 1 , further comprising:

receiving a third write request of a third file prior to completion of writing the data of the first file on the tape;

adding, by one or more processors, information about the third file to the first list, such that the information about the third file is of a lower priority than the information about the second file on the first list.

8. A computer program product for writing data on a tape using a file system, the method 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 receive a first write request of a first file;

program instructions to obtain data of the first file;

program instructions to write the data of the first file on a tape;

program instructions to receive a second write request of a second file prior to completion of writing the data of the first file on the tape;

program instructions to add information about the second file to a first list, wherein the first list includes files waiting to write;

program instructions to, subsequent to writing the data of the first file on the tape, obtain data of the second file based on the first list; and

program instructions to write the data of the second file after the first file on the tape.

9. The computer program product of claim 8 , wherein program instructions to write the data of the first file on the tape comprise:

program instructions to write a first portion of the data of the first file in a first wrap of the tape, wherein the first portion of the data of the first file is of a first predetermined length; and

program instructions to write information on a write position of the first portion of the data of the first file in a second list, wherein the second list includes information about write interrupts.

10. The computer program product of claim 9 , wherein program instructions to write the data of the second file after the first file on the tape comprise:

program instructions to write a first portion of the data of the second file after the first portion of the data of the first file in the first wrap of the tape, wherein the first portion of the data of the second file is of a second predetermined length; and

program instructions to write information on a write position of the first portion of the data of the second file in the second list.

11. The computer program product of claim 10 , further comprising:

program instructions, stored on the one or more computer readable storage media, to write a second portion of the data of the second file in a second wrap of the tape, wherein the second portion of the data of the second file is of a third predetermined length, based on the information on the write position of the first portion of the data of the second file in the second list.

12. The computer program product of claim 11 , further comprising:

program instructions, stored on the one or more computer readable storage media, to write a second portion of the data of the first file in a second wrap of the tape, wherein the second portion of the data of the first file is of a fourth predetermined length, based on the information on the write position of the first portion of the data of the first file in the second list.

13. The computer program product claim 9 , further comprising:

program instructions, stored on the one or more computer readable storage media, to, subsequent to writing the data of the first file, delete the information on the write position of the first portion of the data of the first file from the second list.

14. The computer program product of claim 8 , further comprising:

program instructions, stored on the one or more computer readable storage media, to receive a third write request of a third file prior to completion of writing the data of the first file on the tape;

program instructions, stored on the one or more computer readable storage media, to add information about the third file to the first list, such that the information about the third file is of a lower priority than the information about the second file on the first list.

15. A computer system for writing data on a tape using a file system, the computer system comprising:

one or more computer processors, one or more computer readable storage media, and program instructions stored on the one or more computer readable storage media for execution by at least one of the one or more processors, the program instructions comprising:

program instructions to receive a first write request of a first file;

program instructions to obtain data of the first file;

program instructions to write the data of the first file on a tape;

program instructions to receive a second write request of a second file prior to completion of writing the data of the first file on the tape;

program instructions to add information about the second file to a first list, wherein the first list includes files waiting to write;

program instructions to, subsequent to writing the data of the first file on the tape, obtain data of the second file based on the first list; and

program instructions to write the data of the second file after the first file on the tape.

16. The computer system of claim 15 , wherein program instructions to write the data of the first file on the tape comprise:

program instructions to write a first portion of the data of the first file in a first wrap of the tape, wherein the first portion of the data of the first file is of a first predetermined length; and

program instructions to write information on a write position of the first portion of the data of the first file in a second list, wherein the second list includes information about write interrupts.

17. The computer system of claim 16 , wherein program instructions to write the data of the second file after the first file on the tape comprise:

program instructions to write a first portion of the data of the second file after the first portion of the data of the first file in the first wrap of the tape, wherein the first portion of the data of the second file is of a second predetermined length; and

program instructions to write information on a write position of the first portion of the data of the second file in the second list.

18. The computer system of claim 17 , further comprising:

program instructions, stored one the one or more computer readable storage media for execution by at least one of the one or more processors, to write a second portion of the data of the second file in a second wrap of the tape, wherein the second portion of the data of the second file is of a third predetermined length, based on the information on the write position of the first portion of the data of the second file in the second list.

19. The computer system of claim 18 , further comprising:

program instructions, stored one the one or more computer readable storage media for execution by at least one of the one or more processors, to write a second portion of the data of the first file in a second wrap of the tape, wherein the second portion of the data of the first file is of a fourth predetermined length, based on the information on the write position of the first portion of the data of the first file in the second list.

20. The computer system claim 16 , further comprising:

program instructions, stored one the one or more computer readable storage media for execution by at least one of the one or more processors, to, subsequent to writing the data of the first file, delete the information on the write position of the first portion of the data of the first file from the second list.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 9, 2015
From: HASEGAWA, TOHRU; ITAGAKI, HIROSHI; MITSUMA, SHINSUKE; YAMAMOTO, NORIKO; WATANABE, TERUE
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 036988/0778 →