Hire Experts For Answers
Order NowRelated Study Services
- Homework Answers
- Coursework writing help
- Term paper writing help
- Writing Help
- Paper Writing Help
- Research paper help
- Thesis Help
- Dissertation Help
- Case study writing service
- Capstone Project Writing Help
- Lab report Writing
- Take my online class
- Take my online exam
- Do my test for me
- Do my homework
- Do my math homework
- Online Assignment Help
- Do my assignment
- Essay Writing Help
- Write my college essay
- Write my essay for me
DESCRIPTION
Posted
Modified
Viewed
21
Hi, I am looking for help on a project about a file system report based on the following document to be done in the C programming language. The program needs to generate reports (to STDOUT) about the file system supplied to the program as a command line argument. More information is provided in the file attached
This order does not have tags, yet.
Attachments
CIS3110 Operating Systems Winter 2021
Assignment 4: File System Reports
This assignment asks you to generate reports (to STDOUT) about the file system that display
information about the files and directories that appear in a directory that you have supplied to
your program as a command line argument.
Your program will be called FSreport and will take 2 arguments:
- First argument is the type of report to be generated
o -tree for tree directory structure format
o -inode for inode format
- Second argument is the full path name of the root directory (where the descriptions will
start)
Example: $ ./FSreport -tree /home/myname/rootDir
You will use the fstat or stat command to retrieve information about the files and opendir and
other related functions for information about directories.
Your report can have 2 forms:
Tree directory structure (-tree)
- Sorted alphabetically by file/directory name
- For each file/directory display the following:
o Line 1: owner name (group name), inode number, permissions, size in bytes,
file/directory name
o Line 2: Date of last access, Date of last modification (to data or status whichever
is most recent)
- Each sub-directory in the file systems tree structure (starting with the given root
directory) should be explored.
- Indicate in your README if you can only report on the files/directories in the root
directory (one level only) or if you can display multiple sub-directory levels (indicate
the number of levels or the fact that your code can handle any number of levels).
An example of this type of report is in Example A.
Inodes Format (-inode)
- Sorted by inode number – smallest to largest
- For each file/directory display the following:
o Inode number: size (in bytes), number of 512-byte blocks allocated to the
file, file size/512, file/directory name
An example of this type of report is in Example B.
The following examples are reporting on the directory structure in the following diagram:
Level 1 is Assignment4 (you would have specified its entire pathname as a command line
argument.
Level 2 are the contents of the sub-directories Javascript and subDirA.
Example A: Tree Directory Structure Report
File System Report: Tree Directory Structure
Level 1: /home/faculty/dastacey/CIS3110/Winter2021/Assignment4
Directories
dastacey (faculty) 38412 drwxr-xr-x 3 Javascript
Sun Mar 14 11:39:28 2021 Sun Mar 14 14:24:39 2021
dastacey (faculty) 38333 drwxr-xr-x 4 subDirA
Sun Mar 14 11:22:23 2021 Sun Mar 14 11:22:48 2021
Files
dastacey (faculty) 38712 -rw-r--r-- 4642 lsReport1.c
Sun Mar 14 15:08:31 2021 Sun Mar 14 15:08:31 2021
dastacey (faculty) 38714 -rwxr-xr-x 17416 lsReport1
Sun Mar 14 15:08:33 2021 Sun Mar 14 15:08:33 2021
dastacey (faculty) 38591 -rw-rw-rw- 0 output1
Sun Mar 14 14:30:39 2021 Sun Mar 14 15:09:03 2021
Level 2: Javascript
Files
dastacey (faculty) 38565 -rw-r--r-- 757704 mermaid.min.js
Sun Mar 14 14:20:40 2021 Sun Mar 14 14:24:09 2021
Level 2: subDirA
Files
dastacey (faculty) 38230 -rwxr-xr-x 16872 lsFancy
Tue Mar 9 14:15:00 2021 Tue Mar 9 14:15:00 2021
dastacey (faculty) 38446 -rw-r--r-- 2944 lsFancy.c
Sun Mar 14 12:56:57 2021 Sun Mar 14 12:56:57 2021
Level Formatting:
Level x: Directory name (if this is Level 1 then put the full path name otherwise just the
directory name)
Directories (this header does not appear if there are no sub-directories)
...directories
Files (this header does not appear if there are no files)
...files
Example B: Inode Format Report
File System Report: Inodes
Level 1 Inodes: /home/faculty/dastacey/CIS3110/Winter2021/Assignment4
38333: 4 1 17 subDirA
38412: 3 1 17 Javascript
38591: 1248 3 9 output1
38859: 5175 11 9 lsReport1.c
38861: 17416 35 17 lsReport1
Level 2 Inodes: subDirA
38230: 16872 33 17 lsFancy
38446: 2944 6 9 lsFancy.c
Level 2 Inodes: Javascript
38565: 757704 1480 841 mermaid.min.js
Note: the separator between columns is a tab (\t).
Explanations and Answers
0
No answers posted
Post your Answer - free or at a fee
NB: Post a homework question for free and get answers - free or paid homework help.
Get answers to: File System Report To Stdout About The File System Supplied To The Program As A Command Line Argument. or similar questions only at Tutlance.
Related Questions
- Create A Game Using Coding In Python
- Have To Design A Coding Interview Question In Python For Testing Knowledge Both Basic Data Structures And Algorithms.
- Question1 Assignment Coding C Plus Plus Language
- Hw 02 - Regex And Filters Linux/Unix
- Data Sockets Lab To Test For Request And Response
- Homework In Javascript Pragram
- Just Code In Javascript Pragram
- Does The 5Th Amendment Provide Protections Against Self Incrimination Of Encrypted Files During A Cyber Investigation
- Networking 2 Acl Assignment Please Check
- Show All Work Done For Each Problem
- Edit The "Department" Class Using Iterators (C++)
- Coding Using Matlab To Create A Newton Fractal
- Assignment 2 Easy Code Assignment 2 Easy Code
- Coding Project In C Need Help Please
- Implementing A Binary Search Tree In A Deck Of Cards
- Implementing A Binary Search Tree In A Deck Of Cards
- Generic Array List In C++ And Java
- Atom List Machine Problem 3 ...
- Individual Ai Assignment(Project Report)
- Sentimental Analysis Of Twitter Data For 2021 Oscar Awards Ceremony
- Sentimental Analysis Of Twitter Data For 2021 Oscar Awards Ceremony
- Computer Science Java About Cards
- Program An Application For Ordering Food And Calculating The Price And Tax
- Network Diagram For Abc Corporation
- L06: Lab - Network Diagram For Abc Corporation
- Blockchain In Python With Networking
- In This Project, You Will Build The Following Gates. Each Circuit Are Shown As Well. Ram 64,Ram512 ,Pc
- Inter-Process Communication (Ipc) With Pipes In C
- Jupyter Notebook Tasks.create A Python File Dmv_Record.py That Contains The Definition Of A Class Named Dmvcarrecord.
- The Third Programming Project Involves Writing A Program That Allows The User To Enter A Binary Tree.
- Jupyter Notebook Tasks. Create A Python File Dmv_Record.py That Contains The Definition Of A Class Named Dmvcarrecord.
- Implement A Duplicate Checker From A Given List Of Words.
- Software Design & Development Using Flask
- Comprehensive Python Programming Assignment
- Excel Task Data Analysis Needed Asap
- Compare/Contrast State Govt It Security Policies
- Jquery And Ajax Basic To-Do App
- Software Development Engineer Assessment
- Design And Implement A Solution For Producer–Consumer Problem Using Pthreads Library In Linux Virtual Machine.
- Excel Workbook: Prelab Assignment And Also A Lab Assignment
- Python Online Banking Assignment
- To Do List Must Contain Tags Stated In The Attached Document
- Business Intelligence Case Using Excel
- Assign 2
- Present A Strategy For Communicating With Residents About A New “Cybersecurity” Policy
- Reusable Analytics For Camera-Based End User Programming
- Intro To Comp Sci Java Program With Linked Lists
- Help
- Introduction To R Programing Homework 3 Parts (Graphing)
- Class Program