[issue29707] os.path.ismount() always returns false for mount --bind on same filesystem

Mikko Korkalo report at bugs.python.org
Tue Feb 4 15:36:01 EST 2020


Mikko Korkalo <mikko.korkalo at gmail.com> added the comment:

I disagree about whether this should be fixed or not.
It's definitely a bug. If you ask whether a bind mount destination is a mount, it should return true.

I wrote a logic that does bind mounting. The logic cannot use ismount() because it does not work for me, it would keep remounting the same bind mount.

Not fixing this just causes people to write even less portable hackery on their own. I have to parse /proc/mounts or something manually, which obviously should be the job of ismount().
Python has a lot of platform-specific underlying implementations anyway.

----------
nosy: +Mikko Korkalo

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue29707>
_______________________________________


More information about the Python-bugs-list mailing list