modify tests
This commit is contained in:
parent
12d471f82a
commit
77417a54db
@ -7,7 +7,7 @@
|
|||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
// const char* d = (argc < 2) ? "/dev/vdc" : argv[1];
|
// const char* d = (argc < 2) ? "/dev/vdc" : argv[1];
|
||||||
|
|
||||||
RawDisk *H = new FakeRawDisk(2048);
|
RawDisk *H = new FakeRawDisk(21504);
|
||||||
Fs *fs = new Fs(H);
|
Fs *fs = new Fs(H);
|
||||||
|
|
||||||
printf("test inode\n");
|
printf("test inode\n");
|
||||||
@ -65,6 +65,7 @@ int main(int argc, char *argv[]) {
|
|||||||
1); // the first 8 bytes of 4k I/O block will store
|
1); // the first 8 bytes of 4k I/O block will store
|
||||||
// the next address(after 2048*4k I/O block)
|
// the next address(after 2048*4k I/O block)
|
||||||
// test the end of the datablock
|
// test the end of the datablock
|
||||||
|
|
||||||
H->read_block(fs->disk->diskSize/IO_BLOCK_SIZE - DATABLOCKS_PER_BITMAP_BLOCK - 1, buffer);
|
H->read_block(fs->disk->diskSize/IO_BLOCK_SIZE - DATABLOCKS_PER_BITMAP_BLOCK - 1, buffer);
|
||||||
t = 0;
|
t = 0;
|
||||||
for (int j = 0; j < 8; j++)
|
for (int j = 0; j < 8; j++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user