aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mount_util.h
diff options
context:
space:
mode:
authorZegang <zegang.luo@qq.com>2025-01-08 14:50:30 +0800
committerBernd Schubert <bernd@bsbernd.com>2025-02-10 16:56:45 +0100
commitd7246542dbe1ece84b88013843dc7a9bb9c81b6f (patch)
treecdd77ebadc11d746c5899dc0a50794fd71a3a3fd /lib/mount_util.h
parent1d134a0ccf8fe95ceb1ea3cdd723cb30c5cfcdf1 (diff)
downloadlibfuse-d7246542dbe1ece84b88013843dc7a9bb9c81b6f.tar.gz
Identify the FD hold by parent process
Issue: There is no directly way to get the FD hold by parent process which asked do fuse mount. Use Case: For auto_unmount case, identify the FD can easy to close the FD and make automatically unmount manually and explicitly. The FD[1] can be got via getenv(FUSE_COMMFD2_ENV). One potential use case is to satisfy FD-Leak checks. Solution: Add an extra env _FUSE_COMMFD2 to store the FD. This will provide a easy way to get the FD via FUSE_COMMFD2_ENV. Signed-off-by: Zegang Luo <zegang.luo@qq.com>
Diffstat (limited to 'lib/mount_util.h')
0 files changed, 0 insertions, 0 deletions