The code is 80% done by the professor. The only thing that's left is the implementation file which is the fs3_driver.c

1 answer below »
The code is 80% done by the professor. The only thing that's left is the implementation file which is the fs3_driver.c
Answered 5 days AfterOct 17, 2021

Answer To: The code is 80% done by the professor. The only thing that's left is the implementation file which...

Kamal answered on Oct 23 2021
101 Votes
////////////////////////////////////////////////////////////////////////////////
//
// File : fs3_driver.c
// Descri
ption : This is the implementation of the standardized IO functions
// for used to access the FS3 storage system.
//
// Author : *** INSERT YOUR NAME ***
// Last Modified : *** DATE ***
//
// Includes
#include
#include
// Project Includes
#include
#include
//
// Defines
#define SECTOR_INDEX_NUMBER(x) ((int)(x/FS3_SECTOR_SIZE))
//
// Static Global Variables
//
// Implementation
////////////////////////////////////////////////////////////////////////////////
//
// Function : fs3_mount_disk
// Description : FS3 interface, mount/initialize filesystem
//
// Inputs : none
// Outputs : 0 if successful, -1 if failure
int32_t fs3_mount_disk(void) {
FS3OpCodes instruction=FS3_OP_MOUNT; //mount disk
if (instruction == 0)
    return (0);
    return(-1);
}
////////////////////////////////////////////////////////////////////////////////
//
// Function : fs3_unmount_disk
// Description : FS3 interface, unmount the disk, close all files
//
// Inputs : none
// Outputs : 0 if successful, -1 if failure
int32_t...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here