gh-126909: Fix running xattr tests on systems with lower limits#126930
gh-126909: Fix running xattr tests on systems with lower limits#126930vstinner merged 2 commits intopython:mainfrom
Conversation
Modify the extended attribute tests to write fewer and smaller extended attributes, in order to fit within filesystems with total xattr limit of 1 KiB (e.g. ext4 with 1 KiB blocks). Previously, the test would write over 2 KiB, making it fail with ENOSPC on such systems.
Misc/NEWS.d/next/Tests/2024-11-17-16-56-48.gh-issue-126909.60VTxW.rst
Outdated
Show resolved
Hide resolved
|
Can we have a dynamic limit instead? IIRC xfs supports block sizes of 512 bytes (which is the minimum). Is there a way to detect the underlying fs just in case? (I doubt anyone is using 512 bytes blocks but we never know...). EDIT: NVM XFS does not impose a limit on xattr size (but can you confirm that I correctly understood the man page?) |
Co-authored-by: Victor Stinner <vstinner@python.org>
That's how I understand it — "no practical limit". FWIU, "the limit on bytes used in an EA value is the ceiling imposed by the VFS" refers to "VFS-imposed limits on attribute names and values are 255 bytes and 64 kB, respectively". |
…pythonGH-126930) Modify the extended attribute tests to write fewer and smaller extended attributes, in order to fit within filesystems with total xattr limit of 1 KiB (e.g. ext4 with 1 KiB blocks). Previously, the test would write over 2 KiB, making it fail with ENOSPC on such systems. (cherry picked from commit 2c0a21c) Co-authored-by: Michał Górny <mgorny@gentoo.org>
|
GH-126964 is a backport of this pull request to the 3.12 branch. |
…pythonGH-126930) Modify the extended attribute tests to write fewer and smaller extended attributes, in order to fit within filesystems with total xattr limit of 1 KiB (e.g. ext4 with 1 KiB blocks). Previously, the test would write over 2 KiB, making it fail with ENOSPC on such systems. (cherry picked from commit 2c0a21c) Co-authored-by: Michał Górny <mgorny@gentoo.org>
|
GH-126965 is a backport of this pull request to the 3.13 branch. |
|
Merged, thank you. |
|
Thanks! |
GH-126930) (#126964) gh-126909: Fix running xattr tests on systems with lower limits (GH-126930) Modify the extended attribute tests to write fewer and smaller extended attributes, in order to fit within filesystems with total xattr limit of 1 KiB (e.g. ext4 with 1 KiB blocks). Previously, the test would write over 2 KiB, making it fail with ENOSPC on such systems. (cherry picked from commit 2c0a21c) Co-authored-by: Michał Górny <mgorny@gentoo.org>
GH-126930) (#126965) gh-126909: Fix running xattr tests on systems with lower limits (GH-126930) Modify the extended attribute tests to write fewer and smaller extended attributes, in order to fit within filesystems with total xattr limit of 1 KiB (e.g. ext4 with 1 KiB blocks). Previously, the test would write over 2 KiB, making it fail with ENOSPC on such systems. (cherry picked from commit 2c0a21c) Co-authored-by: Michał Górny <mgorny@gentoo.org>
…python#126930) Modify the extended attribute tests to write fewer and smaller extended attributes, in order to fit within filesystems with total xattr limit of 1 KiB (e.g. ext4 with 1 KiB blocks). Previously, the test would write over 2 KiB, making it fail with ENOSPC on such systems.
… limits (pythonGH-126930) (python#126964) pythongh-126909: Fix running xattr tests on systems with lower limits (pythonGH-126930) Modify the extended attribute tests to write fewer and smaller extended attributes, in order to fit within filesystems with total xattr limit of 1 KiB (e.g. ext4 with 1 KiB blocks). Previously, the test would write over 2 KiB, making it fail with ENOSPC on such systems. (cherry picked from commit 2c0a21c) Co-authored-by: Michał Górny <mgorny@gentoo.org>
… limits (pythonGH-126930) (python#126964) pythongh-126909: Fix running xattr tests on systems with lower limits (pythonGH-126930) Modify the extended attribute tests to write fewer and smaller extended attributes, in order to fit within filesystems with total xattr limit of 1 KiB (e.g. ext4 with 1 KiB blocks). Previously, the test would write over 2 KiB, making it fail with ENOSPC on such systems. (cherry picked from commit 2c0a21c) Co-authored-by: Michał Górny <mgorny@gentoo.org>
Modify the extended attribute tests to write fewer and smaller extended attributes, in order to fit within filesystems with total xattr limit of 1 KiB (e.g. ext4 with 1 KiB blocks). Previously, the test would write over 2 KiB, making it fail with ENOSPC on such systems.