Using this the required entity was either added or

Info icon This preview shows pages 1–3. Sign up to view the full content.

Lookup and child from parent functions. Using this the required entity was either added or deleted as per the request. For read and write functionalities, the path was found which was later used to get the child inode number. This was then passed onto the next layer for the actual writing or reading to be processed. For move, initially the old and new path get linked together. After the old path is unlinked to remove the unwarranted connection.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

TESTS The file type is denoted as 0 by default. So when the object was given with type other than 0, the program would show an error and exit. Eg: input = sample_inode = myObject.new_inode(1) Output = Inode type not file To check if offset larger than file requirement, an offset much greater than the length of the inode.size was given. It immediately showed an error and exited from the code Eg : inode.size=11 Input= myObject.write(sample_inode,13,data) Output = Error: offset larger than file Also, to check if data is getting truncated in the case of inode.size being larger than the maximum file size possible, a data with size larger than the maximum file was given and it tested out correctly as the data got truncated upto the maximum size allowed. Eg: max_file_size= 224, inode.size = 220, data= how are you Input= myObject.write( sample_inode,219,data) Output = …………how ar Multiple write() and read() was carried out to ensure that offset is being processed correctly and the inode size and data is being updated accordingly. Various files and directories were given too and checked for correctness my_object.mkdir(“/A”) my_object.mkdir(“/B”) my_object .create(“/A/1.txt”) my_object.create(“/B/2.txt”) my_object. mv(“/B/2.txt”,”/A”) my_object.rm(“/A/1.txt”)
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '15
  • Figueiredo,RenatoJansen
  • #move, childname, Inode Layer, #HARDLINK, #IMPLEMENTS

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern