Closed fischerling closed 2 weeks ago
I could reproduce the behavior on current develop 84d5a7ab0592983f27e2b4c4c3a62567681c2c7f.
files/home/user/.shellrc
ls
-> root and README entries are listedtouch foo
ls
-> only foo is listedls -la
-> lists the hidden files and fooApparently, when the .shellrc
file is there to read during the initialization of the shell, this bug happens.
I'll investigate this bug. Thank you for opening the Issue.
Solved by #100.
After the latest update on ext2_mkdir
, ext2_rmdir
, and ext2_get_rec_len_from_direntry
in #100, this problem seems to be solved. Especially after removing that pesky +1
in ext2_get_rec_len_from_direntry
.
Directories are still buggy.
I introduced two seperate user
alice
andbob
in commit 225bcda. This is the first commit where I can reproduce the buggy behavior. This behavior is independent of #82, because I could reproduce it after merging my modifications into the current master 4bc52fb08dff6be04c704d2c0a7e238b0e89c793.What happens?
When I create a new file in alice' home directory using
touch foo
all other directory entries are lost.However, if I delete the
secrets.txt
file from alice' home before creating a new file all expected entries are found. But creating a second file results in the same behavior, of loosing all entries except the newly created one.fsck.ext2 reports unatteched inodes after creating a file
foo
as described above.I will attach a kernel and file system image if you want. Just let me know.