Package: autofs5
Version: 5.0.4-3.2
Severity: important

Autofs does not mount nfs4 shares as nfs4 with the supplied files in the autofs
package.
There is no indication in the man files that -hosts and auto.net only mount as
nfs3 (or lower).

auto.net has a misleading lines with nfs4 as part of the options.
This line does not work as the shares are parsed with the nfs4 root included in
the paths.
If the line with just nfs is used, and if the client machine has rpc.statd
running, the shares are mounted as nfs3 which can have interesting side effects
with file ownership.

The script supplied in bug #533893 works.

/var/log/daemon.log from autofs restart, after ls /net/nede
auto.net with nfs4 line active.

Oct 25 20:26:52 hooch automount[3583]: Starting automounter version 5.0.4,
master map /etc/auto.master
Oct 25 20:26:52 hooch automount[3583]: using kernel protocol version 5.01
Oct 25 20:26:52 hooch automount[3583]: lookup_nss_read_master: reading master
file /etc/auto.master
Oct 25 20:26:52 hooch automount[3583]: parse_init: parse(sun): init gathered
global options: (null)
Oct 25 20:26:52 hooch automount[3583]: lookup_read_master: lookup(file): read
entry /net
Oct 25 20:26:52 hooch automount[3583]: master_do_mount: mounting /net
Oct 25 20:26:52 hooch automount[3583]: automount_path_to_fifo: fifo name
/var/run/autofs.fifo-net
Oct 25 20:26:52 hooch automount[3583]: lookup_nss_read_map: reading map file
/etc/auto.net
Oct 25 20:26:52 hooch automount[3583]: parse_init: parse(sun): init gathered
global options: (null)
Oct 25 20:26:52 hooch automount[3583]: mounted indirect on /net with timeout
300, freq 75 seconds
Oct 25 20:26:52 hooch automount[3583]: st_ready: st_ready(): state = 0 path
/net
Oct 25 20:26:52 hooch automount[3583]: ghosting enabled
Oct 25 20:26:59 hooch automount[3583]: handle_packet: type = 3
Oct 25 20:26:59 hooch automount[3583]: handle_packet_missing_indirect: token
20, name nede, request pid 3591
Oct 25 20:26:59 hooch automount[3583]: attempting to mount entry /net/nede
Oct 25 20:26:59 hooch automount[3583]: lookup_mount: lookup(program): looking
up nede
Oct 25 20:26:59 hooch automount[3583]: lookup_mount: lookup(program): nede ->
-fstype=nfs4,hard,intr,nodev,nosuid,async  #011/nfs4 nede:/nfs4  #011/nfs4/home
nede:/nfs4/home  #011/nfs4/mirror nede:/nfs4/mirror
Oct 25 20:26:59 hooch automount[3583]: parse_mount: parse(sun): expanded entry:
-fstype=nfs4,hard,intr,nodev,nosuid,async  #011/nfs4 nede:/nfs4  #011/nfs4/home
nede:/nfs4/home  #011/nfs4/mirror nede:/nfs4/mirror
Oct 25 20:26:59 hooch automount[3583]: parse_mount: parse(sun): gathered
options: fstype=nfs4,hard,intr,nodev,nosuid,async
Oct 25 20:26:59 hooch automount[3583]: parse_mount: parse(sun):
dequote("/nfs4") -> /nfs4
Oct 25 20:26:59 hooch automount[3583]: parse_mapent: parse(sun): gathered
options: fstype=nfs4,hard,intr,nodev,nosuid,async
Oct 25 20:26:59 hooch automount[3583]: parse_mapent: parse(sun):
dequote("nede:/nfs4") -> nede:/nfs4
Oct 25 20:26:59 hooch automount[3583]: add_offset_entry: parse(sun): added
multi-mount offset /nfs4 -> -fstype=nfs4,hard,intr,nodev,nosuid,async
nede:/nfs4
Oct 25 20:26:59 hooch automount[3583]: parse_mount: parse(sun):
dequote("/nfs4/home") -> /nfs4/home
Oct 25 20:26:59 hooch automount[3583]: parse_mapent: parse(sun): gathered
options: fstype=nfs4,hard,intr,nodev,nosuid,async
Oct 25 20:26:59 hooch automount[3583]: parse_mapent: parse(sun):
dequote("nede:/nfs4/home") -> nede:/nfs4/home
Oct 25 20:26:59 hooch automount[3583]: add_offset_entry: parse(sun): added
multi-mount offset /nfs4/home -> -fstype=nfs4,hard,intr,nodev,nosuid,async
nede:/nfs4/home
Oct 25 20:26:59 hooch automount[3583]: parse_mount: parse(sun):
dequote("/nfs4/mirror") -> /nfs4/mirror
Oct 25 20:26:59 hooch automount[3583]: parse_mapent: parse(sun): gathered
options: fstype=nfs4,hard,intr,nodev,nosuid,async
Oct 25 20:26:59 hooch automount[3583]: parse_mapent: parse(sun):
dequote("nede:/nfs4/mirror") -> nede:/nfs4/mirror
Oct 25 20:26:59 hooch automount[3583]: add_offset_entry: parse(sun): added
multi-mount offset /nfs4/mirror -> -fstype=nfs4,hard,intr,nodev,nosuid,async
nede:/nfs4/mirror
Oct 25 20:26:59 hooch automount[3583]: mount_multi_triggers: mount offset
/net/nede/nfs4 at /net/nede
Oct 25 20:26:59 hooch automount[3583]: mount_autofs_offset: calling mount -t
autofs -s  -o fd=7,pgrp=3583,minproto=5,maxproto=5,offset automount
/net/nede/nfs4
Oct 25 20:26:59 hooch automount[3583]: mounted offset on /net/nede/nfs4 with
timeout 300, freq 75 seconds
Oct 25 20:26:59 hooch automount[3583]: mount_autofs_offset: mounted trigger
/net/nede/nfs4 at /net/nede/nfs4
Oct 25 20:26:59 hooch automount[3583]: dev_ioctl_send_ready: token = 20
Oct 25 20:26:59 hooch automount[3583]: mounted /net/nede
root@hooch:~#

The share root has not been stripped from the share paths.

server: nede, Lenny with backports 2.6.32 kernel.
client; hooch, squeeze

Suggest that the nfs4 line be removed from auto.net and a auto.nfs4 file
included in the package.



-- System Information:
Debian Release: 6.0.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages autofs5 depends on:
ii  libc6                        2.11.2-10   Embedded GNU C Library: Shared lib
ii  ucf                          3.0025+nmu1 Update Configuration File: preserv

Versions of packages autofs5 recommends:
ii  module-init-tools             3.12-1     tools for managing Linux kernel mo
ii  nfs-common                    1:1.2.2-4  NFS support files common to client

autofs5 suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to