Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761983AbdLSKmG (ORCPT ); Tue, 19 Dec 2017 05:42:06 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:42837 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761926AbdLSKlQ (ORCPT ); Tue, 19 Dec 2017 05:41:16 -0500 X-ME-Sender: Subject: Re: [ANNOUNCE] autofs 5.1.4 release To: Patrick Goetz , autofs mailing list , linux-fsdevel , Kernel Mailing List References: <6e84aeff-a175-10a0-315f-59912c5cc93b@themaw.net> <46356f65-d8ad-1ccf-c58a-46ea1ae819ff@math.utexas.edu> From: Ian Kent Message-ID: Date: Tue, 19 Dec 2017 18:41:10 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <46356f65-d8ad-1ccf-c58a-46ea1ae819ff@math.utexas.edu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1216 Lines: 29 On 19/12/17 17:45, Patrick Goetz wrote: > On 12/19/2017 02:29 AM, Ian Kent wrote: >> A new amd mount type has been added. The amd mount type "program" >> has been added which allows a user provided program to be given >> in a map entry that will be used for performing the mount and >> optionally another program to be used at umount. >> > > What's a use case for this? It was requested and it is one of the standard amd mount types that hadn't been implemented. If nothing else it makes a slightly more complete amd map format implementation. I've seen a case where someone used a script to customize a mount command to suit different environments, where the mount command needed to be slightly different for different platforms. Probably not so useful to autofs but am-utils can run on a number of different OSes so the amd maps used by autofs (ideally unchanged from other arches) need to be able to cope with this. There's also the case where a mount needs to use a custom command to perform the mount (and possibly the umount at expire). Long ago this was requested for Sun format maps but I'm still not in a position to implement that (and it isn't part of the defined Sun format map syntax either). Ian