Question: can you please do this question for me I am having a hard time understanding it Description To dump and access the super block on

can you please do this question for me I am having a hard time understanding it

Description To dump and access the super block on a Linux File System.

Requirements

You must write a program written in C that will access and display the contents of the superblock on a Linux File System.

The output must be formatted and readable.

The name of your program must be: fs_info.c

Your program must be located in $HOME/itec400/homework

Make sure the permissions on fs_info.c are set to 705.

Consider using the function statfs() [see man page]

Display the magic number

Display total number of data blocks

Display total number of free blocks

Display total number of inodes

Display total number of free inodes

You must be root to execute the program

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!