You are on page 1of 4

CHP 5 FILE STRUCTURE

1. All files have a name, the name consists of 3 parts. It is collection of files,
directory structure and partitions.
2. What are the 5 types of operations that may be performed on the directory?
1. creating a file
2. writing to a file
3. repositioning within file
4. deleting a file
5. truncating a file
3. Protection is common file attributes when it can control who can do reading, writing
and executing.
4. In two-level directory, each user has his owns directory. It is called UFD (user file
directory).
5. File Allocation Table filing system, supported by all versions of Microsoft windows,
was an evolution of that used in Microsoft’s earlier OS (MS-DOS).
6. The features of direct access are random access, need buffering and everything
that can hold a file system. Example is hard disk.
7. Acyclic-Graph Directory structure is flexible and sometimes it is complex.
8. File system incorporate routines allow the user or programmer to create, delete,
modify & manipulate files logically by name.
9. Linked allocation did not do random access compare to another two methods.
10. The location of every file stored on a disk can be found by searching the address.
11. Direct Access allows random access to any file block. This method is based on a
disk model of a file.
12. What file that can controlled access by limiting the type of file access that can be
made? Protection
13. What are 2 distinct ports of a file system? the mechanism for storing files & the
directory structure into which they are organized
14. The disadvantages of contiguous allocation are wasteful of space and files cannot
grow.
15. Truncating a file, user may want to erase contents of file but keep its attributes.
16. What are three types of user? Owner, groups, others.
17. What is file extension that used for related file grouped into one file, sometimes
compressed for achieving or storage? arc, zip, tar
18. A typical file system consists of collection of files, metadata, partitions
19. OS is given the name of the device and the location within the file structure at which
to attach the file system called FILE.

20. Access method is a process of accessing the data in a file. There are TWO (2)
common access methods. Briefly define each method.

21. Show the file viewed on the disk for the following directory:
a.

(i) File Start Length


AA 2 3
BB 21 3
CC 19 2
DD 7 2
EE 11 4
FF 5 2

b.

File Index Block


XXX 12
Index Table
17
13
6
18
3
23
-1

22. What is a file structure?

23. How does Windows operating system manage the file?

24. One of the file’s system attribute is Type. List TWO (2) examples of information from
Type file system attributes.

25. A file is a collection of data that represent a program, a document or part of file
system itself. The Operating System provides system calls to performed different
operations on a file. One of the operations is appending to the file. Explain
appending operation and give an example of a scenario that might benefit from a file
system that supporting an append-only access.
26. A directory structure is the way an operating system’s file system and its files are
displayed to the user. It stores information about all files.

i. Explain any ONE (1) scheme for defining the logical structure of a directory.

ii. Based on the figure below, draw the Filesystem Hierarchy Standard (FHS) that
defines the structure of file system in Linux Operating System.

You might also like