[issue37339] os.path.ismount returns true on nested btrfs subvolumes

2020-05-07 Thread Eike Fokken
Eike Fokken added the comment: Ok, this is my proposal for the documentation. I hope you like it. Is this the correct place to post it or can I make a direct pull request? old: .. function:: ismount(path) Return ``True`` if pathname *path* is a :dfn:`mount point`: a point in a file

[issue37339] os.path.ismount returns true on nested btrfs subvolumes

2020-04-22 Thread Eryk Sun
Eryk Sun added the comment: > What do you mean by "portable version of mountpoint"? posixpath.ismount is based on a portable method to detect a mountpoint in Unix systems, since POSIX lacks a portable function for this. The implementation is simple. A symlink is never a mountpoint.

[issue37339] os.path.ismount returns true on nested btrfs subvolumes

2020-04-22 Thread Jakub Stasiak
Change by Jakub Stasiak : -- nosy: +jstasiak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37339] os.path.ismount returns true on nested btrfs subvolumes

2019-06-20 Thread Eike Fokken
Eike Fokken added the comment: I read the other issue, thanks. What do you mean by "portable version of mountpoint"? Is there a portable version of mountpoint or was it more a figure of speech? Concerning the issue itself: What are the priorities with the behaviour of ismount? Is it more

[issue37339] os.path.ismount returns true on nested btrfs subvolumes

2019-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: os.path.ismount() uses the same simple algorithm as a portable version of mountpoint. But mountpoint (and findmnt) from util-linux uses Linux specific methods (reads /proc/mounts or something like). See also issue29707. --

[issue37339] os.path.ismount returns true on nested btrfs subvolumes

2019-06-19 Thread Eike Fokken
Eike Fokken added the comment: mountpoint /nested_subvolume returns /nested_subvolume is not a mountpoint mountpoint /explicitely_mounted_subvolume returns /explicitely_mounted_subvolume is a mountpoint so agrees with findmnt. -- ___ Python

[issue37339] os.path.ismount returns true on nested btrfs subvolumes

2019-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What does the mountpoint command returns? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue37339] os.path.ismount returns true on nested btrfs subvolumes

2019-06-19 Thread Eike Fokken
New submission from Eike Fokken : Lets say, we have a btrfs partion with subvolumes @, mounted at / and home, which was created directly inside @, such that after mounting @, it can be found at /home. Then os.path.ismount("/home") returns True I would not have expected that, because the