diff options
author | thegeorg <[email protected]> | 2023-07-26 17:26:21 +0300 |
---|---|---|
committer | thegeorg <[email protected]> | 2023-07-26 17:26:21 +0300 |
commit | 3785d5f97965bccf048718d8717904cf50f9f8f9 (patch) | |
tree | b7ce8ae67d7eb7fcf7767c54379f0564c281147f /contrib/libs/liburing/test/xattr.c | |
parent | 1f6b57071583f89299bb5abd3863d594f23c5be5 (diff) |
Update contrib/libs/liburing to 2.4
Diffstat (limited to 'contrib/libs/liburing/test/xattr.c')
-rw-r--r-- | contrib/libs/liburing/test/xattr.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/contrib/libs/liburing/test/xattr.c b/contrib/libs/liburing/test/xattr.c index e1f97e58292..0c5870d33d1 100644 --- a/contrib/libs/liburing/test/xattr.c +++ b/contrib/libs/liburing/test/xattr.c @@ -52,10 +52,11 @@ static int io_uring_fsetxattr(struct io_uring *ring, int fd, const char *name, } ret = cqe->res; - if (ret == -EINVAL) - no_xattr = 1; + if (ret < 0) { + if (cqe->res == -EINVAL || cqe->res == -EOPNOTSUPP) + no_xattr = 1; + } io_uring_cqe_seen(ring, cqe); - return ret; } @@ -127,8 +128,11 @@ static int io_uring_setxattr(struct io_uring *ring, const char *path, } ret = cqe->res; + if (ret < 0) { + if (ret == -EINVAL || ret == -EOPNOTSUPP) + no_xattr = 1; + } io_uring_cqe_seen(ring, cqe); - return ret; } |