1
# idmapd - NFSv4 id <-> name mapper
3
# rpc.idmapd is the NFSv4 ID <-> name mapping daemon. It provides
4
# functionality to the NFSv4 kernel client and server, to which it
5
# communicates via upcalls, by translating user and group IDs to names, and
8
description "NFSv4 id <-> name mapper"
9
author "Steve Langasek <steve.langasek@canonical.com>"
11
start on local-filesystems
12
stop on unmounted-remote-filesystems
17
env PIPEFS_MOUNTPOINT=/run/rpc_pipefs
21
modprobe -q "$1" || true
29
if ! mountpoint -q "$PIPEFS_MOUNTPOINT"
31
mkdir -p "$PIPEFS_MOUNTPOINT"
32
mount -t rpc_pipefs rpc_pipefs "$PIPEFS_MOUNTPOINT" || true
39
if mountpoint -q "$PIPEFS_MOUNTPOINT"
41
# ignore any failures caused by the filesystem still
43
umount "$PIPEFS_MOUNTPOINT" || true