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
Add symlink and link inode operations (tmpfs & ext2, returning -EROFS / -EPERM on read-only rootfs/devfs) and statfs superblock operation reporting filesystem magic (TMPFS_MAGIC, EXT2_SUPER_MAGIC, RAMFS_MAGIC), block size, and free/total blocks/inodes.
kernel/syscalls/FileSyscalls.cpp & SyscallDispatcher.cpp: Implement and dispatch sys_mknodat (33), sys_symlinkat (36), sys_linkat (37), sys_statfs (43), sys_fstatfs (44), and sys_statx (291).
tests/host/: Add Snitch ASan/UBSan tests across tmpfs, ext2, rootfs, and devfs.
Out of scope: sendfile/copy_file_range/splice/flock/fallocate/*xattr ([SUBISSUE #3]).
Acceptance Criteria & Edge Cases
sizeof(linux_statx) == 256 and sizeof(linux_statfs) == 120 verified by static_assert matching Linux AArch64 LP64 ABI
symlinkat + readlinkat and linkat (incrementing nlink, rejecting cross-mount -EXDEV and directory hardlinks -EPERM) work cleanly on tmpfs and ext2 with zero inode/dentry/PFA leaks
statx supports AT_EMPTY_PATH, AT_SYMLINK_NOFOLLOW, and populates stx_mask accurately
mknodat creates S_IFREG/S_IFIFO/S_IFSOCK nodes and rejects unsupported device types or collisions (-EEXIST, -EROFS)
make format && make clean-tests && make -j"$(nproc)" all && make -j"$(nproc)" quality passes with zero warnings
Activity