-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
figure out how to test ismount
function
#11454
Comments
Of possible interest: |
@StefanKarpinski: Do you mean, how to create a known mounted filesystem? I have not tested this, but it should be possible to put a gzipped iso filesystem into a few hundered bytes. And many linux systems have -ro, user options for /media/cd or similar. |
Does it help that / will always be a mount point? (On filesystems which have a /, at least.) Edit: No. I see that ismount has a special case for /, so that only checks one path through the function. |
On Linux I'm not sure we can do better than finding a mounted file system (if there is one) and testing against that, since it may not be possible to mount anything new without root access. On OS X we could create a disk image. No idea about Windows. |
@nbaum / will indeed always be a mountpoint and |
FWIW
Not sure how much does any of these matters.... |
And it turns out that Edit: and having the same divice across mount point is probably not specific to bind mount since you can mount a device multiple times.... (Haven't tested though) |
P.S. Git is probably using a similar logic.. |
I think fuse doesn't need root access. (But it does require external tools...) |
See #11279. It's unclear how to reasonably test this, especially cross-platform.
The text was updated successfully, but these errors were encountered: