125 Commits

Author SHA1 Message Date
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
Ziao
a04c3d6334 support indirect datablock read/write 2023-11-18 13:57:47 -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
Victor
ee66c10796 simplify checking path way in mkdir and mknod 2023-11-17 14:37:26 -08:00
Victor
f2aac32365 delete redundant assignment 2023-11-17 02:16:02 -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
49c1643ab9 changed manager file nemes 2023-11-15 23:14:06 -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
17e42a56ef Merge branch 'main' into wangziao/layer1test 2023-11-12 16:28:43 -08:00
WangZiao
e09e952558 specify some apis for layer 2 2023-11-12 16:13:45 -08:00
FactorialN
eb8eebc099
Merge pull request #8 from SuperconductZB/guangzheliu/layer1dev
Guangzheliu/layer1dev
2023-11-12 14:40:42 -08:00
WangZiao
3814ee0409 test on top of GuangZhe's fix on layer1 2023-11-12 14:38:37 -08:00
WangZiao
dcf097a411 Merge branch 'guangzheliu/layer1dev' into wangziao/layer1test 2023-11-12 14:26:27 -08:00
FactorialN
e2547b507c fixed boolean type for 2 functions 2023-11-12 14:24:43 -08:00
WangZiao
37bed50c81 Merge branch 'guangzheliu/layer1dev' into wangziao/layer1test 2023-11-12 13:57:11 -08:00
FactorialN
bab03dc5a2 fixed an code error here 2023-11-12 13:56:44 -08:00
WangZiao
da703c02f0 use GuangZhe's version of fs.h 2023-11-12 13:55:12 -08:00
WangZiao
3d959eeeb1 Merge branch 'guangzheliu/layer1dev' into wangziao/layer1test 2023-11-12 13:51:01 -08:00
FactorialN
d0f8d15614 Merge branch 'guangzheliu/layer1dev' of github.com:SuperconductZB/iloveos into guangzheliu/layer1dev
merging fixes
2023-11-12 13:39:43 -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
wangziao
47927b0a8a modify layer 1 for pressure testing on a small fs 2023-11-12 03:22:24 -08:00
Connor
493b064e48 Merge remote-tracking branch 'origin/guangzheliu/layer1dev' into connorg/layer1tests 2023-11-11 23:43:41 -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
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
FactorialN
d3bf233e42 save before changing datablock to 4k 2023-11-07 19:36:27 -08:00
Victor
4823b76d6c revise the way to use rawdisk R/W, add rawdisk obj as reference, revise writeFreeListHead API and it bit shifting 2023-11-07 15:58:20 -08:00
Tung, Ying Yi
870f2364c6
Merge pull request #7 from SuperconductZB/victortung
Revise rawdisk.h
2023-11-06 22:44:18 -08:00
Victor
94a1496127 Merge remote-tracking branch 'origin/victortung' 2023-11-06 17:46:24 -08:00
Victor
1a35ce3574 use strlen not sizeof 2023-11-06 14:07:25 -08:00