mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ian Kent <raven@themaw.net>
To: Patrick Goetz <pgoetz@math.utexas.edu>,
	autofs mailing list <autofs@vger.kernel.org>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>,
	Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [ANNOUNCE] autofs 5.1.4 release
Date: Tue, 19 Dec 2017 18:41:10 +0800	[thread overview]
Message-ID: <d4f7b298-a858-9f92-4f9a-48ea56e953bb@themaw.net> (raw)
In-Reply-To: <46356f65-d8ad-1ccf-c58a-46ea1ae819ff@math.utexas.edu>

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

      reply	other threads:[~2017-12-19 10:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-19  8:29 Ian Kent
2017-12-19  9:45 ` Patrick Goetz
2017-12-19 10:41   ` Ian Kent [this message]

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=d4f7b298-a858-9f92-4f9a-48ea56e953bb@themaw.net \
    --to=raven@themaw.net \
    --cc=autofs@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pgoetz@math.utexas.edu \
    /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

all inboxes | Powered by JetHome®