Quoting Samuel Thibault (2013-07-04 23:53:38)
> Justus Winter, le Thu 04 Jul 2013 23:30:49 +0200, a écrit :
> > Quoting Samuel Thibault (2013-07-04 22:55:51)
> > > Justus Winter, le Thu 04 Jul 2013 18:45:35 +0200, a écrit :
> > > > Note that without a
> > > > mtab or /proc/mounts file the umount utility is not very useful,
> > > 
> > > Mmm? In theory it should easily be able to unmount anything by just
> > > providing the mount point, shouldn't it?
> > 
> > Yes, that's the half of umount that would work.
> 
> Ok, good.

No, because one cannot tell if a given path is a mount point or the
device without consulting the mtab file.

I meant that it would be theoretically be possible to build a umount
that does roughly half of what umount usually does and that half would
be equivalent to settrans -gp /foo. But this umount is fully featured
and does require a mtab file to do anything. Afaict that's how umount
is supposed to work.

Justus

Attachment: signature.asc
Description: signature

Reply via email to