Fix init handler signature for FUSE 3
FUSE 3 init handler requires struct fuse_config* parameter. This parameter provides access to high-level API configuration options that can be modified during initialization. Without this parameter, the init handler signature is incompatible with FUSE 3, causing filesystem operations to fail.
This commit is contained in:
parent
c2669e3d2b
commit
d50749755a
|
|
@ -3313,7 +3313,7 @@ static void pfs_start_callback_timer(psync_timer_t timer, void *ptr) {
|
|||
prun_thread("fs start callback", callback);
|
||||
}
|
||||
|
||||
static void *pfs_init(struct fuse_conn_info *conn) {
|
||||
static void *pfs_init(struct fuse_conn_info *conn, struct fuse_config *cfg) {
|
||||
#if defined(FUSE_CAP_ASYNC_READ)
|
||||
conn->want |= FUSE_CAP_ASYNC_READ;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue