Gytha John Harikrishnan Hridya S7Cse: Presented by
Gytha John Harikrishnan Hridya S7Cse: Presented by
Gytha John Harikrishnan Hridya S7Cse: Presented by
The directory service in DFS is a key component in all distributed systems. The performance and availability require the use of caching and replication.
Access control and protection for DFSs open many problems in distributed system security.
Multiplicity of files
File accesses are generally in one of the three modes: Sequential access, Direct access , indexed sequential access.
System services
The organization of data files can be either flat or hierarchical. Files are named and accessed using a hierarchical pathname .
root
chow
johnson
book
Paper
report
Directories are files that contain names and addresses of other files and subdirectories.
File access must be regulated to ensure security. Directory , Authorization and file services are user interfaces to a file system.
System services are file systems interface to hardware & are transparent to users.
Major Fns of System services includes: mapping of logical to physical block addresses Interfacing to services at the device level for file space allocation/deallocation Actual read/write file operations.
Servers
A file server is stateful if it maintains internally some of the state information and stateless if it maintains none at all. Implementation of stateless server must address the following issues: Idempotency Requirement File locking mechanism Session key management Cache consistency
In space domain read and write accesses to a remote file can be implemented in one of the following ways:
1. All replicas are identical in all times 2. Replicas are perceived as identical only at some points in time 3. Users always read the most recentdata in the replicas. 4. Write operations are always performed immediately and their results are propagated in a best -effort fashion
In time domain interleaved read and write results in concurrent file accesses.
Semantics of sharing
Solutions to coherency and concurrency control problem depends on semantics of sharing. Three popular semantic models: Unix semantics Transaction semantics Session semantics
Version control:
All problems associated with file sharing and replication disappear if the file is read only. To achieve write sharing clients must know the names of newly created files.
A simple solution is to use same file name but with a version number for each revision of the file.
The burden of enforcing file sharing semantics is separated from the file service in to a higher level service called version control. File with highest version number considered to be current version.