| 1. |
Consider A File System Such As The One On Your Favorite Operating System. what Are The Steps Involved In Creation And Deletion Of Files, And In Writing Data To A File? explain How The Issues Of Atomicity And Durability Are Relevant To The Creation And Deletion Of Files, And To Writing Data To Files. |
|
Answer» There are several STEPS in the creation of a FILE. A storage area is assigned to the file in the file system, a unique i-number is given to the file and an i-node entry is inserted into the i-list. Deletion of file involves EXACTLY opposite steps. For the file system user in UNIX, durability is important for obvious REASONS, but atomicity is not relevant generally as the file system doesn’t support transactions. To the file system implementor though, many of the internal file system ACTIONS need to have transaction semantics. All the steps involved in creation/deletion of the file must be atomic, otherwise there will be unreferenceable files or unusable areas in the file system. There are several steps in the creation of a file. A storage area is assigned to the file in the file system, a unique i-number is given to the file and an i-node entry is inserted into the i-list. Deletion of file involves exactly opposite steps. For the file system user in UNIX, durability is important for obvious reasons, but atomicity is not relevant generally as the file system doesn’t support transactions. To the file system implementor though, many of the internal file system actions need to have transaction semantics. All the steps involved in creation/deletion of the file must be atomic, otherwise there will be unreferenceable files or unusable areas in the file system. |
|