-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fs: Add utimens and lutimens #4300
Conversation
fecd314
to
fc25c21
Compare
https://pubs.opengroup.org/onlinepubs/9699919799/functions/futimens.html https://www.daemon-systems.org/man/utimens.2.html Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
I am a bit confused here. I am not familiar with these APIs. |
Yes, utimensat is the final goal: @Donny9 is preparing a patch series to support utimensat(and other similar function e.g. openat, unlinkat...). This PR could be used before that patch finish. Once |
@gustavonihei I append a new patch to this PR, you can see from it that:
Without utimens, it look ulgy to convert timespec to timeval and invoke utimes instead in the second implementation. On the other hand, when utimensat is ready, rpmsg's version will change to call utimensat too. |
1ddf350
to
5058304
Compare
b69c80e
to
f00d01b
Compare
Ok, I got your point, I think it makes sense. |
Yes, it will be replace with utimensat.
It should OK, now. |
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
@Donny9 |
yes, we have a draft huge patchset. |
yes, we have a draft huge patchset. |
do you have a plan to submit it anytime soon? |
I'm free at the end of this month to organize this patch, there are other missions recently. |
ok. thank you for an update. |
btw, my interest in the openat stuff is for wasm-micro-runtime libc-wasi. |
Yes, we use this runtime too. |
good to hear. |
@no1wudi do you know? |
We plan to support libc-wasi in future, but we don't have such patches now. |
ok. thank you. |
Summary
https://pubs.opengroup.org/onlinepubs/9699919799/functions/futimens.html
https://www.daemon-systems.org/man/utimens.2.html
Impact
New API, follow up the change from #4153
Testing