[New-bugs-announce] [issue40095] Incorrect st_ino returned for ReFS on Windows 10

Martynas Brijunas report at bugs.python.org
Sat Mar 28 04:27:27 EDT 2020


New submission from Martynas Brijunas <mbrijun at gmail.com>:

On a Windows 10 volume formatted with ReFS, pathlib.Path.stat() returns an incorrect value for "st_ino".

The correct value returned by the OS:

C:\Users>fsutil file queryfileid u:\test\test.jpg
File ID is 0x00000000000029d500000000000004ae

An incorrect value obtained with pathlib.Path.stat():

Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pathlib import Path
>>> hex(Path('U:/test/test.jpg').stat().st_ino)
'0x4000000004ae29d5'

The problem does *not* exist on an NTFS volume:

C:\Users>fsutil file queryfileid o:\OneDrive\test\test.jpg
File ID is 0x0000000000000000000300000001be39

>>> hex(Path('O:/OneDrive/test/test.jpg').stat().st_ino)
'0x300000001be39'

----------
components: Library (Lib)
messages: 365206
nosy: mbrijun at gmail.com
priority: normal
severity: normal
status: open
title: Incorrect st_ino returned for ReFS on Windows 10
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40095>
_______________________________________


More information about the New-bugs-announce mailing list