I am sorry, I have already did a thread about this but for some reason ie (it's a public library) doesnt let me make a reply so I did another one, I apologise.
So I have an assignment to do a very simple flat file system on unix which supports some basic functions i.e ls, cp, mv, shownig file id and etc...
I asked for some guide and I was given some pages and I think I realised the basic concept but I honestly dont know how to start. I know that I will create header files (library) and link them with c files which will have the functions that I want supported. I think that I have to allocate the space from my disk in the header files while specifying the block size and number of blocks and I probably have to think of it as a big file which contains other files so I guess I will nead a head pointer of sorts which will show the start of my file system and will move while I create files and save the functions (or a copy of it I guess so I wont lose the beginning). I dont know if my thought trail is correct but this is all I have. I dont know how to start writing code. In the lesson they just gave as some functions of c and the library the are in (open, close, creat, lseek, read and write) but I alredy knew them and I suppose that I will use them in the implementation of the functions of the file system...
So basicly I am lost... I know that I cant ask for code, so any help is gladly appreciated...