public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-kernel@vger.kernel.org
Subject: Re: PROBLEM: ext2/mount - multiple mounts corrupts inodes
Date: 30 Jan 2002 22:35:59 -0800	[thread overview]
Message-ID: <a3aokf$1l5$1@cesium.transmeta.com> (raw)
In-Reply-To: <B9F49C7F90DF6C4B82991BFA8E9D547B1256F4@BUFORD.littlefeet-inc.com> <20020130163730.N763@lynx.adilger.int>

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>

  parent reply	other threads:[~2002-01-31  6:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-30 23:07 PROBLEM: ext2/mount - multiple mounts corrupts inodes Kris Urquhart
2002-01-30 23:37 ` Andreas Dilger
2002-01-31  0:14   ` Alexander Viro
2002-01-31  6:35   ` H. Peter Anvin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-01-31  1:27 Kris Urquhart
2002-01-31  4:45 ` Andreas Dilger
2002-01-31  5:05 ` Alexander Viro
2002-01-31 17:28 Kris Urquhart
2002-01-31 21:57 ` Alexander Viro
2002-01-31 17:31 Kris Urquhart
2002-01-31 23:46 Kris Urquhart
2002-02-01  1:00 Ishan O. Jayawardena

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='a3aokf$1l5$1@cesium.transmeta.com' \
    --to=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox