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

From: Roman Zippel
Date: Mon Sep 20 2004 - 07:06:25 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/