56 Commits

Author SHA1 Message Date
Ziao
a5dda54e12 add unlink test 2023-11-28 16:19:56 -08:00
Ziao
e69527a10b pass layer2_API test, still need review 2023-11-28 14:35:55 -08:00
Ziao
e56d304d2f Merge remote-tracking branch 'origin/guangzheliu/anotherfixforl1' into layer2dev 2023-11-28 09:56:43 -08:00
Ziao
1b3cd99912 solve some bugs in layer2merge 2023-11-28 09:56:08 -08:00
FactorialN
77417a54db modify tests 2023-11-28 00:12:02 -08:00
FactorialN
12d471f82a modify tests 2023-11-27 23:54:36 -08:00
FactorialN
12cb090fcf try to fix layer1 2023-11-27 22:12:11 -08:00
Ziao
01ac7e9d11 Merge remote-tracking branch 'origin/layer2dev' into layer2merge 2023-11-26 17:08:22 -08:00
Ziao
8bdf353fda make code compile, but doesn't pass test_layer2_API 2023-11-26 17:04:47 -08:00
Victor
d0659eb379 Pass WriteTest with fischl_write 2023-11-26 14:07:21 -08:00
Ziao
b58d24d233 Merge branch 'main' into layer2merge 2023-11-26 14:01:09 -08:00
Victor
fd175e5470 still working on fischl_write 2023-11-26 13:22:12 -08:00
Victor
f5b572fa8c implement open,release,read and pass read test; write under construct 2023-11-24 23:56:19 -08:00
Victor
39d6ab26ff create for regular file; mknod for spcial file. include simplified fuse_common.h to register file descriptor 2023-11-24 13:12:42 -08:00
Victor
88a15eb1a8 Pass Readtest and Pressuretest 2023-11-23 14:45:52 -08:00
Victor
9a2289e296 add disk access checks to confirm consistency between values stored in RAM and on Disk, and pass Writetest 2023-11-23 14:16:33 -08:00
Victor
ac6eb21b64 move *root_node to public, and pass the RAMTest(Ram cache system) 2023-11-23 03:13:17 -08:00
Victor
60678711d2 reform test_layer2_API with googletest framwork and revise mkdir & mknod return type 2023-11-22 21:43:38 -08:00
Victor
6f5bb3bdcc add scale test to make add and find entry operation more iteratively 2023-11-22 01:15:51 -08:00
Victor
209cd25c44 make mock file path able to run in for loop 2023-11-21 22:35:26 -08:00
Victor
5b220fdf46 add mock entrypath structure for testing 2023-11-21 20:40:46 -08:00
Ziao
460bcd5e7e support 255 character filenames; use in memory tree to speed up namei 2023-11-21 17:21:43 -08:00
Ziao
c7b0bd95f4 change the API of direntry (should pass new dir_API.cpp test) 2023-11-21 16:14:08 -08:00
Ziao
c49c1d2302 merge changes from origin 2023-11-21 14:24:52 -08:00
Ziao
1c22210209 commit wza changes before merge 2023-11-21 14:22:18 -08:00
Victor
1580053bbe add parsing path function to make it easy to test file on path correctness 2023-11-21 02:25:50 -08:00
Victor
7d5fd98e15 reform dir_API to Google Test framwork 2023-11-21 01:34:06 -08:00
Victor
b959e7b093 support . and .. search in find_entry, add init_entry for fake root 2023-11-20 23:32:19 -08:00
Victor
051a04ea75 add dir_API to demo direntry API 2023-11-19 21:22:53 -08:00
Ziao
68212773a6 make mkdir and mknod return error if file or dir already exists; add tests 2023-11-18 20:52:36 -08:00
Ziao
5dbac3d9e3 support unlinking files and directories 2023-11-18 20:20:32 -08:00
Ziao
1e735ea7d0 support arbitrary number of files in each folder (previously 64) 2023-11-18 19:25:53 -08:00
Ziao
1259cf5487 fix bug for indirect datablock r/w, add . and .. to every directory 2023-11-18 17:42:36 -08:00
Connor
9ed5936762 half of tests added 2023-11-17 01:33:19 -08:00
Victor
292c59c77b test with google test framwork, will keep running the whole test even if the asserstion is wrong 2023-11-16 20:59:45 -08:00
WangZiao
46ce866c57 support creating files and directories, support namei 2023-11-16 18:36:35 -08:00
Connor
b921cadf92 Merge remote-tracking branch 'origin/wangziao/layer1test' into connorg/layer1tests 2023-11-15 23:23:54 -08:00
Connor
6edece492c added de/alloc inode datablock s 2023-11-15 03:10:12 -08:00
WangZiao
3814ee0409 test on top of GuangZhe's fix on layer1 2023-11-12 14:38:37 -08:00
WangZiao
3d959eeeb1 Merge branch 'guangzheliu/layer1dev' into wangziao/layer1test 2023-11-12 13:51:01 -08:00
wangziao
47927b0a8a modify layer 1 for pressure testing on a small fs 2023-11-12 03:22:24 -08:00
Victor
71f87b0320 add instructions and steps to know how to do further testing 2023-11-11 23:05:03 -08:00
Victor
1d567ff487 fixed several bugs 2023-11-11 16:08:35 -08:00
FactorialN
23c5b4da6f recalled the uchar modification 2023-11-11 14:54:22 -08:00
FactorialN
359521e12e changed all char to unsigned char 2023-11-11 14:38:47 -08:00
Victor
2fd109e1dd test inode inode_allocate and free function 2023-11-11 14:27:37 -08:00
Victor
43d1a57f12 delete assign unsigned char 2023-11-11 13:55:45 -08:00
FactorialN
350c00fd40 changed type of off_t to u_int64_t 2023-11-11 13:38:54 -08:00
Victor
fda144c353 fix bugs e.g. static function, disk argument, address offset and add test API code 2023-11-11 13:10:07 -08:00
Victor
1a35ce3574 use strlen not sizeof 2023-11-06 14:07:25 -08:00