All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Kent <raven@themaw.net>
To: Leonardo Chiquitto <leonardo.lists@gmail.com>
Cc: autofs@linux.kernel.org
Subject: Re: AutoFS expire/timeout semantics
Date: Tue, 26 May 2009 21:42:55 +0800	[thread overview]
Message-ID: <4A1BF1DF.6020000@themaw.net> (raw)
In-Reply-To: <c2d0b6ec0905250608w159e5630xf77c470d192c09e4@mail.gmail.com>

Leonardo Chiquitto wrote:
> Hello,
> 
> I'm running some tests against AutoFS 5 and when I set a mount
> point with a short expire timeout (let's say 2 minutes), I'm observing
> the following behavior:
> 
> - Keeping an open file in the mount point will prevent it to expire.
>   This is expected, of course, as the file system is busy.
> - Setting a cron job to run "ls" or read some file from the mount point
>   won't prevent the file system to expire and be unmounted after
>   the 2 minutes timeout. This comes a bit as a surprise to me, as
>   I was expecting every access to files in the mount point to reset
>   the expire timeout.
> 
> Question is: what operations (if any) resets the expiration timeout?

It's not operations that cause the counter to be updated.
It isn't possible to update the counter based on specific operations.
It isn't possible to update the counter for all mount types based upon
access only, such as listing a directory.

The counter is updated during each expire check and is updated if the
file system covering (for direct or offset mounts), or within (indirect
mounts) the autofs file system has an elevated reference count. So, if
there are open files or process working directories, or a path lookup is
in progress at the time of the check, that is sufficient for the mount
to be considered busy and the counter updated.

Ian

  reply	other threads:[~2009-05-26 13:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-25 13:08 AutoFS expire/timeout semantics Leonardo Chiquitto
2009-05-26 13:42 ` Ian Kent [this message]
2009-05-26 14:20   ` Leonardo Chiquitto

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=4A1BF1DF.6020000@themaw.net \
    --to=raven@themaw.net \
    --cc=autofs@linux.kernel.org \
    --cc=leonardo.lists@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.