File Systems

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which of the following statements are correct about special file events?

  • File events may be incomplete if, for example, buffers are filling up. (correct)
  • File events describe file system accesses and changes. (correct)
  • File events cannot be obtained for all mounted file systems. (correct)
  • On Linux systems, file system events are signaled via special file descriptors. (correct)

Which of the following statements are correct about POSIX fcntl file locks?

  • Locks can cover entire files or only a region of a file (record locks). (correct)
  • File locks are advisory, i.e., they can be ignored by applications. (correct)
  • Applications sometimes use the existence of files as way to indicate that some other file is locked. (correct)
  • Locks are associated to a process and they will be released when the process terminates. (correct)

Which of the following statements are correct about file names?

  • File systems always distinguish uppercase and lowercase letters.
  • All names of files in a directory must be unique. (correct)
  • File systems have different sets of reserved characters (e.g., path separators). (correct)
  • On Unix file systems, the path /usr/./../bin/.. refers to the root of the file system. (correct)

Which of the following statements are correct about permissions in file systems?

<p>File permissions can control under which rights a program is executes. (A), Changing the name of a file only requires write permissions to the directory but not to the file itself. (B), The file permissions ––r–r– prevent the owner of the file from reading the file content but the owner retains the rights to change the file permissions. (C)</p> Signup and view all the answers

Which of the following statements are correct about file systems using index nodes (inodes)?

<p>The attributes of a file system object are stored in the index node. (A), It is possible to have files where not all data blocks are actually allocated (sparse files). (B), Some file system operations may require multiple changes to the inodes of a file and hence there can be inconsistencies until all block updates have been committed to stable storage. (C), Index node file systems provide fast sequential access and good random access. (D)</p> Signup and view all the answers

Which of the following statements are correct about links in file systems?

<p>A hard link is resolved at creation time while a symbolic link is resolved when a the name is used to access a file system object. (B), Symbolic links can cross file system boundaries while hard links are constrained to a single file system. (C), A directory with a link count of 2 is empty. (D)</p> Signup and view all the answers

Which of the following statements are correct about mounting file systems?

<p>Mounting a file system on a directory usually implies that any content of the directory becomes inaccessible. (A), An entire file system can be mounted read-only, which prevents any write attempts by regular processes, irrespective of the permissions associated with file system objects. (B), User space processes may expose a file system that can be mounted by the kernel. (C), Unmounting a file system while processes have files of the file system open can cause file system corruption and data loss. (D)</p> Signup and view all the answers

Which of the following statements are correct about special file systems?

<p>, An user space file system is used to expose a file system implemented in user space to user space applications. (A), A process file system is used to expose the kernel’s process list and related information to user space processes. (C), A device file system is used to expose devices that have been detected by the kernel as device files to user space applications. (D)</p> Signup and view all the answers

Which of the following statements are correct about virtual file systems?

<p>The virtual file system resolves names to virtual inodes and maintains suitable directory entry caches. (A), Virtual file systems provide an abstraction to simplify the integration of new file systems. (B), Concrete file systems do not necessarily access the local block storage to store data. (D)</p> Signup and view all the answers

Flashcards are hidden until you start studying

More Like This

Data Management File Naming Quiz
8 questions
File Systems Quiz
14 questions

File Systems Quiz

GladLepidolite6058 avatar
GladLepidolite6058
File Formats Flashcards
8 questions

File Formats Flashcards

WellReceivedSquirrel7948 avatar
WellReceivedSquirrel7948
Use Quizgecko on...
Browser
Browser