Files
libfuse/lib/fuse_daemonize_i.h
Bernd Schubert 9f573330ad fuse_daemonize_early: Rename is_active to is_used, add new is_active
In passthrough_hp.cc in main() the err_out4 condition would
have printed an invalid warning and program exit even
under regular umount, because the underlying check acted
on daemonize.active and daemonize.daemonized, although it
was supposed to act on daemonize.active only.
Fix that by renaming the current _is_active() to _is_used()
and by introducing a new fuse_daemonize_is_active(), which
only checks for 'daemonize.daemonized'.

Suggested-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
2026-05-25 23:48:40 +02:00

33 lines
618 B
C

/*
* FUSE: Filesystem in Userspace
* Copyright (C) 2026 Bernd Schubert <bsbernd.com>
*
* This program can be distributed under the terms of the GNU LGPLv2.
* See the file COPYING.LIB.
*
*/
#ifndef FUSE_DAEMONIZE_I_H_
#define FUSE_DAEMONIZE_I_H_
#include <stdint.h>
#include <stdbool.h>
/**
* Set mounted flag.
*
* Called from fuse_session_mount().
*/
void fuse_daemonize_early_set_mounted(void);
/**
* Check if fuse_daemonize_early_start() was used
*/
bool fuse_daemonize_early_is_used(void);
/* Set on handling FUSE_INIT */
void fuse_daemonize_set_got_init(void);
#endif /* FUSE_DAEMONIZE_I_H_ */