Skip to content

mount point still exist after httpdirfs process terminates. #177

@fpemud

Description

@fpemud

Problem Description

The mount point does not automatically unmount after killing the httpdirfs process, even with "-o auto_unmount" specified.

My operation steps:

fpemud@fpemud-workstation ~ $ httpdirfs --config test.cfg -o ro,auto_unmount https://fedorapeople.org/groups test
LinkTable_print: --------------------------------------------
LinkTable_print:  LinkTable 0x5595b1aa5240 for https://fedorapeople.org/groups
LinkTable_print: --------------------------------------------
LinkTable_print: 0 H 0  https://fedorapeople.org/groups
...
LinkTable_print: 31 D 0 weldr https://fedorapeople.org/groups/weldr/
LinkTable_print: --------------------------------------------
LinkTable_print:  Invalid link count: 0
LinkTable_print: --------------------------------------------
fpemud@fpemud-workstation ~ $ mount | grep httpdirfs
httpdirfs on /home/fpemud/test type fuse.httpdirfs (ro,nosuid,nodev,noatime,user_id=1000,group_id=1000)
fpemud@fpemud-workstation ~ $ ps -A | grep httpdirfs
13096 ?        00:00:00 httpdirfs
fpemud@fpemud-workstation ~ $ kill 13096
fpemud@fpemud-workstation ~ $ ps -A | grep httpdirfs
fpemud@fpemud-workstation ~ $ mount | grep httpdirfs
httpdirfs on /home/fpemud/test type fuse.httpdirfs (ro,nosuid,nodev,noatime,user_id=1000,group_id=1000)
fpemud@fpemud-workstation ~ $ 

test.cfg is an empty file.
I have to umount this residential mount point manually using umount command.

Expected Behavior

After killing the httpdirfs process, the mount point /home/fpemud/test should automatically unmount and no longer appear in the mount output.

Actual Behavior

The mount point remains listed in the mount output even after killing the httpdirfs process, and it is inaccessible because FUSE process no longer exist.

Example of Correct Behavior (fuseiso):

fpemud@fpemud-workstation ~ $ fuseiso ~/test.iso test
fpemud@fpemud-workstation ~ $ mount | grep fuseiso
fuseiso on /home/fpemud/test type fuse.fuseiso (rw,nosuid,nodev,noatime,user_id=1000,group_id=1000)
fpemud@fpemud-workstation ~ $ ps -A | grep fuseiso
13903 ?        00:00:00 fuseiso
fpemud@fpemud-workstation ~ $ kill 13903
fpemud@fpemud-workstation ~ $ mount | grep fuseiso
fpemud@fpemud-workstation ~ $ 

System Information

fpemud@fpemud-workstation ~ $ httpdirfs -V
HTTPDirFS version 1.2.7
libcurl SSL engine: OpenSSL/3.3.3
FUSE library version 3.16.2
using FUSE kernel interface version 7.38
fusermount3 version: 3.16.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions