Question: Create the custom setupfs utility as described as described as below: NAME setupfs -- create and observe a file system SYNOPSIS setupfs [ -c fs

Create the custom setupfs utility as described as described as below:

NAME setupfs -- create and observe a file system

SYNOPSIS setupfs [ -c fs device directory ] |

[-l fs ]| [ -s device size ] |

DESCRIPTION The setupfs tool creates and observes file systems and backend storage.

OPTIONS

Only a single argument may be given. Display help if no options are given.

-s device size device - Basename of the block device. Created in /var/tmp. size - How many MiB (1000x1000) in the block device.

-c fs device directory fs - File system type. Valid types are: ext3, ext4, xfs, or btrfs. device - Name of the block device created by the -s option directory - Where to mount the file system.

-l fs fs - the filesystem type to display

EXAMPLE # create a 100MiB device /var/tmp/image_01 setupfs -s image_01 100 # create an ext4 file system on top of image_01 mounted to /mnt setupfs -c ext4 image_01 /mnt

EXIT STATUS The setupfs utility exits with 0 on success, and >0 if an error occurs

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!