Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librefuse/refuse refuse(3): Fix broken 3.5, 3.6, and 3.7...
details: https://anonhg.NetBSD.org/src/rev/cd18c0573942
branches: trunk
changeset: 377486:cd18c0573942
user: pho <pho%NetBSD.org@localhost>
date: Fri Jul 14 02:43:50 2023 +0000
description:
refuse(3): Fix broken 3.5, 3.6, and 3.7 APIs
These API versions were completely missing from refuse/fs.c. User programs
could request these versions and build fine, but they couldn't even
initialize a FUSE context at run time.
diffstat:
lib/librefuse/refuse/fs.c | 47 +++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 45 insertions(+), 2 deletions(-)
diffs (truncated from 362 to 300 lines):
diff -r 0d3fb6440d6c -r cd18c0573942 lib/librefuse/refuse/fs.c
--- a/lib/librefuse/refuse/fs.c Thu Jul 13 23:27:20 2023 +0000
+++ b/lib/librefuse/refuse/fs.c Fri Jul 14 02:43:50 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fs.c,v 1.1 2022/01/22 08:09:40 pho Exp $ */
+/* $NetBSD: fs.c,v 1.2 2023/07/14 02:43:50 pho Exp $ */
/*
* Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if !defined(lint)
-__RCSID("$NetBSD: fs.c,v 1.1 2022/01/22 08:09:40 pho Exp $");
+__RCSID("$NetBSD: fs.c,v 1.2 2023/07/14 02:43:50 pho Exp $");
#endif /* !lint */
/*
@@ -154,6 +154,7 @@ fuse_fs_getattr_v30(struct fuse_fs* fs,
return -ENOSYS
CALL_GETATTR(30);
CALL_GETATTR(34);
+ CALL_GETATTR(35);
CALL_GETATTR(38);
#undef CALL_GETATTR
default:
@@ -190,6 +191,7 @@ fuse_fs_fgetattr(struct fuse_fs* fs, con
case 30:
case 34:
+ case 35:
case 38:
return fuse_fs_getattr_v30(fs, path, buf, fi);
default:
@@ -231,6 +233,7 @@ fuse_fs_rename_v30(struct fuse_fs* fs, c
return -ENOSYS
CALL_RENAME(30);
CALL_RENAME(34);
+ CALL_RENAME(35);
CALL_RENAME(38);
#undef CALL_RENAME
default:
@@ -258,6 +261,7 @@ fuse_fs_unlink(struct fuse_fs* fs, const
CALL_UNLINK(29);
CALL_UNLINK(30);
CALL_UNLINK(34);
+ CALL_UNLINK(35);
CALL_UNLINK(38);
#undef CALL_UNLINK
default:
@@ -285,6 +289,7 @@ fuse_fs_rmdir(struct fuse_fs* fs, const
CALL_RMDIR(29);
CALL_RMDIR(30);
CALL_RMDIR(34);
+ CALL_RMDIR(35);
CALL_RMDIR(38);
#undef CALL_RMDIR
default:
@@ -312,6 +317,7 @@ fuse_fs_symlink(struct fuse_fs* fs, cons
CALL_SYMLINK(29);
CALL_SYMLINK(30);
CALL_SYMLINK(34);
+ CALL_SYMLINK(35);
CALL_SYMLINK(38);
#undef CALL_SYMLINK
default:
@@ -339,6 +345,7 @@ fuse_fs_link(struct fuse_fs* fs, const c
CALL_LINK(29);
CALL_LINK(30);
CALL_LINK(34);
+ CALL_LINK(35);
CALL_LINK(38);
#undef CALL_LINK
default:
@@ -374,6 +381,7 @@ fuse_fs_release(struct fuse_fs* fs, cons
CALL_RELEASE(29);
CALL_RELEASE(30);
CALL_RELEASE(34);
+ CALL_RELEASE(35);
CALL_RELEASE(38);
#undef CALL_RELEASE
default:
@@ -409,6 +417,7 @@ fuse_fs_open(struct fuse_fs* fs, const c
CALL_OPEN(29);
CALL_OPEN(30);
CALL_OPEN(34);
+ CALL_OPEN(35);
CALL_OPEN(38);
#undef CALL_OPEN
default:
@@ -445,6 +454,7 @@ fuse_fs_read(struct fuse_fs* fs, const c
CALL_READ(29);
CALL_READ(30);
CALL_READ(34);
+ CALL_READ(35);
CALL_READ(38);
#undef CALL_READ
default:
@@ -476,6 +486,7 @@ fuse_fs_read_buf(struct fuse_fs* fs, con
CALL_READ_BUF(29);
CALL_READ_BUF(30);
CALL_READ_BUF(34);
+ CALL_READ_BUF(35);
CALL_READ_BUF(38);
#undef CALL_READ_BUF
default:
@@ -512,6 +523,7 @@ fuse_fs_write(struct fuse_fs* fs, const
CALL_WRITE(29);
CALL_WRITE(30);
CALL_WRITE(34);
+ CALL_WRITE(35);
CALL_WRITE(38);
#undef CALL_WRITE
default:
@@ -543,6 +555,7 @@ fuse_fs_write_buf(struct fuse_fs* fs, co
CALL_WRITE_BUF(29);
CALL_WRITE_BUF(30);
CALL_WRITE_BUF(34);
+ CALL_WRITE_BUF(35);
CALL_WRITE_BUF(38);
#undef CALL_WRITE_BUF
default:
@@ -578,6 +591,7 @@ fuse_fs_fsync(struct fuse_fs* fs, const
CALL_FSYNC(29);
CALL_FSYNC(30);
CALL_FSYNC(34);
+ CALL_FSYNC(35);
CALL_FSYNC(38);
#undef CALL_FSYNC
default:
@@ -613,6 +627,7 @@ fuse_fs_flush(struct fuse_fs* fs, const
CALL_FLUSH(29);
CALL_FLUSH(30);
CALL_FLUSH(34);
+ CALL_FLUSH(35);
CALL_FLUSH(38);
#undef CALL_FLUSH
default:
@@ -706,6 +721,7 @@ fuse_fs_statfs(struct fuse_fs* fs, const
CALL_STATFS(29);
CALL_STATFS(30);
CALL_STATFS(34);
+ CALL_STATFS(35);
CALL_STATFS(38);
#undef CALL_STATFS
default:
@@ -737,6 +753,7 @@ fuse_fs_opendir(struct fuse_fs* fs, cons
CALL_OPENDIR(29);
CALL_OPENDIR(30);
CALL_OPENDIR(34);
+ CALL_OPENDIR(35);
CALL_OPENDIR(38);
#undef CALL_OPENDIR
default:
@@ -902,6 +919,7 @@ fuse_fs_readdir_v30(struct fuse_fs* fs,
return -ENOSYS
CALL_READDIR(30);
CALL_READDIR(34);
+ CALL_READDIR(35);
CALL_READDIR(38);
#undef CALL_READDIR
default:
@@ -937,6 +955,7 @@ fuse_fs_fsyncdir(struct fuse_fs* fs, con
CALL_FSYNCDIR(29);
CALL_FSYNCDIR(30);
CALL_FSYNCDIR(34);
+ CALL_FSYNCDIR(35);
CALL_FSYNCDIR(38);
#undef CALL_FSYNCDIR
default:
@@ -968,6 +987,7 @@ fuse_fs_releasedir(struct fuse_fs* fs, c
CALL_RELEASEDIR(29);
CALL_RELEASEDIR(30);
CALL_RELEASEDIR(34);
+ CALL_RELEASEDIR(35);
CALL_RELEASEDIR(38);
#undef CALL_RELEASEDIR
default:
@@ -998,6 +1018,7 @@ fuse_fs_create(struct fuse_fs* fs, const
CALL_CREATE(29);
CALL_CREATE(30);
CALL_CREATE(34);
+ CALL_CREATE(35);
CALL_CREATE(38);
#undef CALL_CREATE
default:
@@ -1029,6 +1050,7 @@ fuse_fs_lock(struct fuse_fs* fs, const c
CALL_LOCK(29);
CALL_LOCK(30);
CALL_LOCK(34);
+ CALL_LOCK(35);
CALL_LOCK(38);
#undef CALL_LOCK
default:
@@ -1059,6 +1081,7 @@ fuse_fs_flock(struct fuse_fs* fs, const
CALL_FLOCK(29);
CALL_FLOCK(30);
CALL_FLOCK(34);
+ CALL_FLOCK(35);
CALL_FLOCK(38);
#undef CALL_FLOCK
default:
@@ -1100,6 +1123,7 @@ fuse_fs_chmod_v30(struct fuse_fs* fs, co
return -ENOSYS
CALL_CHMOD(30);
CALL_CHMOD(34);
+ CALL_CHMOD(35);
CALL_CHMOD(38);
#undef CALL_CHMOD
default:
@@ -1140,6 +1164,7 @@ fuse_fs_chown_v30(struct fuse_fs* fs, co
return -ENOSYS
CALL_CHOWN(30);
CALL_CHOWN(34);
+ CALL_CHOWN(35);
CALL_CHOWN(38);
#undef CALL_CHOWN
default:
@@ -1179,6 +1204,7 @@ fuse_fs_truncate_v30(struct fuse_fs* fs,
return -ENOSYS
CALL_TRUNCATE(30);
CALL_TRUNCATE(34);
+ CALL_TRUNCATE(35);
CALL_TRUNCATE(38);
#undef CALL_TRUNCATE
default:
@@ -1231,6 +1257,7 @@ fuse_fs_ftruncate(struct fuse_fs* fs, co
return -ENOSYS
CALL_TRUNCATE(30);
CALL_TRUNCATE(34);
+ CALL_TRUNCATE(35);
CALL_TRUNCATE(38);
#undef CALL_TRUNCATE
default:
@@ -1293,6 +1320,7 @@ fuse_fs_utimens_v30(struct fuse_fs* fs,
return -ENOSYS
CALL_UTIMENS(30);
CALL_UTIMENS(34);
+ CALL_UTIMENS(35);
CALL_UTIMENS(38);
#undef CALL_UTIMENS
default:
@@ -1322,6 +1350,7 @@ fuse_fs_access(struct fuse_fs* fs, const
CALL_ACCESS(29);
CALL_ACCESS(30);
CALL_ACCESS(34);
+ CALL_ACCESS(35);
CALL_ACCESS(38);
#undef CALL_ACCESS
default:
@@ -1349,6 +1378,7 @@ fuse_fs_readlink(struct fuse_fs* fs, con
CALL_READLINK(29);
CALL_READLINK(30);
CALL_READLINK(34);
+ CALL_READLINK(35);
CALL_READLINK(38);
#undef CALL_READLINK
default:
@@ -1376,6 +1406,7 @@ fuse_fs_mknod(struct fuse_fs* fs, const
CALL_MKNOD(29);
CALL_MKNOD(30);
CALL_MKNOD(34);
+ CALL_MKNOD(35);
CALL_MKNOD(38);
#undef CALL_MKNOD
default:
@@ -1403,6 +1434,7 @@ fuse_fs_mkdir(struct fuse_fs* fs, const
CALL_MKDIR(29);
CALL_MKDIR(30);
CALL_MKDIR(34);
+ CALL_MKDIR(35);
CALL_MKDIR(38);
#undef CALL_MKDIR
default:
@@ -1432,6 +1464,7 @@ int fuse_fs_setxattr(struct fuse_fs* fs,
CALL_SETXATTR(29);
CALL_SETXATTR(30);
CALL_SETXATTR(34);
+ CALL_SETXATTR(35);
CALL_SETXATTR(38);
#undef CALL_SETXATTR
default:
@@ -1462,6 +1495,7 @@ fuse_fs_getxattr(struct fuse_fs* fs, con
CALL_GETXATTR(29);
CALL_GETXATTR(30);
CALL_GETXATTR(34);
+ CALL_GETXATTR(35);
CALL_GETXATTR(38);
#undef CALL_GETXATTR
default:
@@ -1490,6 +1524,7 @@ int fuse_fs_listxattr(struct fuse_fs* fs
CALL_LISTXATTR(29);
CALL_LISTXATTR(30);
CALL_LISTXATTR(34);
+ CALL_LISTXATTR(35);
CALL_LISTXATTR(38);
#undef CALL_LISTXATTR
default:
@@ -1519,6 +1554,7 @@ fuse_fs_removexattr(struct fuse_fs* fs,
CALL_REMOVEXATTR(29);
Home |
Main Index |
Thread Index |
Old Index