Database-managed file system
First Claim
1. A method for managing files in a computer system, the method comprising the steps of:
- storing, in a database, a database structure in which each file of a plurality of files is represented by a separate row of said database structure;
wherein each row of said database structure includes a field in which a flag, which indicates whether a corresponding file is associated with at least one rule, may be stored;
establishing an association between a type of file system operation, a particular file that has a specified file name, and an action;
wherein the step of establishing an association includes storing, in a rules repository that is separate from said database structure, a rule that indicates said type of file system operation and said action;
detecting when said type of file system operation is requested to be performed on said particular file that has said specified file name; and
in response to detecting that said type of file system operation is requested to be performed on said particular file that has said specified file name, performing certain steps comprising;
(a) searching said database structure for a particular row that corresponds to said particular file, (b) determining whether said particular row contains a set flag that indicates that said particular file is associated with at least one rule, (c) if said particular row contains a set flag that indicates that said particular file is associated with at least one rule, then (1) searching in said rules repository for a particular rule that is associated with said particular file and (2) performing a particular action that is specified in said particular rule, and (d) if said particular row does not contain a set flag that indicates that said particular file is associated with at least one rule, then performing said file system operation on said particular file without searching in said rules repository, wherein said type of file system operation is linking said particular file to a particular directory.
0 Assignments
0 Petitions
Accused Products
Abstract
Techniques are provided for performing file operations. According to one technique, a file system interface is exposed to applications. The file system interface includes routines for saving and retrieving files. Calls to perform a plurality of file operations are received through the file system interface. The plurality of file operations are performed as a single transaction by performing the steps of: if all file operations of the plurality of file operations are completed without a failure, then making permanent all changes made by the plurality of file operations; and if any file operations of the plurality of file operations fail, then undoing all changes made by all of the plurality of file operations.
40 Citations
8 Claims
-
1. A method for managing files in a computer system, the method comprising the steps of:
-
storing, in a database, a database structure in which each file of a plurality of files is represented by a separate row of said database structure; wherein each row of said database structure includes a field in which a flag, which indicates whether a corresponding file is associated with at least one rule, may be stored; establishing an association between a type of file system operation, a particular file that has a specified file name, and an action; wherein the step of establishing an association includes storing, in a rules repository that is separate from said database structure, a rule that indicates said type of file system operation and said action; detecting when said type of file system operation is requested to be performed on said particular file that has said specified file name; and in response to detecting that said type of file system operation is requested to be performed on said particular file that has said specified file name, performing certain steps comprising;
(a) searching said database structure for a particular row that corresponds to said particular file, (b) determining whether said particular row contains a set flag that indicates that said particular file is associated with at least one rule, (c) if said particular row contains a set flag that indicates that said particular file is associated with at least one rule, then (1) searching in said rules repository for a particular rule that is associated with said particular file and (2) performing a particular action that is specified in said particular rule, and (d) if said particular row does not contain a set flag that indicates that said particular file is associated with at least one rule, then performing said file system operation on said particular file without searching in said rules repository, wherein said type of file system operation is linking said particular file to a particular directory. - View Dependent Claims (2, 3, 4)
-
-
5. A computer-readable storage medium carrying one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform steps comprising storing, in a database, a database structure in which each file of a plurality of files is represented by a separate row of said database structure;
-
wherein each row of said database structure includes a field in which a flag, which indicates whether a corresponding file is associated with at least one rule, may be stored; establishing an association between a type of file system operation, a particular file that has a specified file name, and an action; wherein the step of establishing an association includes storing, in a rules repository that is separate from said database structure, a rule that indicates said type of file system operation and said action; detecting when said type of file system operation is requested to be performed on said particular file that has said specified file name; and in response to detecting that said type of file system operation is requested to be performed on said particular file that has said specified file name, performing certain steps comprising;
(a) searching said database structure for a particular row that corresponds to said particular file, (b) determining whether said particular row contains a set flag that indicates that said particular file is associated with at least one rule, (c) if said particular row contains a set flag that indicates that said particular file is associated with at least one rule, then (1) searching in said rules repository for a particular rule that is associated with said particular file and (2) performing a particular action that is specified in said particular rule, and (d) if said particular row does not contain a set flag that indicates that said particular file is associated with at least one rule, then performing said file system operation on said particular file without searching in said rules repository, wherein said type of file system operation is linking said particular file to a particular directory. - View Dependent Claims (6, 7, 8)
-
Specification