Exam LFCS All QuestionsBrowse all questions from this exam
Question 104

Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/creation time and does NOT generate them as needed?

(Choose TWO correct answers.)

    Correct Answer: A, C

    The ext3 and ext2 filesystems both preallocate a fixed number of inodes at the time of creation. This means that the number of inodes is determined during the initial setup of the filesystem and remains constant unless the filesystem is resized or reformatted. This is in contrast to filesystems like JFS and XFS, which allocate inodes dynamically as needed. The procfs filesystem is not even a traditional file-based filesystem, making it irrelevant to the question.

Discussion
StribOptions: AC

The Linux filesystems that preallocate a fixed number of inodes at the filesystem's creation time and do not generate them as needed are: A. ext3 C. ext2 Both ext3 and ext2 filesystems allocate a fixed number of inodes during their creation. The number of inodes is determined at filesystem creation and remains fixed unless the filesystem is resized or reformatted. Inodes are data structures that store metadata about files and directories in a filesystem.

Strib

The other options listed are not correct: B. JFS: JFS (IBM's Journaled File System) does not preallocate a fixed number of inodes at creation time. Inodes are dynamically allocated as needed. D. XFS: XFS does not preallocate a fixed number of inodes at creation time. It uses a dynamic inode allocation scheme. E. procfs: procfs is a special filesystem that provides information about processes and system resources in a virtual file system. It does not use inodes, as it is not a traditional file-based filesystem.