diff options
| author | Xi Ruoyao <xry111@xry111.site> | 2025-08-28 13:56:40 +0800 |
|---|---|---|
| committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-09-08 08:22:20 -0300 |
| commit | 3b39822a82a2415f92ddbc1503e4a55597034573 (patch) | |
| tree | 3f0a3084eabd5cace34b95e54bde9ba754d18fee /misc | |
| parent | 3795f22d4206e063d5b07a4da64febdc11cb42ee (diff) | |
misc: Add support for Linux uio.h RWF_DONTCACHE flag
Linux 6.14 adds the new flag for uncached buffered IO on a filesystem
supporting it.
This caused two test failures as these tests expected the flag
0x00000080 is unused. Add the flag definition to fix these tests on
Linux >= 6.14:
FAIL: misc/tst-preadvwritev2
FAIL: misc/tst-preadvwritev64v2
The test failures were not detected in routine test suite runs because
normally we create the test file in /tmp, where a tmpfs is usually
mounted, and tmpfs does not support this flag. But it can be reproduced
with TMPDIR set to some directory in an ext4 file system.
Link: https://git.kernel.org/torvalds/c/af6505e5745b
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/tst-preadvwritev2-common.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/misc/tst-preadvwritev2-common.c b/misc/tst-preadvwritev2-common.c index ff1007d6d2..8a59ff2f9d 100644 --- a/misc/tst-preadvwritev2-common.c +++ b/misc/tst-preadvwritev2-common.c @@ -40,8 +40,12 @@ #ifndef RWF_ATOMIC # define RWF_ATOMIC 0 #endif +#ifndef RWF_DONTCACHE +# define RWF_DONTCACHE 0 +#endif #define RWF_SUPPORTED (RWF_HIPRI | RWF_DSYNC | RWF_SYNC | RWF_NOWAIT \ - | RWF_APPEND | RWF_NOAPPEND | RWF_ATOMIC) + | RWF_APPEND | RWF_NOAPPEND | RWF_ATOMIC \ + | RWF_DONTCACHE) /* Generic uio_lim.h does not define IOV_MAX. */ #ifndef IOV_MAX |
