Skip to content

Commit 3bbb7bf

Browse files
committed
Document os.path.ismount() behaviour with btrfs subvolumes.
1 parent 6a6cd3c commit 3bbb7bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Doc/library/os.path.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +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
301+
same filesystem.
302+
On Linux systems, it will always return ``True`` for btrfs subvolumes,
303+
even if they aren't mount points.
304+
On Windows, a drive letter root and a share UNC are
302305
always mount points, and for any other path ``GetVolumePathName`` is called
303306
to see if it is different from the input path.
304307

0 commit comments

Comments
 (0)