diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-27 03:45:09 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-27 04:14:00 +0900 |
| commit | 2e5362e536d477b47858748a8792c64175320aa7 (patch) | |
| tree | b4627f156649fbf74decae52b97237fd1e3ee40b /cmd/sharefs/fuse-operations.h | |
| parent | 6d3bd27220c80eb58a11b75054fbbcf67e50cc28 (diff) | |
cmd/sharefs: opaque setup state
This allows unrestricted use of the type system and prepares setup code for cross-process initialisation.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/sharefs/fuse-operations.h')
| -rw-r--r-- | cmd/sharefs/fuse-operations.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cmd/sharefs/fuse-operations.h b/cmd/sharefs/fuse-operations.h index edcfb2a7..da118c84 100644 --- a/cmd/sharefs/fuse-operations.h +++ b/cmd/sharefs/fuse-operations.h @@ -13,11 +13,8 @@ /* sharefs_private is populated by sharefs_init and contains process-wide context */ struct sharefs_private { - int dirfd; /* source dirfd opened during sharefs_init */ - bool init_failed; /* whether sharefs_init failed */ - uintptr_t source_handle; /* cgo handle of pathname to open for dirfd, freed during sharefs_init */ - uintptr_t setuid; /* uid to set by sharefs_init when running as root */ - uintptr_t setgid; /* gid to set by sharefs_init when running as root */ + int dirfd; /* source dirfd opened during sharefs_init */ + uintptr_t setup; /* cgo handle of opaque setup state */ }; int sharefs_getattr(const char *pathname, struct stat *statbuf, struct fuse_file_info *fi); |
