-
-
Notifications
You must be signed in to change notification settings - Fork 168
fix(vfs): 修复truncate系统调用,添加截断时的页缓存截断,修复边界条件 #1444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
fix(vfs): 修复truncate系统调用,添加截断时的页缓存截断,修复边界条件 #1444
Conversation
|
https://github.com/DragonOS-Community/DragonOS/actions/runs/20005297190 这里拉到底有个CR报告。 |
可以 |
|
改进空间:
次要问题:
|
9582167 to
45d5e08
Compare
|
主线中OpenTest.AppendConcurrentWrite 测试不稳定,有时会失败 https://github.com/DragonOS-Community/DragonOS/blob/master/kernel/src/filesystem/fat/entry.rs#L203
|
PR Summary
Align truncate/ftruncate semantics: reject负长度,要求常规文件,非可写/非可写能力返回EINVAL,O_PATH返回EBADF,超出RLIMIT_FSIZE发送SIGXFSZ并报EFBIG。
移除在 FAT resize 中意外的文件大小限制,恢复正常扩展能力。
Testing