[dropping Abdel because
meapix.com is NXDOMAIN]
Rob Browning <
r...@defaultvalue.org> writes:
> Greg Troxel <
g...@lexort.com> writes:
>
>> I cannot follow what -l is supposed to mean.
>
> I'm not positive, but I suspect it may be like the semantics for rm,
> i.e. you can rm a file, but if a process has it open, it can finish
> using it (via the file descriptor) without errors.
That certainly sounds like sensible semantics, but I don't see that it's
all that useful, because in my experience when plain umount fails (due
to an open vnode), usually it's because of some long-running paused
program or a shell with a CWD in the fs, and none of those tend to
resolve over the next 10 seconds.
> On other platforms, that'll just crash the program, iirc.
If you mean -f, that revokes all open file descriptors in the
being-unmounted fs, so that any further operations on them get some
errno result. Whether that's a crash depends :-)
>> I think the big question is if the usage of umount needs to succeed if
>> there are open files in the mounted filesystem. If not, then -l vs
>> nothing shouldn't really matter. If so, you need -f. So I think I am
>> missing something.
>
> Hmm, it may be that -f will work fine for our purposes, instead of -l.
In this case, what file descriptors are open in the wanted-to-unmount
fs? Why can't the tests just stop using them before the unmount? Then,
use -f anyway, so that if some helpful volume manager opens the root
vnode to do a statvfs to show something, and doesn't close it, the tests
won't hang, without having to fix that buggy volume manager. (I used to
see this with xfce.)