fio & pgbench
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user