X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=io_uring_engine.cpp;fp=io_uring_engine.cpp;h=eab5e8d068bdccd99db8e1f5179a31d0dd02969b;hb=cb87fdb5ede1d5a9fa0a5a309d9ccf98f42fe0b7;hp=116cf85f285ab15b1a85a6a39f59741271422e06;hpb=de3bb58078cdcaf357a9a0c37648596c85615bc2;p=plocate diff --git a/io_uring_engine.cpp b/io_uring_engine.cpp index 116cf85..eab5e8d 100644 --- a/io_uring_engine.cpp +++ b/io_uring_engine.cpp @@ -123,7 +123,7 @@ void IOUringEngine::submit_stat_internal(io_uring_sqe *sqe, char *path, std::fun pending->stat.pathname = path; pending->stat.buf = new struct statx; - io_uring_prep_statx(sqe, /*fd=*/-1, pending->stat.pathname, AT_STATX_SYNC_AS_STAT, STATX_MODE, pending->stat.buf); + io_uring_prep_statx(sqe, /*fd=*/-1, pending->stat.pathname, AT_STATX_SYNC_AS_STAT | AT_SYMLINK_NOFOLLOW, STATX_MODE, pending->stat.buf); io_uring_sqe_set_data(sqe, pending); ++pending_reads; }