








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









z^
z^
z^
What is a file?–
A named collection of information stored on secondary storage z^
Properties of a file–
non-volatile– can read, read, or update it– has meta-data to describe attributes of the file z^
File Attributes–
name: a way to describe the file– type: some information about what is stored in the file– location: how to find the file on disk– size: number of bytes– protection: access control
-^ may be different for read, write, execute, append, etc. -^
time: access, modification, creation
-^
version: how many times has the file changed
z^
z^
z^
z^
z^
z^
z^
z^
z^
z^
z^
z^
a^
b
hollings
user
user
vi^
gdb
one
to
cc^
x^
y
system
users
z
z^
a^
b
hollings
user
user
vi^
gdb
one
to
cc^
x^
y
system
users
z
needs to know about some types of files–
directories– executables z^
should other file types be visible to the OS?–
Example: word processing file vs. spreadsheet– Advantages:
-^ OS knows what application to run -^ Automatic make (tops-20) - if source changed, re-compile before running -^
Problems:•
to add new type, need to extend OS• OS vs. application features are blurred• what if a file is several types
z^
z^
z^
z^
z^
z^
yourself
z^