2010-10-20 04:55:53 |
Tim White |
bug |
|
|
added bug |
2010-10-21 17:03:08 |
James Page |
autofs5 (Ubuntu): status |
New |
Incomplete |
|
2010-10-21 17:03:15 |
James Page |
bug |
|
|
added subscriber James Page |
2010-10-21 21:04:51 |
Tim White |
tags |
autofs automount nfs |
apport-collected autofs automount nfs |
|
2010-10-21 21:05:17 |
Tim White |
description |
Binary package hint: autofs5
Using the auto.net file to mount NFS mounts on the local network.
One of the machines (a NAS) has a number of similarly named exports with spaces in the name. autonfs appears to only see the name upto the first space.
The awk script in /etc/auto.net that parses the output of showmount doesn't consider that there may be spaces in the export name.
For example, the Network Recycle Bin's
$ showmount -e korby
Export list for korby:
/Qweb
/Qusb
/Qrecordings
/Qmultimedia
/Qdownload
/Public
/Photos
/Network Recycle Bin 4
/Network Recycle Bin 3
/Network Recycle Bin 1
/Media
/Documents
/DVD_rip
Turns into
$ /etc/auto.net korby
-fstype=nfs,hard,intr,nodev,nosuid \
/DVD_rip korby:/DVD_rip \
/Documents korby:/Documents \
/Media korby:/Media \
/Network korby:/Network \
/Network korby:/Network \
/Network korby:/Network \
/Photos korby:/Photos \
/Public korby:/Public \
/Qdownload korby:/Qdownload \
/Qmultimedia korby:/Qmultimedia \
/Qrecordings korby:/Qrecordings \
/Qusb korby:/Qusb \
/Qweb korby:/Qweb
This prevents autofs from mounting any of the korby shares as it finds a duplicate mount (let alone, the mount it thinks it's a duplicate of is invalid as well).
Oct 20 14:50:49 sara-linux automount[21712]: attempting to mount entry /net/korby
Oct 20 14:50:49 sara-linux automount[21712]: lookup_mount: lookup(program): looking up korby
Oct 20 14:50:49 sara-linux automount[21712]: lookup_mount: lookup(program): korby -> -fstype=nfs,hard,intr,nodev,nosuid #011/DVD_rip korby:/DVD_rip #011/Documents korby:/Documents #011/Media korby:/Media #011/Network korby:/Network #011/Network korby:/Network #011/Network korby:/Network #011/Photos korby:/Photos #011/Public korby:/Public #011/Qdownload korby:/Qdownload #011/Qmultimedia korby:/Qmultimedia #011/Qrecordings korby:/Qrecordings #011/Qusb korby:/Qusb #011/Qweb korby:/Qweb
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): expanded entry: -fstype=nfs,hard,intr,nodev,nosuid #011/DVD_rip korby:/DVD_rip #011/Documents korby:/Documents #011/Media korby:/Media #011/Network korby:/Network #011/Network korby:/Network #011/Network korby:/Network #011/Photos korby:/Photos #011/Public korby:/Public #011/Qdownload korby:/Qdownload #011/Qmultimedia korby:/Qmultimedia #011/Qrecordings korby:/Qrecordings #011/Qusb korby:/Qusb #011/Qweb korby:/Qweb
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/DVD_rip") -> /DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/DVD_rip") -> korby:/DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /DVD_rip -> -fstype=nfs,hard,intr,nodev,nosuid korby:/DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Documents") -> /Documents
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Documents") -> korby:/Documents
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /Documents -> -fstype=nfs,hard,intr,nodev,nosuid korby:/Documents
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Media") -> /Media
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Media") -> korby:/Media
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /Media -> -fstype=nfs,hard,intr,nodev,nosuid korby:/Media
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Network") -> /Network
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Network") -> korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /Network -> -fstype=nfs,hard,intr,nodev,nosuid korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Network") -> /Network
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Network") -> korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: parse(sun): syntax error or duplicate offset /Network -> korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: parse(sun): error adding multi-mount
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/Documents
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/Media
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/Network
Oct 20 14:50:49 sara-linux automount[21712]: dev_ioctl_send_fail: token = 55
Oct 20 14:50:49 sara-linux automount[21712]: failed to mount /net/korby
I will attempt to rewrite the awk to consider the spaces.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: autofs5 5.0.5-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Wed Oct 20 14:43:14 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
PATH=(custom, user)
LANG=en_AU.utf8
SHELL=/bin/bash
SourcePackage: autofs5 |
Binary package hint: autofs5
Using the auto.net file to mount NFS mounts on the local network.
One of the machines (a NAS) has a number of similarly named exports with spaces in the name. autonfs appears to only see the name upto the first space.
The awk script in /etc/auto.net that parses the output of showmount doesn't consider that there may be spaces in the export name.
For example, the Network Recycle Bin's
$ showmount -e korby
Export list for korby:
/Qweb
/Qusb
/Qrecordings
/Qmultimedia
/Qdownload
/Public
/Photos
/Network Recycle Bin 4
/Network Recycle Bin 3
/Network Recycle Bin 1
/Media
/Documents
/DVD_rip
Turns into
$ /etc/auto.net korby
-fstype=nfs,hard,intr,nodev,nosuid \
/DVD_rip korby:/DVD_rip \
/Documents korby:/Documents \
/Media korby:/Media \
/Network korby:/Network \
/Network korby:/Network \
/Network korby:/Network \
/Photos korby:/Photos \
/Public korby:/Public \
/Qdownload korby:/Qdownload \
/Qmultimedia korby:/Qmultimedia \
/Qrecordings korby:/Qrecordings \
/Qusb korby:/Qusb \
/Qweb korby:/Qweb
This prevents autofs from mounting any of the korby shares as it finds a duplicate mount (let alone, the mount it thinks it's a duplicate of is invalid as well).
Oct 20 14:50:49 sara-linux automount[21712]: attempting to mount entry /net/korby
Oct 20 14:50:49 sara-linux automount[21712]: lookup_mount: lookup(program): looking up korby
Oct 20 14:50:49 sara-linux automount[21712]: lookup_mount: lookup(program): korby -> -fstype=nfs,hard,intr,nodev,nosuid #011/DVD_rip korby:/DVD_rip #011/Documents korby:/Documents #011/Media korby:/Media #011/Network korby:/Network #011/Network korby:/Network #011/Network korby:/Network #011/Photos korby:/Photos #011/Public korby:/Public #011/Qdownload korby:/Qdownload #011/Qmultimedia korby:/Qmultimedia #011/Qrecordings korby:/Qrecordings #011/Qusb korby:/Qusb #011/Qweb korby:/Qweb
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): expanded entry: -fstype=nfs,hard,intr,nodev,nosuid #011/DVD_rip korby:/DVD_rip #011/Documents korby:/Documents #011/Media korby:/Media #011/Network korby:/Network #011/Network korby:/Network #011/Network korby:/Network #011/Photos korby:/Photos #011/Public korby:/Public #011/Qdownload korby:/Qdownload #011/Qmultimedia korby:/Qmultimedia #011/Qrecordings korby:/Qrecordings #011/Qusb korby:/Qusb #011/Qweb korby:/Qweb
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/DVD_rip") -> /DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/DVD_rip") -> korby:/DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /DVD_rip -> -fstype=nfs,hard,intr,nodev,nosuid korby:/DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Documents") -> /Documents
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Documents") -> korby:/Documents
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /Documents -> -fstype=nfs,hard,intr,nodev,nosuid korby:/Documents
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Media") -> /Media
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Media") -> korby:/Media
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /Media -> -fstype=nfs,hard,intr,nodev,nosuid korby:/Media
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Network") -> /Network
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Network") -> korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /Network -> -fstype=nfs,hard,intr,nodev,nosuid korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Network") -> /Network
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Network") -> korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: parse(sun): syntax error or duplicate offset /Network -> korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: parse(sun): error adding multi-mount
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/Documents
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/Media
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/Network
Oct 20 14:50:49 sara-linux automount[21712]: dev_ioctl_send_fail: token = 55
Oct 20 14:50:49 sara-linux automount[21712]: failed to mount /net/korby
I will attempt to rewrite the awk to consider the spaces.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: autofs5 5.0.5-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Wed Oct 20 14:43:14 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
PATH=(custom, user)
LANG=en_AU.utf8
SHELL=/bin/bash
SourcePackage: autofs5
---
Architecture: amd64
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelModules: nvidia
Package: autofs5 5.0.5-0ubuntu2
PackageArchitecture: amd64
ProcEnviron:
PATH=(custom, user)
LANG=en_AU.utf8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Tags: lucid
Uname: Linux 2.6.35-22-generic x86_64
UnreportableReason: This is not a genuine Ubuntu package
UserGroups: adm admin cdrom dialout lpadmin plugdev proxy sambashare
|
|
2010-10-21 21:05:19 |
Tim White |
attachment added |
|
Dependencies.txt https://bugs.edge.launchpad.net/bugs/663672/+attachment/1705668/+files/Dependencies.txt |
|
2010-10-21 22:05:28 |
Tim White |
attachment added |
|
auto.master https://bugs.launchpad.net/ubuntu/+source/autofs5/+bug/663672/+attachment/1705842/+files/auto.master |
|
2010-10-21 22:07:34 |
Tim White |
attachment added |
|
auto.net.original https://bugs.launchpad.net/ubuntu/+source/autofs5/+bug/663672/+attachment/1705843/+files/auto.net.original |
|
2010-10-22 08:12:31 |
James Page |
description |
Binary package hint: autofs5
Using the auto.net file to mount NFS mounts on the local network.
One of the machines (a NAS) has a number of similarly named exports with spaces in the name. autonfs appears to only see the name upto the first space.
The awk script in /etc/auto.net that parses the output of showmount doesn't consider that there may be spaces in the export name.
For example, the Network Recycle Bin's
$ showmount -e korby
Export list for korby:
/Qweb
/Qusb
/Qrecordings
/Qmultimedia
/Qdownload
/Public
/Photos
/Network Recycle Bin 4
/Network Recycle Bin 3
/Network Recycle Bin 1
/Media
/Documents
/DVD_rip
Turns into
$ /etc/auto.net korby
-fstype=nfs,hard,intr,nodev,nosuid \
/DVD_rip korby:/DVD_rip \
/Documents korby:/Documents \
/Media korby:/Media \
/Network korby:/Network \
/Network korby:/Network \
/Network korby:/Network \
/Photos korby:/Photos \
/Public korby:/Public \
/Qdownload korby:/Qdownload \
/Qmultimedia korby:/Qmultimedia \
/Qrecordings korby:/Qrecordings \
/Qusb korby:/Qusb \
/Qweb korby:/Qweb
This prevents autofs from mounting any of the korby shares as it finds a duplicate mount (let alone, the mount it thinks it's a duplicate of is invalid as well).
Oct 20 14:50:49 sara-linux automount[21712]: attempting to mount entry /net/korby
Oct 20 14:50:49 sara-linux automount[21712]: lookup_mount: lookup(program): looking up korby
Oct 20 14:50:49 sara-linux automount[21712]: lookup_mount: lookup(program): korby -> -fstype=nfs,hard,intr,nodev,nosuid #011/DVD_rip korby:/DVD_rip #011/Documents korby:/Documents #011/Media korby:/Media #011/Network korby:/Network #011/Network korby:/Network #011/Network korby:/Network #011/Photos korby:/Photos #011/Public korby:/Public #011/Qdownload korby:/Qdownload #011/Qmultimedia korby:/Qmultimedia #011/Qrecordings korby:/Qrecordings #011/Qusb korby:/Qusb #011/Qweb korby:/Qweb
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): expanded entry: -fstype=nfs,hard,intr,nodev,nosuid #011/DVD_rip korby:/DVD_rip #011/Documents korby:/Documents #011/Media korby:/Media #011/Network korby:/Network #011/Network korby:/Network #011/Network korby:/Network #011/Photos korby:/Photos #011/Public korby:/Public #011/Qdownload korby:/Qdownload #011/Qmultimedia korby:/Qmultimedia #011/Qrecordings korby:/Qrecordings #011/Qusb korby:/Qusb #011/Qweb korby:/Qweb
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/DVD_rip") -> /DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/DVD_rip") -> korby:/DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /DVD_rip -> -fstype=nfs,hard,intr,nodev,nosuid korby:/DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Documents") -> /Documents
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Documents") -> korby:/Documents
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /Documents -> -fstype=nfs,hard,intr,nodev,nosuid korby:/Documents
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Media") -> /Media
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Media") -> korby:/Media
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /Media -> -fstype=nfs,hard,intr,nodev,nosuid korby:/Media
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Network") -> /Network
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Network") -> korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /Network -> -fstype=nfs,hard,intr,nodev,nosuid korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Network") -> /Network
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Network") -> korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: parse(sun): syntax error or duplicate offset /Network -> korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: parse(sun): error adding multi-mount
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/Documents
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/Media
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/Network
Oct 20 14:50:49 sara-linux automount[21712]: dev_ioctl_send_fail: token = 55
Oct 20 14:50:49 sara-linux automount[21712]: failed to mount /net/korby
I will attempt to rewrite the awk to consider the spaces.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: autofs5 5.0.5-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Wed Oct 20 14:43:14 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
PATH=(custom, user)
LANG=en_AU.utf8
SHELL=/bin/bash
SourcePackage: autofs5
---
Architecture: amd64
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelModules: nvidia
Package: autofs5 5.0.5-0ubuntu2
PackageArchitecture: amd64
ProcEnviron:
PATH=(custom, user)
LANG=en_AU.utf8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Tags: lucid
Uname: Linux 2.6.35-22-generic x86_64
UnreportableReason: This is not a genuine Ubuntu package
UserGroups: adm admin cdrom dialout lpadmin plugdev proxy sambashare
|
Binary package hint: autofs5
Using the auto.net file to mount NFS mounts on the local network.
One of the machines (a NAS) has a number of similarly named exports with spaces in the name. autonfs appears to only see the name upto the first space.
The awk script in /etc/auto.net that parses the output of showmount doesn't consider that there may be spaces in the export name.
For example, the Network Recycle Bin's
$ showmount -e korby
Export list for korby:
/Qweb
/Qusb
/Qrecordings
/Qmultimedia
/Qdownload
/Public
/Photos
/Network Recycle Bin 4
/Network Recycle Bin 3
/Network Recycle Bin 1
/Media
/Documents
/DVD_rip
Turns into
$ /etc/auto.net korby
-fstype=nfs,hard,intr,nodev,nosuid \
/DVD_rip korby:/DVD_rip \
/Documents korby:/Documents \
/Media korby:/Media \
/Network korby:/Network \
/Network korby:/Network \
/Network korby:/Network \
/Photos korby:/Photos \
/Public korby:/Public \
/Qdownload korby:/Qdownload \
/Qmultimedia korby:/Qmultimedia \
/Qrecordings korby:/Qrecordings \
/Qusb korby:/Qusb \
/Qweb korby:/Qweb
This prevents autofs from mounting any of the korby shares as it finds a duplicate mount (let alone, the mount it thinks it's a duplicate of is invalid as well).
Oct 20 14:50:49 sara-linux automount[21712]: attempting to mount entry /net/korby
Oct 20 14:50:49 sara-linux automount[21712]: lookup_mount: lookup(program): looking up korby
Oct 20 14:50:49 sara-linux automount[21712]: lookup_mount: lookup(program): korby -> -fstype=nfs,hard,intr,nodev,nosuid #011/DVD_rip korby:/DVD_rip #011/Documents korby:/Documents #011/Media korby:/Media #011/Network korby:/Network #011/Network korby:/Network #011/Network korby:/Network #011/Photos korby:/Photos #011/Public korby:/Public #011/Qdownload korby:/Qdownload #011/Qmultimedia korby:/Qmultimedia #011/Qrecordings korby:/Qrecordings #011/Qusb korby:/Qusb #011/Qweb korby:/Qweb
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): expanded entry: -fstype=nfs,hard,intr,nodev,nosuid #011/DVD_rip korby:/DVD_rip #011/Documents korby:/Documents #011/Media korby:/Media #011/Network korby:/Network #011/Network korby:/Network #011/Network korby:/Network #011/Photos korby:/Photos #011/Public korby:/Public #011/Qdownload korby:/Qdownload #011/Qmultimedia korby:/Qmultimedia #011/Qrecordings korby:/Qrecordings #011/Qusb korby:/Qusb #011/Qweb korby:/Qweb
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/DVD_rip") -> /DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/DVD_rip") -> korby:/DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /DVD_rip -> -fstype=nfs,hard,intr,nodev,nosuid korby:/DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Documents") -> /Documents
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Documents") -> korby:/Documents
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /Documents -> -fstype=nfs,hard,intr,nodev,nosuid korby:/Documents
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Media") -> /Media
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Media") -> korby:/Media
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /Media -> -fstype=nfs,hard,intr,nodev,nosuid korby:/Media
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Network") -> /Network
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Network") -> korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: add_offset_entry: parse(sun): added multi-mount offset /Network -> -fstype=nfs,hard,intr,nodev,nosuid korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: parse_mount: parse(sun): dequote("/Network") -> /Network
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): gathered options: fstype=nfs,hard,intr,nodev,nosuid
Oct 20 14:50:49 sara-linux automount[21712]: parse_mapent: parse(sun): dequote("korby:/Network") -> korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: parse(sun): syntax error or duplicate offset /Network -> korby:/Network
Oct 20 14:50:49 sara-linux automount[21712]: parse(sun): error adding multi-mount
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/DVD_rip
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/Documents
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/Media
Oct 20 14:50:49 sara-linux automount[21712]: cache_delete_offset_list: deleting offset key /net/korby/Network
Oct 20 14:50:49 sara-linux automount[21712]: dev_ioctl_send_fail: token = 55
Oct 20 14:50:49 sara-linux automount[21712]: failed to mount /net/korby
I will attempt to rewrite the awk to consider the spaces.
ProblemType: BugDistroRelease: Ubuntu 10.04
Package: autofs5 5.0.5-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Wed Oct 20 14:43:14 2010InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
PATH=(custom, user)
LANG=en_AU.utf8
SHELL=/bin/bashSourcePackage: autofs5
---
Architecture: amd64DistroRelease: Ubuntu 10.04InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelModules: nvidia
Package: autofs5 5.0.5-0ubuntu2
PackageArchitecture: amd64
ProcEnviron:
PATH=(custom, user)
LANG=en_AU.utf8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4Tags: lucid
Uname: Linux 2.6.35-22-generic x86_64
UnreportableReason: This is not a genuine Ubuntu package
UserGroups: adm admin cdrom dialout lpadmin plugdev proxy sambashare
TEST CASE:
Setup a lucid NFS server with the following exports (and associated directories):
/home
"/space filename"
"/space filename2"
Note that "" is important as space is used as a de-limited in /etc/exports
showmount -e <server> from a Lucid client with autofs5 installed shows:
Export list for <server>:
/space filename2 *
/space filename *
/home *
Setup autofs5 with the following line in /etc/auto.master on the client
/net /etc/auto.net
restart autofs
cd /net/<server> fails with 'No such file or directory message'
Removing one of the exports with a space from the NFS server (and restarting autofs on the client) partially fixes the issue; however the "space filename" export is not mounted correctly and is inaccessible:
total 0
drwxr-xr-x 2 root root 0 2010-10-22 09:11 space
drwxr-xr-x 2 root root 0 2010-10-22 09:11 home
|
|
2010-10-22 08:12:37 |
James Page |
autofs5 (Ubuntu): status |
Incomplete |
Confirmed |
|
2010-10-22 08:13:26 |
James Page |
autofs5 (Ubuntu): importance |
Undecided |
Medium |
|
2010-10-22 08:13:26 |
James Page |
autofs5 (Ubuntu): status |
Confirmed |
Triaged |
|
2011-03-10 19:51:51 |
Chuck Short |
autofs5 (Ubuntu): status |
Triaged |
In Progress |
|
2011-09-19 21:36:18 |
Ubuntu Foundations Team Bug Bot |
tags |
apport-collected autofs automount nfs |
apport-collected autofs automount nfs testcase |
|
2012-03-10 00:42:50 |
Clint Byrum |
autofs5 (Ubuntu): status |
In Progress |
Triaged |
|