63 Commits

Author SHA1 Message Date
FactorialN
bcbd23003f a correct readdir 2023-11-30 17:36:26 -08:00
FactorialN
73b2142d17 this is a test commit for io debug 2023-11-30 17:13:56 -08:00
FactorialN
de2513dae3 Merge branch 'main' into guangzheliu/layer3demo
merging l2 into l3
2023-11-28 17:10:03 -08:00
Ziao
e69527a10b pass layer2_API test, still need review 2023-11-28 14:35:55 -08:00
FactorialN
ee3891e58c update to intra 2023-11-26 23:52:09 -08:00
Ziao
8bdf353fda make code compile, but doesn't pass test_layer2_API 2023-11-26 17:04:47 -08:00
Ziao
b58d24d233 Merge branch 'main' into layer2merge 2023-11-26 14:01:09 -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
ac6eb21b64 move *root_node to public, and pass the RAMTest(Ram cache system) 2023-11-23 03:13:17 -08:00
FactorialN
c2922f4d15 merged layer1 refactor 2023-11-23 00:03:56 -08:00
FactorialN
9e34e025a3 fixed a constant to meet the current design 2023-11-22 23:52:05 -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
Connor
81f81d8e80 file io bug fixes 2023-11-22 03:30:01 -08:00
Connor
d8f8594c13 chnages to file io 2023-11-22 02:25:30 -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
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
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
FactorialN
7c82ccfa3a try to start a layer 3 2023-11-19 21:23:51 -08:00
Victor
051a04ea75 add dir_API to demo direntry API 2023-11-19 21:22:53 -08:00
Victor
29dfe9a4a5 create hash-tree hierarchy direntry file 2023-11-19 16:53:29 -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
Ziao
dcf0601039 fix bugs for last commit (support indirect datablocks r/w) 2023-11-18 14:55:30 -08:00
Victor
c45667461b Rename mkfile to create_new_inode and update mode argument to detect S_IFDIR condition 2023-11-18 01:46:44 -08:00
Victor
aacb3e0193 change name init_inode to new_inode, return struct inode pointer 2023-11-18 01:10:48 -08:00
Connor
9ed5936762 half of tests added 2023-11-17 01:33:19 -08:00
WangZiao
46ce866c57 support creating files and directories, support namei 2023-11-16 18:36:35 -08:00
Connor
634180c3ce changed name of inode manager 2023-11-15 22:56:48 -08:00
Connor
6edece492c added de/alloc inode datablock s 2023-11-15 03:10:12 -08:00
Connor
3ee1647e00 added in core fake rawdisk 2023-11-14 22:55:09 -08:00
Connor
8c263f02b1 temporary addition of inode/datablock allocation 2023-11-14 22:24:00 -08:00
Connor
85bf159ee0 temporary addition of new header structure 2023-11-14 00:15:03 -08:00
WangZiao
e09e952558 specify some apis for layer 2 2023-11-12 16:13:45 -08:00
FactorialN
e2547b507c fixed boolean type for 2 functions 2023-11-12 14:24:43 -08:00
FactorialN
bab03dc5a2 fixed an code error here 2023-11-12 13:56:44 -08:00
FactorialN
2c88283938 some merge 2023-11-12 13:37:46 -08:00
FactorialN
f0c37e2587 some basic fixes 2023-11-12 13:29:14 -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
FactorialN
350c00fd40 changed type of off_t to u_int64_t 2023-11-11 13:38:54 -08:00
FactorialN
bb98bb9487 changed type of off_t to unsigned 2023-11-11 13:32:11 -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
FactorialN
5eb9fcdbda implemented inode list operation 2023-11-07 23:33:52 -08:00
FactorialN
91ec52e718 implemented deallo list operation 2023-11-07 23:09:59 -08:00
FactorialN
489b92cf24 changed to 4k, implemented most 2023-11-07 20:39:41 -08:00