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.
TestCase10<br />
Writes data to <strong>and</strong> reads data to multiple files from the outside using the seek<br />
functions. This test fails if the data written does not match the data read.<br />
1. Reads a file named “byte.txt” from disk drive using C++ std library. The data is<br />
stored on a first buffer.<br />
2. Reads a file named “byte-1.txt” from disk drive using C++ std library. The data is<br />
stored on a second buffer.<br />
3. Reads a file named “byte-2.txt” from disk drive using C++ std library. The data is<br />
stored on a third buffer.<br />
4. Creates a file named “dummy-1-gfs10.txt” on <strong>Gannet</strong>FS file system.<br />
5. Write the data from second buffer to “dummy-1-gfs10.txt” file.<br />
6. Closes “dummy-1-gfs10.txt” file.<br />
7. Opens file named “dummy-1-gfs10.txt”.<br />
8. Seeks to the end <strong>of</strong> file.<br />
9. Writes the data from third buffer to “dummy-1-gfs10.txt” file.<br />
10. Seeks to the beginning <strong>of</strong> file.<br />
11. Reads the “dummy-1-gfs10.txt” <strong>and</strong> stores the data to the fourth buffer.<br />
12. Verifies the first <strong>and</strong> the fourth buffers using memcmp() function.<br />
13. Write the data from second buffer to disk drive named “buffout.txt” using C++<br />
std library.<br />
14. Compares “testing.txt” with “buffout_big.txt” using diff function.<br />
72