Copying Server Controlled FilesWhen a file open is attempted, c-treeACE checks to see if either a file with the same name has already been opened, or if a file with the same unique ID has already been opened. In either case, the match means that a physical file open is not required. Instead the open count for the file is incremented. Checking the unique file ID permits different applications and/or client nodes to refer to the same file with different names. For example, consider the situation where independent clients operate from different drive or path mappings. If two different files have the same file ID, (a 12-byte value comprised of a Server ID, a time stamp, and a transaction log sequence number), problems will arise as the second file would not actually be opened. The ID is constructed such that no two files can have the same ID unless someone copies one file on top of another. See the warning below. When a file without a matching name does match the unique file ID, a message is sent to the system console indicating the names of the two files involved. This message can be suppressed by adding the following entry to the c-tree Server configuration file: MONITOR_MASK MATCH_FILE_ID Warning: Do NOT copy, move, or delete files controlled by the server while the server is operational! As discussed above, copying a file to a new name is typically the only way the file ID’s can match. The Update File ID utility, ctfileid, is available to update the file ID number should this become absolutely necessary. This utility should only to be run on a file when the server is stopped. |
|||