Re: PROBLEM: ext2/mount - multiple mounts corrupts inodes

From: H. Peter Anvin (hpa@zytor.com)
Date: Thu Jan 31 2002 - 01:35:59 EST


Followup to: <20020130163730.N763@lynx.adilger.int>
By author: Andreas Dilger <adilger@turbolabs.com>
In newsgroup: linux.dev.kernel
>
> <stating the obvious>
> Rather than mounting the device to try and see if it is already
> mounted, use /proc/mounts or /etc/mtab or "df" or "mount" output
> instead. Doctor, it hurts when I do this... ;-).
> </stating the obvious>
>

ENOTATOMIC

Might not matter for a human user, but for a daemon like autofs it's
vital that atomicity is preserved.

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jan 31 2002 - 21:01:32 EST