Author Alex Richman
Recipients Alex Richman, Oliver Smith
Date 2017-08-31.17:30:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Can confirm, ran into this issue.  It's because os.path.ismount() works by checking if the path's parent is on a different device (e.g. st_dev is the same for 'path/' and 'path/..'), which obviously it is for a bind mount on the same filesystem.

It is actually documented that this is how it works ( but it's more of a passing comment than a warning, and who reads the docs for such an apparently simple function anyway? ;)

Agree that it should be fixed by parsing /proc/mounts instead of the current mess, perhaps using getmntent(3) and friends.
Date User Action Args
2017-08-31 17:30:18Alex Richmansetrecipients: + Alex Richman, Oliver Smith
2017-08-31 17:30:18Alex Richmansetmessageid: <>
2017-08-31 17:30:18Alex Richmanlinkissue29707 messages
2017-08-31 17:30:18Alex Richmancreate