linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Theodore Ts'o <tytso@mit.edu>
To: bugzilla-daemon@bugzilla.kernel.org
Cc: linux-ext4@vger.kernel.org, autofs@vger.kernel.org
Subject: Re: [Bug 53951] race condition on mounting local disks with autofs
Date: Wed, 5 Feb 2014 12:49:17 -0500	[thread overview]
Message-ID: <20140205174917.GH11667@thunk.org> (raw)
In-Reply-To: <bug-53951-13602-54xc3ri31k@https.bugzilla.kernel.org/>

On Wed, Feb 05, 2014 at 05:03:53PM +0000, bugzilla-daemon@bugzilla.kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=53951
> 
> --- Comment #1 from Harald Dunkel <harri@afaics.de> ---
> This problem is still in (using 3.12.8):
> 
> % find /misc/data6 | wc -l; find /misc/data6 | wc -l
> 17
> find: `/misc/data6/lost+found': Permission denied
> 341

Hi Harald,

There isn't an autofs bugzilla component, and it's unlikely that the
autofs folks are reading the ext4 mailing list.  Since this bug is
almost certainly an autofs problem, using bugzilla might not be the
best way to report the bug in a way that get the attention of the
right people.

I've cc'ed the autofs folks; hopefully they can help you out.

     	       	      	     	       - Ted


Original bug report, from https://bugzilla.kernel.org/show_bug.cgi?id=53951:

Harald Dunkel 2013-02-16 15:55:40 UTC

I am using autofs to mount a local disk to /misc/data6 on
request. Problem: It seems that the first access silently fails, if
the disk is not yet mounted.


Below is an example. Before running it I had umounted /misc/data6 and
restarted autofs.

% find /misc/data6 | wc -l; find /misc/data6 | wc -l
18
find: `/misc/data6/lost+found': Permission denied
358


As you can see, the first "find" sees just a subset of the directory
entries. The second "find" stumbles over lost+found (as expected) and
finds all entries.

Kernel is 3.7.7. There is no error message in kernel.log, only a line
to mention the mount:

EXT4-fs (sdd1): mounted filesystem with ordered data mode. Opts: (null)


/etc/auto.master:
/misc   /etc/auto.misc

/etc/auto.misc:
data1   -fstype=auto,noatime    :/dev/disk/by-label/data1
data2   -fstype=auto,noatime    :/dev/disk/by-label/data2
data3   -fstype=auto,noatime    :/dev/disk/by-label/data3
data4   -fstype=auto,noatime    :/dev/disk/by-label/data4
data5   -fstype=auto,noatime    :/dev/disk/by-label/data5
data6   -fstype=auto,noatime    :/dev/disk/by-label/data6
data7   -fstype=auto,noatime    :/dev/disk/by-label/data7
data8   -fstype=auto,noatime    :/dev/disk/by-label/data8


The problem is reproducible, as it seems. Please mail if I can help to track this down.

Regards
Harri

  reply	other threads:[~2014-02-05 17:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-16 15:55 [Bug 53951] New: race condition on mounting local disks with autofs bugzilla-daemon
2014-02-05 17:03 ` [Bug 53951] " bugzilla-daemon
2014-02-05 17:49   ` Theodore Ts'o [this message]
2014-02-06  0:18     ` Ian Kent
2014-02-05 17:49 ` bugzilla-daemon
2014-02-06  0:19 ` bugzilla-daemon
2014-02-07 17:58 ` bugzilla-daemon

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=20140205174917.GH11667@thunk.org \
    --to=tytso@mit.edu \
    --cc=autofs@vger.kernel.org \
    --cc=bugzilla-daemon@bugzilla.kernel.org \
    --cc=linux-ext4@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;
as well as URLs for NNTP newsgroup(s).