Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone implement the requested function. Open your source file and write or copy the code for the class template for the Sdisk . Now,

Can someone implement the requested function.

Open your source file and write or copy the code for the class template for the Sdisk.

Now, copy the interface for the filesystem :

Class Filesys: public Sdisk { Public : Filesys(); int fsclose(); int fssynch(); int newfile(string file); int rmfile(string file); int getfirstblock(string file); int addblock(string file, string block); int delblock(string file, int blocknumber); int readblock(string file, int blocknumber, string& buffer); int writeblock(string file, int blocknumber, string buffer); int nextblock(string file, int blocknumber); Private : int rootsize; // maximum number of entries in ROOT int fatsize; // number of blocks occupied by FAT vector filename; // filenames in ROOT vector firstblock; // firstblocks in ROOT vector fat; // FAT }; 

Create function stubs (functions with no code) for the class functions.

Work first on the Filesys constructor where you have to create the ROOT directory and the FAT.

Work next on the fssynch that writes the Root and FAT to the disk.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions

Question

Use x = e y to explain why d/dx (ln x) = 1/x, for x > 0.

Answered: 1 week ago