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.

classification
Title: os.lstat/os.stat/os.fstat don't set st_dev (st_rdev) on Windows
Type: Stage: resolved
Components: Windows Versions: Python 3.2, Python 3.3
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Implement stat.st_dev and os.path.samefile on windows
View: 11939
Assigned To: Nosy List: brian.curtin, ocean-city, python-dev, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2010-12-09 08:28 by ocean-city, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
py3k_add_st_dev_and_st_rdev.patch ocean-city, 2010-12-09 08:28 review
Messages (3)
msg123673 - (view) Author: Hirokazu Yamamoto (ocean-city) * (Python committer) Date: 2010-12-09 08:28
I noticed st_dev is not set yet. Attached patch
fill this value, but sometimes it becomes negative
value because dwVolumeSerialNumber is large enough.
Maybe st_dev should be declared as unsigned int.

# I think this is not new feature. Just bug. So I think
# this can go into python3.2.
msg178702 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2012-12-31 16:28
This was implemented in issue11939 for Python 3.4 only.
msg178711 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-12-31 18:00
New changeset 3738d270c54a by Brian Curtin in branch 'default':
st_dev/st_rdev should be unsigned long as dwVolumeSerialNumber, which it is set to, is a DWORD. This was fixed in #11939 and the overflow was mentioned in #10657 and seen by me on some machines.
http://hg.python.org/cpython/rev/3738d270c54a
History
Date User Action Args
2022-04-11 14:57:10adminsetgithub: 54866
2012-12-31 18:00:04python-devsetnosy: + python-dev
messages: + msg178711
2012-12-31 17:52:19brian.curtinsetstatus: open -> closed
superseder: Implement stat.st_dev and os.path.samefile on windows
resolution: duplicate
stage: resolved
2012-12-31 16:28:24serhiy.storchakasetnosy: + brian.curtin, serhiy.storchaka
messages: + msg178702
2010-12-09 08:28:30ocean-citycreate