Question: Question 1 2 Given a FILESYSTEM of type VSFS studied in the lecture, which uses a block size of 4 0 9 6 bytes. In

Question 12
Given a FILESYSTEM of type VSFS studied in the lecture, which uses a block size of 4096 bytes. In FILESYSTEM there is a single file named foo/, size 4096 bytes. A process writes a string of 11 bytes to the offset (OFFSET)4090 in the file as follows:
int fd = open("/foo", O_RDWR); lseek(fd,4090, SEEK_SET); write(fd, "hello world", 11);
Assume that the process is the only one that accesses SYSTEM CALLS FILESYSTEM do not fail and the write() writes the entire string; And there is no CACHING of blocks from the disk in the memory (in particular, a change of the block in the FILESYSTEM causes the block to be written to the disk).
How many operations will 10 result in executing the plan?
S 911 d.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!