Question: Suppose you are given the inode structure as shown below. Assume that our inode structure has 10 direct pointers, and Block size is 8K bytes

 Suppose you are given the inode structure as shown below. Assume

Suppose you are given the inode structure as shown below. Assume that our inode structure has 10 direct pointers, and Block size is 8K bytes and pointers are 4 bytes. Write a function int count ti (struct inode *myinode, char *word); which counts the number of blocks containing the given string word only in triple indirect blocks. b. [7 points] mode owners (2 timestamps (3 size block count Note that triple indirect level might be partially filled with blocks! So if there is no more block or level the corresponding pointer will contain NULL. Please take that into account! db data direct blocks Also assume that a data block contains a string text. Thus, if needed, you can use strcmp () or any other functions from the standard libraries (suppose they are included here) data data S snge indirect double indirect iple indirect data ti data Space for problem 4 (b) [7pt] int count di (struct inode *myinode, char *word) ( int i, j, k; int count 0 int num blk 8 * 1024 / 4

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 Databases Questions!