Message289216
On Windows, _Py_attribute_data_to_stat() converts BY_HANDLE_FILE_INFORMATION to _Py_stat_struct, and then _pystat_fromstructstat() creates Python objects.
The file index in BY_HANDLE_FILE_INFORMATION is made of two DWORD, so yes, it's unsigned.
On Linux, stat.st_ino type is ino_t which is unsigned too.
So I created a pull request to fix the bug, even if I don't think that a filesystem produce inodes larger than 2^63-1. Not sure if it's worth it to backport the fix to Python 2.7, 3.5 and 3.6? |
|
Date |
User |
Action |
Args |
2017-03-08 08:08:00 | vstinner | set | recipients:
+ vstinner, eryksun, steve.dower, xiang.zhang, mba |
2017-03-08 08:08:00 | vstinner | set | messageid: <1488960480.2.0.339030886725.issue29619@psf.upfronthosting.co.za> |
2017-03-08 08:08:00 | vstinner | link | issue29619 messages |
2017-03-08 08:07:59 | vstinner | create | |
|