]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-83714: Disable os.statx_result.stx_atomic_write_unit_max_opt (#140162)
authorVictor Stinner <vstinner@python.org>
Wed, 15 Oct 2025 15:38:34 +0000 (17:38 +0200)
committerGitHub <noreply@github.com>
Wed, 15 Oct 2025 15:38:34 +0000 (17:38 +0200)
Fix building on Centos 9 x86-64 buildbot.

Modules/posixmodule.c

index 2dd43e50e7975685df75f81775a8132739cc1b88..e2b7146237feb68a2507f15495438094ae4e94b1 100644 (file)
@@ -3366,11 +3366,13 @@ static PyMemberDef pystatx_result_members[] = {
         "minimum size for direct I/O with torn-write protection"),
     MM(stx_atomic_write_unit_max, Py_T_UINT, atomic_write_unit_max,
         "maximum size for direct I/O with torn-write protection"),
-    MM(stx_atomic_write_unit_max_opt, Py_T_UINT, atomic_write_unit_max_opt,
-        "maximum optimized size for direct I/O with torn-write protection"),
     MM(stx_atomic_write_segments_max, Py_T_UINT, atomic_write_segments_max,
         "maximum iovecs for direct I/O with torn-write protection"),
 #endif
+#if 0
+    MM(stx_atomic_write_unit_max_opt, Py_T_UINT, atomic_write_unit_max_opt,
+        "maximum optimized size for direct I/O with torn-write protection"),
+#endif
 #ifdef STATX_DIO_READ_ALIGN
     MM(stx_dio_read_offset_align, Py_T_UINT, dio_read_offset_align,
         "direct I/O file offset alignment for reads"),