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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started