Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
542 lines (523 sloc) 14.2 KB
make[1]: Entering directory '/home/josh/Desktop/challenge03'
mkdir -p mnt || true
./nufs -s -f mnt data.nufs
Start of DataBlock: 100172
NUFS Size - start_dataBlocks: 948404
Num Blocks: 231
BLOCK 0 FOUND FOR INODE
Addtional Blocks for </>
additionalBlocks{
A: -1, B: -1, C: -1,
D: -1, E: -1, F: -1,
G: -1, H: -1, I: -1}
node{mode: 40755, size: 0, xtra: 145, path: /, name: , blockID: 0, InodeID: 0}
access(/, 0004)
getattr(/.Trash)
getattr(/.Trash-1000)
getattr(/.xdg-volume-info)
getattr(/autorun.inf)
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
getattr(/autorun.inf)
getattr(/)
File </> FOUND in get_file_data
getattr(/one.txt)
mknod(/one.txt, 100664)
BLOCK 1 FOUND FOR INODE
Addtional Blocks for </one.txt>
additionalBlocks{
A: -1, B: -1, C: -1,
D: -1, E: -1, F: -1,
G: -1, H: -1, I: -1}
node{mode: 100664, size: 0, xtra: 0, path: /one.txt, name: one.txt, blockID: 1, InodeID: 1}
getattr(/one.txt)
File </one.txt> FOUND in get_file_data
open(/one.txt)
write(/one.txt, 11 bytes, 0)
File </one.txt> FOUND in get_file_data
getattr(/one.txt)
File </one.txt> FOUND in get_file_data
open(/one.txt)
read(/one.txt, 4096 bytes, @0)
File </one.txt> FOUND in get_file_data
getattr(/one.txt)
File </one.txt> FOUND in get_file_data
getattr(/one.txt)
File </one.txt> FOUND in get_file_data
getattr(/two.txt)
mknod(/two.txt, 100664)
BLOCK 2 FOUND FOR INODE
Addtional Blocks for </two.txt>
additionalBlocks{
A: -1, B: -1, C: -1,
D: -1, E: -1, F: -1,
G: -1, H: -1, I: -1}
node{mode: 100664, size: 0, xtra: 0, path: /two.txt, name: two.txt, blockID: 2, InodeID: 2}
getattr(/two.txt)
File </two.txt> FOUND in get_file_data
open(/two.txt)
write(/two.txt, 11 bytes, 0)
File </two.txt> FOUND in get_file_data
getattr(/two.txt)
File </two.txt> FOUND in get_file_data
open(/two.txt)
read(/two.txt, 4096 bytes, @0)
File </two.txt> FOUND in get_file_data
getattr(/two.txt)
File </two.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
getattr(/2k.txt)
mknod(/2k.txt, 100664)
BLOCK 3 FOUND FOR INODE
Addtional Blocks for </2k.txt>
additionalBlocks{
A: -1, B: -1, C: -1,
D: -1, E: -1, F: -1,
G: -1, H: -1, I: -1}
node{mode: 100664, size: 0,make[1]: Entering directory '/home/josh/Desktop/challenge03'
fusermount -u mnt || true
xtra: 0, path: /2k.txt, name: 2k.txt, blockID: 3, InodeID: 3}
getattr(/2k.txt)
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
open(/2k.txt)
write(/2k.txt, 2001 bytes, 0)
File </2k.txt> FOUND in get_file_data
open(/2k.txt)
getattr(/2k.txt)
File </2k.txt> FOUND in get_file_data
read(/2k.txt, 4096 bytes, @0)
File </2k.txt> FOUND in get_file_data
getattr(/2k.txt)
File </2k.txt> FOUND in get_file_data
open(/2k.txt)
read(/2k.txt, 4096 bytes, @0)
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
make[1]: Leaving directory '/home/josh/Desktop/challenge03'
make[1]: Leaving directory '/home/josh/Desktop/challenge03'
make[1]: Entering directory '/home/josh/Desktop/challenge03'
mkdir -p mnt || true
./nufs -s -f mnt data.nufs
Start of DataBlock: 100172
NUFS Size - start_dataBlocks: 948404
Num Blocks: 231
BLOCK 4 FOUND FOR INODE
Addtional Blocks for </>
additionalBlocks{
A: -1, B: -1, C: -1,
D: -1, E: -1, F: -1,
G: -1, H: -1, I: -1}
node{mode: 40755, size: 0, xtra: 145, path: /, name: , blockID: 4, InodeID: 0}
access(/, 0004)
getattr(/.xdg-volume-info)
getattr(/)
File </> FOUND in get_file_data
getattr(/autorun.inf)
getattr(/.Trash)
getattr(/.Trash-1000)
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/autorun.inf)
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </one.txt> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/one.txt)
File </one.txt> FOUND in get_file_data
open(/one.txt)
read(/one.txt, 4096 bytes, @0)
File </one.txt> FOUND in get_file_data
getattr(/one.txt)
File </one.txt> FOUND in get_file_data
getattr(/two.txt)
File </two.txt> FOUND in get_file_data
open(/two.txt)
read(/two.txt, 4096 bytes, @0)
File </two.txt> FOUND in get_file_data
getattr(/two.txt)
File </two.txt> FOUND in get_file_data
unlink(/one.txt)
File </one.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </two.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
getattr(/abc.txt)
getattr(/abc.txt)
getattr(/abc.txt)
rename(/two.txt => /abc.txt)
File </two.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
readdir(/)
File </> FOUND in get_file_data
File </abc.txt> FOUND in get_file_data
File </2k.txt> FOUND in get_file_data
open(/abc.txt)
getattr(/abc.txt)
File </abc.txt> FOUND in get_file_data
read(/abc.txt, 4096 bytes, @0)
File </abc.txt> FOUND in get_file_data
getattr(/abc.txt)
File </abc.txt> FOUND in get_file_data
getattr(/def.txt)
getattr(/def.txt)
Linking target: </abc.txt> to new file </def.txt>.
File </abc.txt> FOUND in get_file_data
mknod(/def.txt, 100000)
BLOCK 1 FOUND FOR INODE
Addtional Blocks for </def.txt>
additionalBlocks{
A: -1, B: -1, C: -1,
D: -1, E: -1, F: -1,
G: -1, H: -1, I: -1}
node{mode: 100000, size: 0, xtra: 0, path: /def.txt, name: def.txt, blockID: 1, InodeID: 1}
getattr(/def.txt)
File </def.txt> FOUND in get_file_data
File </def.txt> FOUND in get_file_data
getattr(/def.txt)
File </def.txt> FOUND in get_file_data
open(/def.txt)
read(/def.txt, 4096 bytes, @0)
File </def.txt> FOUND in get_file_data
getattr(/def.txt)
File </def.txt> FOUND in get_file_data
getattr(/abc.txt)
File </abc.txt> FOUND in get_file_data
unlink(/abc.txt)
File </abc.txt> FOUND in get_file_data
open(/def.txt)
read(/def.txt, 4096 bytes, @0)
File </def.txt> FOUND in get_file_data
getattr(/def.txt)
File </def.txt> FOUND in get_file_data
getattr(/foo)
mkdir(/foo) with mode <509>
BLOCK 2 FOUND FOR INODE
Addtional Blocks for </foo>
additionalBlocks{
A: -1, B: -1, C: -1,
D: -1, E: -1, F: -1,
G: -1, H: -1, I: -1}
getattr(/foo)
File </foo> FOUND in get_file_data
getattr(/foo/abc.txt)
getattr(/foo/abc.txt)
open(/def.txt)
getattr(/foo/abc.txt)
mknod(/foo/abc.txt, 100000)
BLOCK 5 FOUND FOR INODE
Addtional Blocks for </foo/abc.txt>
additionalBlocks{
A: -1, B: -1, C: -1,
D: -1, E: -1, F: -1,
G: -1, H: -1, I: -1}
node{mode: 100000, size: 0, xtra: 0, path: /foo/abc.txt, name: foo/abc.txt, blockID: 5, InodeID: 4}
getattr(/foo/abc.txt)
File </foo/abc.txt> FOUND in get_file_data
open(/foo/abc.txt)
read(/def.txt, 4096 bytes, @0)
File </def.txt> FOUND in get_file_data
write(/foo/abc.txt, 11 bytes, 0)
File </foo/abc.txt> FOUND in get_file_data
open(/foo/abc.txt)
getattr(/foo/abc.txt)
File </foo/abc.txt> FOUND in get_filemake[1]: Entering directory '/home/josh/Desktop/challenge03'
fusermount -u mnt || true
_data
getattr(/)
File </> FOUND in get_file_data
read(/foo/abc.txt, 4096 bytes, @0)
File </foo/abc.txt> FOUND in get_file_data
getattr(/foo/abc.txt)
File </foo/abc.txt> FOUND in get_file_data
getattr(/40k.txt)
mknod(/40k.txt, 100664)
BLOCK 6 FOUND FOR INODE
Addtional Blocks for </40k.txt>
additionalBlocks{
A: -1, B: -1, C: -1,
D: -1, E: -1, F: -1,
G: -1, H: -1, I: -1}
node{mode: 100664, size: 0, xtra: 0, path: /40k.txt, name: 40k.txt, blockID: 6, InodeID: 5}
getattr(/40k.txt)
File </40k.txt> FOUND in get_file_data
open(/40k.txt)
write(/40k.txt, 4096 bytes, 0)
File </40k.txt> FOUND in get_file_data
open(/40k.txt)
getattr(/40k.txt)
File </40k.txt> FOUND in get_file_data
read(/40k.txt, 4096 bytes, @0)
File </40k.txt> FOUND in get_file_data
read(/40k.txt, 4096 bytes, @4096)
File </40k.txt> FOUND in get_file_data
getattr(/40k.txt)
File </40k.txt> FOUND in get_file_data
open(/40k.txt)
read(/40k.txt, 4096 bytes, @4096)
File </40k.txt> FOUND in get_file_data
getattr(/)
File </> FOUND in get_file_data
make[1]: Leaving directory '/home/josh/Desktop/challenge03'
make[1]: Leaving directory '/home/josh/Desktop/challenge03'
You can’t perform that action at this time.