Project 1 Sample Output
Cmd: PRINT
File Manager Status
-------------------
Disk Block Size: 1024
Number of Blocks: 100
Allocated Blocks: 0
Free Blocks: 100
Free List
---------
[ 0, 99 ]
Files
-----
No Files
Cmd: CREATE bob.dat 400
bob.dat created successfully
Cmd: CREATE mary.dat 6000
mary.dat created successfully
Cmd: CREATE jim.dat 7168
jim.dat created successfully
Cmd: PRINT
File Manager Status
-------------------
Disk Block Size: 1024
Number of Blocks: 100
Allocated Blocks: 14
Free Blocks: 86
Free List
---------
[ 14, 99 ]
Files
-----
File: bob.dat
Actual Size: 400
Allocated Size: 1024
NrBlocks: 1
Disk Blocks: [ 0, 0 ]
File: jim.dat
Actual Size: 7168
Allocated Size: 7168
NrBlocks: 7
Disk Blocks: [ 7, 13 ]
File: mary.dat
Actual Size: 6000
Allocated Size: 6144
NrBlocks: 6
Disk Blocks: [ 1, 6 ]
Cmd: EXTEND bob.dat 100
bob.dat extended successfully
Cmd: EXTEND mary.dat 2000
mary.dat extended successfully
Cmd: PRINT
File Manager Status
-------------------
Disk Block Size: 1024
Number of Blocks: 100
Allocated Blocks: 16
Free Blocks: 84
Free List
---------
[ 16, 99 ]
Files
-----
File: bob.dat
Actual Size: 500
Allocated Size: 1024
NrBlocks: 1
Disk Blocks: [ 0, 0 ]
File: jim.dat
Actual Size: 7168
Allocated Size: 7168
NrBlocks: 7
Disk Blocks: [ 7, 13 ]
File: mary.dat
Actual Size: 8000
Allocated Size: 8192
NrBlocks: 8
Disk Blocks: [ 1, 6 ] [ 14, 15 ]
Cmd: EXTEND bob.dat 1000
bob.dat extended successfully
Cmd: PRINT
File Manager Status
-------------------
Disk Block Size: 1024
Number of Blocks: 100
Allocated Blocks: 17
Free Blocks: 83
Free List
---------
[ 17, 99 ]
Files
-----
File: bob.dat
Actual Size: 1500
Allocated Size: 2048
NrBlocks: 2
Disk Blocks: [ 0, 0 ] [ 16, 16 ]
File: jim.dat
Actual Size: 7168
Allocated Size: 7168
NrBlocks: 7
Disk Blocks: [ 7, 13 ]
File: mary.dat
Actual Size: 8000
Allocated Size: 8192
NrBlocks: 8
Disk Blocks: [ 1, 6 ] [ 14, 15 ]
Cmd: DELETE bob.dat
bob.dat deleted successfully
Cmd: PRINT
File Manager Status
-------------------
Disk Block Size: 1024
Number of Blocks: 100
Allocated Blocks: 15
Free Blocks: 85
Free List
---------
[ 0, 0 ] [ 16, 99 ]
Files
-----
File: jim.dat
Actual Size: 7168
Allocated Size: 7168
NrBlocks: 7
Disk Blocks: [ 7, 13 ]
File: mary.dat
Actual Size: 8000
Allocated Size: 8192
NrBlocks: 8
Disk Blocks: [ 1, 6 ] [ 14, 15 ]
Cmd: TRUNCATE mary.dat 10
mary.dat truncated successfully
Cmd: PRINT
File Manager Status
-------------------
Disk Block Size: 1024
Number of Blocks: 100
Allocated Blocks: 15
Free Blocks: 85
Free List
---------
[ 0, 0 ] [ 16, 99 ]
Files
-----
File: jim.dat
Actual Size: 7168
Allocated Size: 7168
NrBlocks: 7
Disk Blocks: [ 7, 13 ]
File: mary.dat
Actual Size: 7990
Allocated Size: 8192
NrBlocks: 8
Disk Blocks: [ 1, 6 ] [ 14, 15 ]
Cmd: TRUNCATE mary.dat 1024
mary.dat truncated successfully
Cmd: PRINT
File Manager Status
-------------------
Disk Block Size: 1024
Number of Blocks: 100
Allocated Blocks: 14
Free Blocks: 86
Free List
---------
[ 0, 0 ] [ 15, 99 ]
Files
-----
File: jim.dat
Actual Size: 7168
Allocated Size: 7168
NrBlocks: 7
Disk Blocks: [ 7, 13 ]
File: mary.dat
Actual Size: 6966
Allocated Size: 7168
NrBlocks: 7
Disk Blocks: [ 1, 6 ] [ 14, 14 ]
Cmd: DELETE mary.dat
mary.dat deleted successfully
Cmd: DELETE jim.dat
jim.dat deleted successfully
Cmd: PRINT
File Manager Status
-------------------
Disk Block Size: 1024
Number of Blocks: 100
Allocated Blocks: 0
Free Blocks: 100
Free List
---------
[ 0, 99 ]
Files
-----
No Files