































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Description about Distributed File Systems, File Service architecture, Sun’s Network File System, File management OS component,Storage organisation, DFS requirements.
Typology: Lecture notes
1 / 39
This page cannot be seen from the preview
Don't miss anything!
































J: J:\StaffJ:\Staff\DutiesJ:\Staff\Budget
J:
J:\STAFF
J:\STAFF\BUDGET
J:\STAFF\DUTIES
Directory module:
Relates user-attributed filenames to file IDs
File module:
Relates file IDs to particular (physically stored) files
Access control module:
Checks permission for operation requested
File access module:
Reads or writes file data or attributes
Block module:
Accesses and allocates disk blocks
Device module (
disk device driver
):^
Disk I/O and buffering
-^
-^
stored in files (in some systems)
Communication (IPC) via shared files
Also it should provide transparency:^ – Access transparency– Location transparency– Concurrency transparency– Failure transparency– Performance transparency
-^
Other require features:^ – Support for hardware and operating system heterogeneity– Scalability– Replication transparency– Migration transparency
Every operation on a file is instantly visible to allprocesses
-^
Easy to implement if there is only one copy ofeach file held by the file service and no clientcaches
a barrier to concurrency
-^
Files are ‘locked’ for the duration of the accesssession (delimited by an Open and a Close)
-^
Only the client that has opened the file can seeintermediate states of the file
-^
Other clients only see the effects of changes afterthe file has been closed
-^
Good if concurrent access to files is rare
All changes have the all-or-nothing property
-^
Necessary for consistency where replicawriteable copies exist
-^
Good way of achieving concurrency transparency
DFS can support replication –^
A replica is a copy of a portion or all of some data
-^
The main benefit being - locality of reference
-^
The main problem being - consistency
Generally
read access
write access
Good compromise is to make all but one replica read-only
-^
After a write update, the changes are propagated to theread-only copies
-^
Clients can be sent ‘invalidation’ messages signallingthe need for an update
DFS: An Architecture
Uses flat file with directory service and client module
-^
NFS protocol^ – RPC based, OS independent (originally UNIX)– NFS server– stateless (no open/close)– no locks or concurrency control– no replication with updates
-^
Virtual file system, remote mount
-^
Access control (user id with each request)^ – security loophole (modify RPC to impersonate user…)
-^
Client and server caching