# test command file for Project 1 # run with disk block size = 1024 and 100 disk blocks # print an "empty" file manager PRINT # bob.dat is less than 1 disk block CREATE bob.dat 400 # mary.dat has partial disk block CREATE mary.dat 6000 # jim.dat is exactly 7 disk blocks CREATE jim.dat 7168 # print the file manager PRINT # bob.dat is still less than 1 disk block EXTEND bob.dat 100 # mary.dat extended by more than 1 disk block EXTEND mary.dat 2000 PRINT # bob now crosses disk block boundary EXTEND bob.dat 1000 PRINT # delete a file DELETE bob.dat PRINT # truncate a file # mary.dat shorten, but no disk blocks freed TRUNCATE mary.dat 10 PRINT # mary.dat shorten to cross a disk block TRUNCATE mary.dat 1024 PRINT # delete all remaining files DELETE mary.dat DELETE jim.dat PRINT