autofs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Badics, Alex" <alex.badics@balabit.com>
To: autofs@vger.kernel.org
Subject: Autofs + shared mount namespaces
Date: Tue, 12 Sep 2017 15:17:43 +0200	[thread overview]
Message-ID: <CAJsjXgryH912APrqk3rzECB=MHKdDg_ROfa6mjTETKKBrW7mmg@mail.gmail.com> (raw)

Hi,

We've been trying out autofs with both systemd-automount and the
autofs userspace daemon, and it seems like it incorrectly marks a
mountpoint as "expired" even though it's still in use in a different
mount namespace. Am I doing something wrong? Are mount namespaces
supported by the autofs driver?

Reproduction:
/etc/autofs/auto.master:
/mnt/test   /etc/autofs/auto.test.nfs --timeout 10

/etc/autofs/auto.test.nfs:
test  -rw,soft,intr server.domain:/exports/nfs

On one tab, I start autofs:
# automount -f -v

On another, I unshare a namespace, and cd into the test directory:
# cd /mnt
# unshare -m --propagation shared
# cd test/test

And just wait. The mount correctly happens, but after 10 seconds, the
autofs daemon gets an expired message and tries to umount hte nfs
mount, and fails, because it's busy. It retries until I cd out of the
nfs directory, then it of course succeeds:

Starting automounter version 5.1.3, master map auto.master
using kernel protocol version 5.02
mounted indirect on /mnt/test with timeout 10, freq 3 seconds
attempting to mount entry /mnt/test/test
mounted /mnt/test/test
1 remaining in /mnt/test
1 remaining in /mnt/test
1 remaining in /mnt/test
expiring path /mnt/test/test
>> umount.nfs4: /mnt/test/test: device is busy
>> umount.nfs4: /mnt/test/test: device is busy
>> umount.nfs4: /mnt/test/test: device is busy
Unable to update the mtab file, /proc/mounts and /etc/mtab will differ
expired /mnt/test/test
1 remaining in /mnt/test
1 remaining in /mnt/test
1 remaining in /mnt/test
1 remaining in /mnt/test
expiring path /mnt/test/test
expired /mnt/test/test

Thanks,
Alex Badics
--
To unsubscribe from this list: send the line "unsubscribe autofs" in

             reply	other threads:[~2017-09-12 13:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-12 13:17 Badics, Alex [this message]
2017-09-14  0:51 ` Autofs + shared mount namespaces Ian Kent
2017-09-14  8:52   ` Badics, Alex
2017-09-14 10:57     ` Ian Kent

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='CAJsjXgryH912APrqk3rzECB=MHKdDg_ROfa6mjTETKKBrW7mmg@mail.gmail.com' \
    --to=alex.badics@balabit.com \
    --cc=autofs@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 read-only IMAP folder(s) and NNTP newsgroup(s).