You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I further checked all the usage of the user space function link(), and it turns out none tried to open a file via its linked name.
Is this a delicate design or a bug?
The text was updated successfully, but these errors were encountered:
zhouzilong2020
changed the title
Type inconsistent between struct dirent's inum(ushort) and its usage.
Type inconsistent between struct dirent's inum(ushort) and its usage(uint).
Feb 2, 2023
inum defined inside struct dirent is a ushort, suggesting the dirent can only reference up to 4 inode on disk.
xv6-riscv/kernel/fs.h
Lines 56 to 59 in f5b93ef
However, in function dirlink(), it tries to set inum with a unit.
xv6-riscv/kernel/fs.c
Line 601 in f5b93ef
I further checked all the usage of the user space function link(), and it turns out none tried to open a file via its linked name.
Is this a delicate design or a bug?
The text was updated successfully, but these errors were encountered: