Claims
- 1. A computer-implemented for ensuring consistency between metadata stored in a database system and files stored in a file system and represented by the metadata, comprising:
writing at least changes to at least one original file having a name to at least one replacement file; commencing a database transaction; if the transaction commits,
designating, as the name of the replacement file, the name of the original file; and removing the original file from the file system; otherwise, not designating, as the name of the replacement file, the name of the original file.
- 2. The method of claim 1, wherein when the transaction does not commit, the original file is not removed from the file system.
- 3. The method of claim 1, further comprising, if the transaction commits, setting at least one security attribute of the original file as a security attribute of the replacement file.
- 4. The method of claim 1, comprising providing at least one SQL interface to facilitate at least the designating and removing acts.
- 5. The method of claim 1, comprising providing at least one SQL interface executable in at least one of: an SQL UPDATE statement, and an SQL INSERT statement, the SQL interface providing at least one value.
- 6. The method of claim 5, comprising inserting the value into at least one data structure in the database system representing the metadata.
- 7. The method of claim 6, wherein at least one server associated with the database system sends at least one message to at least one manager associated with the file system to execute at least the designating and removing acts after the act of inserting the value into the data structure.
- 8. The method of claim 7, wherein the manager validates the existence of the original and replacement files in response to the message.
- 9. The method of claim 7, wherein the manager extracts security attributes from the original file in response to the message.
- 10. The method of claim 7, wherein the manager, responsive to the server, makes logged operations pertaining to the original and replacement files persistent.
- 11. The method of claim 10, wherein the manager determines whether the act of making persistent is successful, and if so, undertakes at least one of: setting at least one security attribute of the replacement file to be a security attribute of the original file, and executing the designating act.
- 12. The method of claim 10, wherein the manager determines whether the act of making persistent is successful, and if so, undertakes both of: setting at least one security attribute of the replacement file to be a security attribute of the original file, and executing the designating act.
- 13. A system comprising:
at least one database system storing metadata; at least one file system storing files represented by the metadata; and at least one SQL interface for ensuring that files in the file system are not updated except when a transaction reflecting corresponding changes in the metadata commits in the database system.
- 14. The system of claim 13, comprising:
means for setting, if the transaction commits, at least one security attribute of an original file as a security attribute of a replacement file.
- 15. The system of claim 13, wherein the SQL interface is executable in at least one of: an SQL UPDATE statement, and an SQL INSERT statement, the SQL interface providing at least one value to the database system.
- 16. The system of claim 13, comprising at least one server associated with the database system sending at least one message to at least one manager associated with the file system to designate, as the name of a replacement file, a name of an original file, and to remove the original file from the file system after the act of providing the value to the database system.
- 17. The system of claim 16, wherein the manager validates the existence of the original and replacement files in response to the message.
- 18. The system of claim 16, wherein the manager extracts security attributes from the original file in response to the message.
- 19. The system of claim 16, wherein the manager, responsive to the server, makes logged operations pertaining to the original and replacement files persistent.
- 20. The system of claim 19, wherein the manager determines whether the act of making persistent is successful, and if so, undertakes at least one of: setting at least one security attribute of the replacement file to be a security attribute of the original file, and renaming the replacement file to have the name of the original file.
- 21. The system of claim 19, wherein the manager determines whether the act of making persistent is successful, and if so, undertakes both of: setting at least one security attribute of the replacement file to be a security attribute of the original file, and renaming the replacement file to have the name of the original file.
- 22. A system for maintaining metadata in a database system consistent with file data in a file system, the file data being represented by the metadata, the system comprising:
at least one SQL interface facilitating metadata and file updates in an atomic manner.
- 23. The system of claim 22, wherein the SQL interface ensures that files in the file system are not updated except when a transaction reflecting corresponding changes in the metadata commits in the database system.
- 24. The system of claim 23, comprising:
means for setting, if the transaction commits, at least one security attribute of an original file as a security attribute of a replacement file.
- 25. The system of claim 23, wherein the SQL interface is executable in at least one of: an SQL UPDATE statement, and an SQL INSERT statement, the SQL interface providing at least one value to the database system.
- 26. The system of claim 23, comprising at least one server associated with the database system sending at least one message to at least one manager associated with the file system to designate, as the name of a replacement file, a name of an original file, and to remove the original file from the file system after the act of providing the value to the database system.
- 27. The system of claim 26, wherein the manager validates the existence of the original and replacement files in response to the message.
- 28. The system of claim 26, wherein the manager extracts security attributes from the original file in response to the message.
- 29. The system of claim 26, wherein the manager, responsive to the server, makes logged operations pertaining to the original and replacement files persistent.
- 30. The system of claim 29, wherein the manager determines whether the act of making persistent is successful, and if so, undertakes at least one of: setting at least one security attribute of the replacement file to be a security attribute of the original file, and renaming the replacement file to have the name of the original file.
- 31. The system of claim 29, wherein the manager determines whether the act of making persistent is successful, and if so, undertakes both of: setting at least one security attribute of the replacement file to be a security attribute of the original file, and renaming the replacement file to have the name of the original file.
- 32. A computer program product comprising:
means for writing at least changes to at least one original file stored in a file system and having a name to at least one replacement file, the original file having metadata stored in a database system; means for commencing a database transaction in the database system; means for, if the transaction commits,
designating, as the name of the replacement file, the name of the original file; and removing the original file from the file system; the designating means otherwise not designating, as the name of the replacement file, the name of the original file.
- 33. The computer program product of claim 32, wherein when the transaction does not commit, the original file is not removed from the file system.
- 34. The computer program product of claim 32, further comprising means for setting, if the transaction commits, at least one security attribute of the original file as a security attribute of the replacement file.
- 35. The computer program product of claim 32, comprising means for providing at least one SQL interface to facilitate at least the designating and removing means.
- 36. The computer program product of claim 32, comprising means for providing at least one SQL interface executable in at least one of: an SQL UPDATE statement, and an SQL INSERT statement, the SQL interface providing at least one value to the database system.
- 37. The computer program product of claim 36, comprising means for inserting the value into at least one data structure in the database system representing the metadata.
- 38. The computer program product of claim 37, comprising means for sending a message from the database system to at least one manager associated with the file system to execute at least the designating means after operation of the means for inserting.
- 39. The computer program product of claim 38, comprising means for validating the existence of the original and replacement files in response to the message.
- 40. The computer program product of claim 38, comprising means for extracting security attributes from the original file in response to the message.
- 41. The computer program product of claim 40, comprising means responsive to the server for making logged operations pertaining to the original and replacement files persistent.
- 42. The computer program product of claim 41, comprising means for determining whether the means for making persistent is successful, and if so, undertaking at least one of: setting at least one security attribute of the replacement file to be a security attribute of the original file, and renaming the replacement file.
- 43. A program storage device with an SQL interface executable by a processor and being of the form:
- 44. The device of claim 43, further comprising an expression |--,-- comment-string ---- ----------------------| that is an optional VARCHAR expression.
- 45. A program storage device including an SQL interface executable by a processor to perform database data and file system updates, the interface having at least a first expression specifying a location of an original file in URL format, and a second expression specifying a location of a replacement file in URL format.
Parent Case Info
[0001] This application is a continuation-in-part of co-pending U.S. patent application Ser. No. 09/590,637, filed Jun. 8, 2000, entitled “SYSTEM AND METHOD FOR REPLICATING EXTERNAL FILES AND DATABASE METADATA PERTAINING THERETO”, from which priority is claimed and which is incorporated herein by reference.
Continuation in Parts (1)
|
Number |
Date |
Country |
Parent |
09590637 |
Jun 2000 |
US |
Child |
10135982 |
Apr 2002 |
US |