lkml.org 
[lkml]   [2002]   [Jan]   [31]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
From"H. Peter Anvin" <>
SubjectRe: PROBLEM: ext2/mount - multiple mounts corrupts inodes
Date30 Jan 2002 22:35:59 -0800
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/

\
 
 \ /
  Last update: 2005-03-22 11:16    [W:0.924 / U:0.100 seconds]
©2003-2008 Jasper Spaans