Question 61
HardAn inode has 12 direct pointers, one single-indirect, one double-indirect and one triple-indirect pointer. Blocks are 4 KB and pointers are 4 bytes. About how large can a file be?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
An inode has 12 direct pointers, one single-indirect, one double-indirect and one triple-indirect pointer. Blocks are 4 KB and pointers are 4 bytes. About how large can a file be?
About 4 GB
About 48 KB
About 4 TB
About 4 MB
Sign up free to see the answer and a step-by-step explanation.
With 4 KB blocks and 4-byte pointers, how much data can the single-indirect block of an inode address?
4 MB
4 KB
16 MB
1 MB
Sign up free to see the answer and a step-by-step explanation.
A file system uses 1 KB blocks and a FAT with 4-byte entries for a 1 GB disk. How large is the FAT?
1 MB
4 MB
4 KB
256 KB
Sign up free to see the answer and a step-by-step explanation.
Reading byte 10,000,000 of a file with 4 KB blocks and linked allocation requires following how many links from the first block (roughly)?
About 10,000
About 24
About 2,441
1
Sign up free to see the answer and a step-by-step explanation.
What problem does a journaling file system solve?
Speeding up reads only
Making files smaller
Encrypting files
Keeping the file system consistent after a crash without a full scan
Sign up free to see the answer and a step-by-step explanation.
Which journaling mode writes only metadata to the journal?
Copy-on-write snapshots
No journaling
Full data journaling
Ordered or writeback (metadata) journaling
Sign up free to see the answer and a step-by-step explanation.
What does a copy-on-write file system such as ZFS or Btrfs do when a block is changed?
Overwrites the block in place
Deletes the file
Copies the whole disk
Writes the new data to a new location and then updates the pointers
Sign up free to see the answer and a step-by-step explanation.
A directory has permissions r-x for others but a file in it has rw- for others. Can another user delete the file?
Yes, because the file is writable
Only if the file is empty
No, deleting needs write permission on the directory
Yes, always
Sign up free to see the answer and a step-by-step explanation.
What does the setuid bit on an executable do?
It schedules the program at boot
The program runs with the file owner's privileges
It hides the file
It makes the file read-only
Sign up free to see the answer and a step-by-step explanation.
What is the octal mode of rwxr-x--x?
755
715
741
751
Sign up free to see the answer and a step-by-step explanation.