Final answer:
The process of creating a new file on an FFS involves allocating an inode, updating the directory structure with the new file's entry, and sequentially allocating disk blocks as data is written, until it reaches 20 KB. The inode and block bitmap are updated accordingly.
Step-by-step explanation:
When a process requests the creation of a new file, such as /tmp/foo, on a Fast File System (FFS), certain modifications occur within the file system's structure. The process would involve allocating an inode for the new file, updating the filesystem's directory structure to include an entry for /tmp/foo, and allocating disk blocks to store the file's data as it is written.
Initially, the file size of /tmp/foo is zero. As the process writes data to the file sequentially, the file system allocates more disk blocks to accommodate the growing file size, which involves updating the file's inode and the block bitmap to reflect the newly allocated blocks. These blocks are typically contiguous for sequential writes, improving read/write efficiency. Once the file size reaches 20 KB, the file's inode will reflect this size, inclusive of all the disk block pointers needed to access the complete file content.