reset got_init after handling FUSE_DESTROY message (#910)

User may still need to mount same fuse filesystem after umounting
it(In this case, the userspace filesystem server needs to keep live),
and after handling FUSE_DESTROY message, new FUSE_INIT message may come,
so need to reset got_init to be zero.

Signed-off-by: Xiaoguang Wang <lege.wang@jaguarmicro.com>
This commit is contained in:
legezywzh 2024-03-21 17:02:05 +08:00 committed by GitHub
parent e547a66566
commit f01d9277cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2208,6 +2208,7 @@ static void do_destroy(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
(void) inarg;
se->got_destroy = 1;
se->got_init = 0;
if (se->op.destroy)
se->op.destroy(se->userdata);