8000 GH-111293: Fix DirEntry.inode dropping higher bits by zcxsythenew · Pull Request #111294 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-111293: Fix DirEntry.inode dropping higher bits #111294

New issue 8000

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
8000
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
gh-111293: Fix DirEntry.inode dropping higher bits
Resolve Conversations
  • Loading branch information
zcxsythenew committed Oct 26, 2023
commit 0156cae43a5f00e132f470ee72d7617f7fe836fd

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix :data:`os.DirEntry.inode` dropping higher 64 bits of a file id on some filesystems on Windows.
2 changes: 0 additions & 2 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -15138,8 +15138,6 @@ os_DirEntry_inode_impl(DirEntry *self)
self->win32_file_index_high = stat.st_ino_high;
self->got_file_index = 1;
}
static_assert(sizeof(unsigned long long) >= sizeof(self->win32_file_index),
"DirEntry.win32_file_index is larger than unsigned long long");
return _pystat_l128_from_l64_l64(self->win32_file_index, self->win32_file_index_high);
#else /* POSIX */
static_assert(sizeof(unsigned long long) >= sizeof(self->d_ino),
Expand Down
0