OCI-oriented build engine
0

Configure Feed

Select the types of activity you want to include in your feed.

builder: size the xattr shrink-race value to the inode xattr limit

The shrink-race test set a 16 KiB extended attribute, but ext4 keeps
an inode's xattrs in a single block, so the set failed with ENOSPC
on the container's overlay before the race ran -- it surfaced once
the idmap deadlock fix let the suite reach this test. A 2 KiB value
fits the per-inode capacity while still being large enough that a
torn read (the sized length returned with a stale tail) would be
caught, so the assertion is unchanged. Verified green in the Linux
container.

+5 -1
+5 -1
test/test_xattr.ml
··· 23 23 let shrink_race_returns_none () = 24 24 let path = Filename.temp_file "xattr_race" ".bin" in 25 25 let name = "user.merlint.race" in 26 - let large = String.make 16384 'L' in 26 + (* Large enough that a torn read -- the sized length returned with a stale 27 + tail -- would be caught, but within the per-inode xattr capacity of common 28 + filesystems: ext4 keeps an inode's extended attributes in a single block, 29 + so a multi-kilobyte value fails to set with ENOSPC. *) 30 + let large = String.make 2048 'L' in 27 31 let small = "s" in 28 32 Fun.protect 29 33 ~finally:(fun () -> try Sys.remove path with Sys_error _ -> ())