[SOLVED] CPSC 3220 - Assignment 3

35.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (4 votes)

Implementing critical functions for a trivial file system.

Problem Statement

In this assignment you will implement the tfs_delete(), tfs_read(), and tfs_write() functions for a trivial file system. These functions delete a file in the trivial file system, read a buffer of bytes from an existing file in the trivial file system, and write a buffer of bytes to an existing file in the trivial file system, respectively.  Please remember to add read block and write block as the only way to access file blocks.

You will find more details about the file system in the header file tfs.h. The file tfs_1.c is the first part of the implementation of helper functions and public functions. The file tfs_2.c is a skeleton file in which you will provide the implementation of the three functions. The tfs_2.c file has header comments that specify the functions that you will provide. The file tfs_driver1.c is an example of a test driver for the tfs_1.c and tfs_2.c code. The link to the archive with these files is available on Canvas in the assignment description.

The only file you will need to submit to canvas (without compressing it) is “tfs_2.c”. Do not submit any other source files or headers. I will compile my tfs.h header, my tfs_1.c source file, and my test driver file with your tfs_2.c source file to create a program to test. Your code must run on the School of Computing servers (e.g., the ada or babbage machines).

 

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.