-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
UFS returns changing mtime #1375
Comments
Just confirming the above. I am also observing exactly this behaviour. The underlying cause appears to be due to the fact that the macOS filesystem st_mtime values are only accurate to the second, and lib9p (or thereabouts) seems to "invent" the additional milli/microsecond digits (presumably the current clock value). From a python macOS python interpreter locally:
Inside a container on a 9p mounted fs:
|
@fennb It sounds like only storing the mtime up to the second for macOS work as a solution. Does that seem reasonable? |
@aaron-prindle It looks more like a read-time problem to me? ie: the 9p server (or client) is "making up" false precision in the absence of real data (or I may have completely misinterpreted how things actually work - I don't know lib9p at all). Does that make sense? |
This should be fixed now with #1594 |
BUG REPORT
minikube version: v0.18.0
Environment:
What happened:
I mounted a host directory (code/api containing
server.py
) into a docker container by runningminikube mount $(pwd)
. I then declared the mount with a subpath:When I use python to
stat
a file in/code/api
it returns a constant integer part, but the fractional part keeps changing. E.g. attach to the container and run:Each time the second line is executed, the mtime changes, even if there are no modifications on disk. However, only the fractional part changes, e.g. I see values like:
What you expected to happen:
A consistent mtime should be returned if a file hasn't been modified.
How to reproduce it (as minimally and precisely as possible):
See above.
Anything else do we need to know:
No.
The text was updated successfully, but these errors were encountered: