umount() taking minutes for FUSE filesystems

Nikolaus Rath Nikolaus at rath.org
Sat Sep 9 21:53:28 UTC 2017


On Sep 08 2017, Martin Simmons <martin at lispworks.com> wrote:
>> That said, the filesystem could also detect the unmount by the kernel
>> closing the fd. So I'm not sure what is gained by the extra request
>> either... Theoretically, at least under Linux the destroy handler could
>> perform some notify_* operations, but I don't see how that would be
>> useful when the filesystem will be unmounted anyway.
>
> I don't think the kernel itself ever closes the fd (except implicitly in the
> case where the filesystem program dies unexpected).

Sorry, I should have been more precise. The umount is not detected  by
the kernel closing the fd, but by the kernel returning ENODEV when
accessing the fd.

Best,
-Nikolaus

-- 
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«


More information about the freebsd-fs mailing list