Skip to content

Commit 5213f1b

Browse files
authored
pythongh-83714: Disable os.statx_result.stx_atomic_write_unit_max_opt (python#140162)
Fix building on Centos 9 x86-64 buildbot.
1 parent 1624c64 commit 5213f1b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Modules/posixmodule.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3366,11 +3366,13 @@ static PyMemberDef pystatx_result_members[] = {
33663366
"minimum size for direct I/O with torn-write protection"),
33673367
MM(stx_atomic_write_unit_max, Py_T_UINT, atomic_write_unit_max,
33683368
"maximum size for direct I/O with torn-write protection"),
3369-
MM(stx_atomic_write_unit_max_opt, Py_T_UINT, atomic_write_unit_max_opt,
3370-
"maximum optimized size for direct I/O with torn-write protection"),
33713369
MM(stx_atomic_write_segments_max, Py_T_UINT, atomic_write_segments_max,
33723370
"maximum iovecs for direct I/O with torn-write protection"),
33733371
#endif
3372+
#if 0
3373+
MM(stx_atomic_write_unit_max_opt, Py_T_UINT, atomic_write_unit_max_opt,
3374+
"maximum optimized size for direct I/O with torn-write protection"),
3375+
#endif
33743376
#ifdef STATX_DIO_READ_ALIGN
33753377
MM(stx_dio_read_offset_align, Py_T_UINT, dio_read_offset_align,
33763378
"direct I/O file offset alignment for reads"),

0 commit comments

Comments
 (0)