Development and Implementation of a File System for Gannet Virtual ...
Development and Implementation of a File System for Gannet Virtual ...
Development and Implementation of a File System for Gannet Virtual ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
TestCase02<br />
Creates, copies, <strong>and</strong> then deletes a file. This test fails if the mkdir, creat, cp, or<br />
remove function calls fail. This test also fails if the data written to the file does not<br />
match the data read from the file.<br />
1. Reads a file named “head.txt” from disk drive using C++ std library. The data is<br />
stored on a first buffer.<br />
2. Creates a directory named “/test-two”.<br />
3. Creates a file named “/test-two/test<strong>File</strong>-two” on <strong>Gannet</strong>FS file system.<br />
4. Write the data from first buffer to “/test-two/test<strong>File</strong>-two” file.<br />
5. Closes “/test-two/test<strong>File</strong>-two” file.<br />
6. Copies “/test-two/test<strong>File</strong>-two” to “/test-two/test<strong>File</strong>-copy”<br />
7. Opens “/test-two/test<strong>File</strong>-copy” file<br />
8. Reads “/test-two/test<strong>File</strong>-copy” <strong>and</strong> store the data on second buffer<br />
9. Verifies the first <strong>and</strong> second buffers using memcmp() function.<br />
10. Write the data from second buffer to disk drive named “buffout_big_2.txt” using<br />
C++ std library.<br />
11. Removes “/test-two/test<strong>File</strong>-two” file from <strong>Gannet</strong>FS file system.<br />
12. Removes “/test-two/test<strong>File</strong>-copy” files from <strong>Gannet</strong>FS file system.<br />
13. Removes directory named “/test-two”.<br />
TestCase03<br />
Creates, moves, <strong>and</strong> then deletes a file. This test fails if the mkdir, creat, mv, or<br />
remove function calls fail. This test also fails if the data written to the file does not<br />
match the data read from the file.<br />
1. Reads a file named “head.txt” from disk drive using C++ std library. The data is<br />
stored on a first buffer.<br />
2. Creates a directory named “/test-three”.<br />
3. Creates a file named “/test-three/test<strong>File</strong>-three” on <strong>Gannet</strong>FS file system.<br />
4. Write the data from first buffer to “/test-three/test<strong>File</strong>-three” file.<br />
5. Closes “/test-three/test<strong>File</strong>-three” file.<br />
6. moves “/test-three/test<strong>File</strong>-three” to “/test-three/test<strong>File</strong>-moved”<br />
7. Opens “/test-three/test<strong>File</strong>-moved” file<br />
8. Reads “/test-three/test<strong>File</strong>-moved” <strong>and</strong> store the data on second buffer<br />
9. Verifies the first <strong>and</strong> second buffers using memcmp() function.<br />
10. Write the data from second buffer to disk drive named “buffout_big_2.txt” using<br />
C++ std library.<br />
11. Removes “/test-three/test<strong>File</strong>-moved” files from <strong>Gannet</strong>FS file system.<br />
12. Removes directory named “/test-three”.<br />
69