Question 51
MediumWhat is the main benefit of a virtual file system (VFS) layer?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
What is the main benefit of a virtual file system (VFS) layer?
Programs can use the same system calls for different file system types
It encrypts files
It makes disks faster
It removes the need for directories
Sign up free to see the answer and a step-by-step explanation.
What does fsync() do?
Deletes a file
Synchronises clocks
Copies a file to another computer
Forces a file's modified data out of memory buffers onto the disk
Sign up free to see the answer and a step-by-step explanation.
Which allocation method suffers from external fragmentation and makes files hard to grow?
Contiguous allocation
FAT
Indexed allocation
Linked allocation
Sign up free to see the answer and a step-by-step explanation.
In Unix, what does the 'x' permission on a directory allow?
Running the directory as a program
Entering the directory and accessing files in it by name
Deleting the directory
Listing the directory's contents only
Sign up free to see the answer and a step-by-step explanation.
An inode has 12 direct pointers, one single-indirect and one double-indirect pointer. Blocks are 4 KB and pointers 4 bytes. Approximately what is the largest file size?
About 4 MB
About 1 TB
About 4 GB (4 GB + 4 MB + 48 KB)
About 48 KB
Sign up free to see the answer and a step-by-step explanation.
What permissions does chmod 754 give a file?
Owner rw-, group r-x, others r--
Owner rwx, group r-x, others r--
Owner rwx, group rwx, others r--
Owner r-x, group rwx, others r--
Sign up free to see the answer and a step-by-step explanation.
A file uses linked allocation, and the directory entry points to its first block. How many disk reads are needed to read its 50th block?
2
49
1
50
Sign up free to see the answer and a step-by-step explanation.
Which allocation method supports direct access without causing external fragmentation?
Indexed allocation
Linked allocation
Contiguous allocation
None of them
Sign up free to see the answer and a step-by-step explanation.
Why can't a hard link point to a file on a different file system?
Hard links are too slow
Only the root user may create them
Inode numbers are unique only within one file system
File systems can't share disks
Sign up free to see the answer and a step-by-step explanation.
Which directory structure allows a file or subdirectory to be shared by appearing in more than one directory, without cycles?
Tree-structured directory
Single-level directory
Two-level directory
Acyclic-graph directory
Sign up free to see the answer and a step-by-step explanation.