Maintenance of file attributes in a distributed data processing system
First Claim
1. A method of maintaining a first file size of a file residing at a server data processing system, said server data processing system connected to at least one client data processing system through a means of communication, said method comprising:
- maintaining a second file size in association with an ability to change said second file size at said at least one client data processing system;
changing said second file size by said at least one client data processing system; and
combining, by the server data processing system, said second file size from said client data processing system with said first file size at the server data processing system to determine a latest file size value.
3 Assignments
0 Petitions
Accused Products
Abstract
The system and method of this invention maintains the latest file attributes such as file size, modify time, and access time, at the server data processing system in a distributed data processing system. The server data processing system combines information requested from the client data processing system that has permission to write to the file with information periodically received from other client data processing systems that may be extending the same file by mapping the file into their own virtual address space. In this way, the server can maintain the latest file size attribute even when some clients are extending the file through system calls and other clients are extending the file through mapped access. To maintain a latest modify time and access time, the server keeps a modify count and access count. The client data processing systems periodically send to the server data processing the modify count and access count that have been incremented whenever the client data processing system modifies and accesses the file. The server data processing system compares the counts at the server with the counts received from the clients to determine a latest corresponding modify time and access time.
-
Citations
25 Claims
-
1. A method of maintaining a first file size of a file residing at a server data processing system, said server data processing system connected to at least one client data processing system through a means of communication, said method comprising:
-
maintaining a second file size in association with an ability to change said second file size at said at least one client data processing system; changing said second file size by said at least one client data processing system; and combining, by the server data processing system, said second file size from said client data processing system with said first file size at the server data processing system to determine a latest file size value. - View Dependent Claims (2, 3, 4, 5, 8, 9, 10, 11, 12)
-
- 6. A method of clam 2 further comprising informing the server data processing system that at least one of said at least one client data processing system should receive said request for said second file size before determining the latest file size value and receiving said second file size in response to a request sent from the server data processing system to at least one of the at least one client data processing system.
-
13. A method of claim further comprising obtaining information, by the server data processing system, about said second file size from said at least one client data processing system by sending at least one request for said second file size to said at least one client data processing system before making a determination of said latest file size value.
-
14. A method of maintaining a first file size of a file residing at a server data processing system, said server data processing system connected to at least on client data processing system through a means of communication, said method comprising:
-
maintaining, by one of said client data processing systems having permission from the server data processing system to write to the file, a second file size of the file in association with said write permission; updating said second file size when said client data processing system modifies said file; and combining, by the server data processing system, information from the client data processing having write permission for the file and the rightmost page of the file to determine a latest file size. - View Dependent Claims (15, 16, 17, 19, 20)
-
-
18. A method of clam 14 further comprising adjusting, at the server data processing system, the latest file size to correspond to the right-most page of the file after a last close of the file.
-
21. A method of maintaining a modify time of a file residing at a server data processing system, said server data processing system connected to at least one client data processing system through a means of communication, said method comprising:
-
tracking, by the server data processing system, a modify count and a corresponding modify time for the file; incrementing, by the client data processing system having a write permission, the modify count when the client data processing system modifies the file; sending to the server data processing system, from the client data processing system, a sent modify count equal to the modify count during a periodic synchronization operation; comparing, by the server data processing system, the sent modify count with the tracked modify count to determine if the file had been modified while the client data processing system had the write permission; and
updating, by the server data processing system, the corresponding tracked modify time to the sent modified time if the server determines from the comparison that the file had been modified.
-
-
22. A method of maintaining a modify time of a file at a server data processing system, said server data processing system connected to at least one client data processing system through a means of communication, said method comprising:
-
maintaining a modify count, a corresponding modify time, and a permission from the server data processing system to write to the file by the client data processing system; tracking, by the server data processing system, a modify count for the file; incrementing, by the client data processing system having the write permission, the modify count when the client data processing system modifies the file; sending to the server data processing system, from the client data processing system, a sent modify count equal to the modify count in response to a request form the server data processing system; comparing, by the server data processing system, the sent modify count with the tracked modify count to determine if the file had been modified while the client data processing system had the write permission; and updating, by the server data processing system, the tracked modify time to the sent modified time if the server determines from the comparison that the file had been modified.
-
-
23. A method of maintaining an access time of a file at a server data processing system, said server data processing system connected to at least one client data processing system through a means of communication, said method comprising:
-
maintaining a client access time and a permission from the server data processing system to read the file by any one of at least one client data processing systems; incrementing, by the client data processing system having read permission, the client access time when the client data processing system accesses the file; sending periodically, from each one of said client data processing systems having the read permission to the server data processing system the corresponding client access time; comparing, by the server data processing system, the sent client access time with a recorded access time at the server data processing system to determine if the file had been accessed while the client data processing system had the read permission; and
updating, by the server data processing system, the recorded access time with the sent client access time if the server determines from the comparison that the file had been accessed. - View Dependent Claims (24)
-
-
25. A computer program for use in a server data processing system having means for maintaining a first file size of a file residing at a server data processing system, said server data processing system connectable to at least one client data processing system through a means of communication, said computer program comprising:
-
means for requesting, from one of said client data processing systems having permission from the server data processing system to write to the file, a second file size maintained by said client data processing system in conjunction with said write permission and updateable when said client data processing system modifies the file; means for periodically receiving a rightmost page of the file from said at least one of said client data processing systems extending the file through mapped access; and means for combining, by the server data processing system, the second updateable file size from the client data processing having write permission for the file and the rightmost page of the file to determine a latest file size maintained at said server data processing system.
-
Specification