Skip to content

Commit 2fe1c6f

Browse files
committed
Document os.path.ismount() behaviour with btrfs subvolumes.
1 parent c419af9 commit 2fe1c6f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Doc/library/os.path.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,10 @@ the :mod:`glob` module.)
298298
device than *path*, or whether :file:`{path}/..` and *path* point to the same
299299
i-node on the same device --- this should detect mount points for all Unix
300300
and POSIX variants. It is not able to reliably detect bind mounts on the
301-
same filesystem. On Windows, a drive letter root and a share UNC are
302-
always mount points, and for any other path ``GetVolumePathName`` is called
303-
to see if it is different from the input path.
301+
same filesystem. On Linux systems it will return True for btrfs subvolumes,
302+
even if they aren't mountpoints. On Windows, a drive letter root and a share
303+
UNC are always mount points, and for any other path ``GetVolumePathName`` is
304+
called to see if it is different from the input path.
304305

305306
.. versionchanged:: 3.4
306307
Added support for detecting non-root mount points on Windows.

0 commit comments

Comments
 (0)