This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eike
Recipients eike, eryksun, jstasiak, serhiy.storchaka
Date 2020-05-07.13:10:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588857010.39.0.980779971136.issue37339@roundup.psfhosted.org>
In-reply-to
Content
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
   system where a different file system has been mounted.  The function checks
   whether *path*'s parent, :file:`path/..`, is on a different device than *path*,
   or whether :file:`path/..` and *path* point to the same i-node on the same
   device --- this should detect mount points for all Unix and POSIX variants.


new:
.. function:: ismount(path)

   Return ``True`` if pathname *path* is a :dfn:`mount point`: a point in a file
   system where a different file system has been mounted.  The function checks
   whether *path*'s parent, :file:`path/..`, is on a different device than *path*,
   or whether :file:`path/..` and *path* point to the same i-node on the same
   device --- this should detect mount points for all Unix and POSIX variants.
   Note that in Linux not all mountpoints as recognized by the kernel are found this way.
   An example are bind-mounts.
   Also some directories return ``True`` although Linux doesn't recognize them as mount points.
   An example are nested subvolumes in the Btrfs filesystem
History
Date User Action Args
2020-05-07 13:10:10eikesetrecipients: + eike, serhiy.storchaka, eryksun, jstasiak
2020-05-07 13:10:10eikesetmessageid: <1588857010.39.0.980779971136.issue37339@roundup.psfhosted.org>
2020-05-07 13:10:10eikelinkissue37339 messages
2020-05-07 13:10:10eikecreate