From: Jeff Moyer Subject: Re: How exactly does timeout work? Date: Mon, 09 Apr 2007 12:44:01 -0400 Message-ID: References: <1176133554.30046.175.camel@psmithub> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: (Jeff Moyer's message of "Mon, 09 Apr 2007 12:14:18 -0400") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: psmith@netezza.com Cc: autofs@linux.kernel.org ==> On Mon, 09 Apr 2007 12:14:18 -0400, Jeff Moyer said: ==> On Mon, 09 Apr 2007 11:45:54 -0400, Paul Smith said: Jeff> Paul> I've looked around but I couldn't find an answer to this Jeff> Paul> question. There are a lot of offhand comments saying the Jeff> Paul> filesystem will be unmounted after timeout seconds, but Jeff> that's Paul> not very precise. Jeff> Paul> If, for example, I set --timeout=60, does that mean the FS Jeff> will Paul> unmount 60 seconds after it was last accessed? Jeff> Paul> Or, does it mean that every 60 seconds automount will wake Jeff> up Paul> and see if anyone is using the filesystem, and if not Jeff> unmount Paul> it? Jeff> If you set the timeout to 60 seconds, the automount daemon will Jeff> wake up approximately every 15 seconds (4 times per timeout, see Jeff> CHECK_RATIO in the daemon) and ask the kernel if it is okay to Jeff> expire the mount. I guess I should further qualify this. Asking the kernel means issuing an ioctl. The kernel then checks the access time for the mount point and, if it is > timeout seconds ago, it will try to expire the mount (by calling out to the daemon). -Jeff