Recent questions tagged file-system

0 0 votes
0 0 answers
631
631 views
What are the advantages and disadvantages of providing mandatorylocks instead of advisory locks whose use is left to users’ discretion?
0 0 votes
0 0 answers
518
518 views
The open-file table is used to maintain information about files that arecurrently open. Should the operating system maintain a separate tablefor each user or maintain jus...
0 0 votes
0 0 answers
663
663 views
Consider a file system in which a file can be deleted and its disk spacereclaimed while links to that file still exist.What problems may occur ifa new file is created in ...
0 0 votes
0 0 answers
484
484 views
Researchers have suggested that, instead of having an access listassociated with each file (specifying which users can access the file,and how), we should have a user con...
0 0 votes
0 0 answers
468
468 views
Consider a system that supports 5,000 users. Suppose that you want toallow 4,990 of these users to be able to access one file.a. How would you specify this protection sch...
0 0 votes
0 0 answers
389
389 views
In some systems, a subdirectory can be read and written by anauthorized user, just as ordinary files can be.a. Describe the protection problems that could arise.b. Sugges...
0 0 votes
0 0 answers
270
270 views
Explain the purpose of the open() and close() operations.
0 0 votes
0 0 answers
413
413 views
Could you simulate a multilevel directory structure with a single-leveldirectory structure in which arbitrarily long names can be used? If youranswer is yes, explain how ...
0 0 votes
0 0 answers
324
324 views
Why do some systems keep track of the type of a file, while others leaveit to the user and others simply do not implement multiple file types?Which system is “better”?3- ...
0 0 votes
0 0 answers
377
377 views
Some systems automatically delete all user files when a user logs off ora job terminates, unless the user explicitly requests that they be kept.Other systems keep all fil...
0 0 votes
0 0 answers
414
414 views
Explain why logging metadata updates ensures recovery of a file system after a file-system crash.
0 0 votes
0 0 answers
530
530 views
Assume that in a particular augmentation of a remote-file-accessprotocol, each client maintains a name cache that caches translationsfrom file names to corresponding file...
0 0 votes
0 0 answers
554
554 views
Fragmentation on a storage device can be eliminated by recompactionof the information. Typical disk devices do not have relocation or baseregisters (such as those used wh...
0 0 votes
0 0 answers
582
582 views
Consider a file system that uses inodes to represent files. Disk blocksare 8 KB in size, and a pointer to a disk block requires 4 bytes. This filesystem has 12 direct dis...
0 0 votes
0 0 answers
857
857 views
Consider a file system on a disk that has both logical and physicalblock sizes of 512 bytes. Assume that the information about eachfile is already in memory. For each of ...
0 0 votes
0 0 answers
352
352 views
Discuss how performance optimizations for file systems might resultin difficulties in maintaining the consistency of the systems in the eventof computer crashes
0 0 votes
0 0 answers
494
494 views
Some file systems allow disk storage to be allocated at different levelsof granularity. For instance, a file system could allocate 4 KB of diskspace as a single 4-KB bloc...
0 0 votes
0 0 answers
849
849 views
Consider a system where free space is kept in a free-space list.a. Suppose that the pointer to the free-space list is lost. Can thesystem reconstruct the free-space list?...
0 0 votes
0 0 answers
387
387 views
What are the advantages of the variant of linked allocation that uses aFAT to chain together the blocks of a file?
0 0 votes
0 0 answers
361
361 views
Contrast the performance of the three techniques for allocating diskblocks (contiguous, linked, and indexed) for both sequential andrandom file access.
0 0 votes
0 0 answers
430
430 views
Consider a file system that uses a modifed contiguous-allocation scheme with support for extents. A file is a collection of extents, with each extent corresponding to a c...
0 0 votes
0 0 answers
240
240 views
Explain how the VFS layer allows an operating system to support multiple types of file systems easily.
0 0 votes
0 0 answers
247
247 views
Why is it advantageous to the user for an operating system to dynamicallyallocate its internal tables? What are the penalties to the operatingsystem for doing so?
0 0 votes
0 0 answers
299
299 views
How do caches help improve performance? Why do systems not usemore or larger caches if they are so useful?
0 0 votes
0 0 answers
464
464 views
One problem with contiguous allocation is that the user must preallocateenough space for each file. If the file grows to be larger than thespace allocated for it, special...
0 0 votes
0 0 answers
383
383 views
Consider a system that supports the strategies of contiguous, linked,and indexed allocation. What criteria should be used in deciding whichstrategy is best utilized for a...
0 0 votes
0 0 answers
280
280 views
Why must the bit map for file allocation be kept on mass storage, ratherthan in main memory?
0 0 votes
0 0 answers
413
413 views
What problems could occur if a system allowed a file system to bemounted simultaneously at more than one location?
1 1 vote
0 0 answers
666
666 views
Consider a file currently consisting of 100 blocks. Assume that the filecontrolblock (and the index block, in the case of indexed allocation)is already in memory. Calcula...
40 40 votes
6 answers 6 answers
36.6k
36.6k views
The index node (inode) of a Unix -like file system has $12$ direct, one single-indirect and one double-indirect pointers. The disk block size is $4$ kB, and the disk bloc...