Re: OOM & [OT] util-linux-2.12e

Roman Zippel
2004-09-20T12:02:59Z

Hi,

On Mon, 20 Sep 2004, Olaf Hering wrote:

> > $ mount -oloop image /mnt
> >
> > vs
> >
> > $ losetup image /dev/loop0
> > $ mount /dev/loop0 /mnt
> >
> > What should umount do, when called with /mnt?
>
> I have /dev/loop0 in /proc/mounts, umount does nothing wrong here.

What exactly is that "nothing wrong"?

> > Relying on any specifc ordering in /proc/mounts is broken.
>
> Thats most likely true. You could bind mount a mtab file.
> This specific case is tricky.

This is a rather common case and IMO it can expect a clean solution.

bye, Roman