Method for moving an open file being accessed by at least one user
First Claim
Patent Images
1. A method for moving an open file in a computer system, wherein said open file is currently being accessed by at least one user, said method comprising the steps of:
- identifying an open file which is located at a first portion of a disk, where at least a portion of said file is to be moved to a second portion of said disk;
moving at least a portion of said open file to said second portion of said disk, said moving step comprising the steps of;
(a) copying said portion of said open file to said second portion of said disk;
(b) updating said open file at said first portion of said disk and said copied portion at said second portion of said disk in response to a request to write to said open file received after completion of said identifying step; and
,(c) deallocating said first portion of said disk after completion of said copying step.
4 Assignments
0 Petitions
Accused Products
Abstract
A method for moving open files on a computer system is disclosed. According to one aspect of the invention, an open file may be accessed by a user while being moved. To ensure accuracy, if data is to be written to an open file while it is being moved, the data is written to both the old and new locations.
76 Citations
16 Claims
-
1. A method for moving an open file in a computer system, wherein said open file is currently being accessed by at least one user, said method comprising the steps of:
-
identifying an open file which is located at a first portion of a disk, where at least a portion of said file is to be moved to a second portion of said disk; moving at least a portion of said open file to said second portion of said disk, said moving step comprising the steps of; (a) copying said portion of said open file to said second portion of said disk; (b) updating said open file at said first portion of said disk and said copied portion at said second portion of said disk in response to a request to write to said open file received after completion of said identifying step; and
,(c) deallocating said first portion of said disk after completion of said copying step. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. In a computer system comprising one or more disks, said system comprising means for defragmenting files by moving at least a portion of said files and by moving file positions on at least one of said disks, a method for moving at least a portion of an open file while said file is being accessed by a user, said method comprising the steps of:
-
determining a portion of said file to be moved from a first location to a second location; copying said portion of said file to said second location while enabling said file to continue to be accessed by said user; and
,deallocating said first location after said copying step has been completed; wherein when a user request to write data to said file during said step of copying is made, said data is written to said file by writing said data to both said first and second locations. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A method of moving at least a portion of a file in a computer system, including files being accessed by at least one user, said method comprising the steps of:
-
identifying at least a portion of a file to be moved, said portion comprising at least one file segment located at a first disk portion and a file header pointing to said first disk portion, wherein said file segment is to be moved to a second disk portion; determining if said identified portion is being accessed by at least one user, and if so, moving said portion of said file by executing a method for moving open files, said method for moving open files comprising the steps of; copying said file segment to said second disk portion; updating said file to be moved at said first disk portion and said second disk portion in response to a request to write to said file received after completion of said identifying step; rewriting said file header to point to said second disk portion; and deallocating said first disk portion. - View Dependent Claims (16)
-
Specification