fio & pgbench

This commit is contained in:
2026-03-13 13:40:19 +00:00
parent 4d350d5aea
commit cf13b0228e
14 changed files with 305 additions and 54 deletions

View File

@@ -887,6 +887,10 @@ int __libc_openat64(int dirfd, const char *path, int flags, ...)
int __open_2(const char *path, int flags)
{
if ((flags & O_CREAT) || ((flags & O_TMPFILE) == O_TMPFILE)) {
errno = EINVAL;
return -1;
}
zvfs_debug_open_log(path, NULL,
"__open_2 called path=%s flags=0x%x",
zvfs_dbg_str(path), flags);
@@ -895,11 +899,19 @@ int __open_2(const char *path, int flags)
int __open64_2(const char *path, int flags)
{
if ((flags & O_CREAT) || ((flags & O_TMPFILE) == O_TMPFILE)) {
errno = EINVAL;
return -1;
}
return open64(path, flags);
}
int __openat_2(int dirfd, const char *path, int flags)
{
if ((flags & O_CREAT) || ((flags & O_TMPFILE) == O_TMPFILE)) {
errno = EINVAL;
return -1;
}
zvfs_debug_open_log(path, NULL,
"__openat_2 called dirfd=%d path=%s flags=0x%x",
dirfd, zvfs_dbg_str(path), flags);
@@ -908,6 +920,10 @@ int __openat_2(int dirfd, const char *path, int flags)
int __openat64_2(int dirfd, const char *path, int flags)
{
if ((flags & O_CREAT) || ((flags & O_TMPFILE) == O_TMPFILE)) {
errno = EINVAL;
return -1;
}
return openat64(dirfd, path, flags);
}