* Loopback mounting seems to fail
@ 2010-06-08 12:59 Jan Engelhardt
2010-06-08 14:45 ` Matthias König
2010-06-08 15:48 ` Ian Kent
0 siblings, 2 replies; 4+ messages in thread
From: Jan Engelhardt @ 2010-06-08 12:59 UTC (permalink / raw)
To: autofs
Hi,
I have here an openSUSE 11.2 with 2.6.33.5 and autofs-5.0.4-6.2.1.x86_64
/etc/auto.master:
+auto.master
/- auto.direct
/etc/auto.direct:
/data/repository/sles11/x64/dvd1 -fstype=iso9660,loop,ro /data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso
<and other mounts>
Now, when I try to cd into that directory, autofs tells me:
# /usr/sbin/automount -p /var/run/automount.pid -d -f &
[1] 26412
Starting automounter version 5.0.4, master map auto.master
using kernel protocol version 5.01
lookup_nss_read_master: reading master files auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry +auto.master
lookup_nss_read_master: reading master files auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup_nss_read_master: reading master nis auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup(yp): read of master map auto.master failed: Request arguments bad
lookup(file): failed to read included master map auto.master
lookup_read_master: lookup(file): read entry /-
master_do_mount: mounting /-
automount_path_to_fifo: fifo name /var/run/autofs.fifo--
lookup_nss_read_map: reading map files auto.direct
parse_init: parse(sun): init gathered global options: (null)
lookup_nss_read_map: reading map nis auto.direct
parse_init: parse(sun): init gathered global options: (null)
lookup(yp): read of map /- failed: Request arguments bad
mounted direct on /data/repository/sles11/x86/sdk1 with timeout 600, freq 150 seconds
do_mount_autofs_direct: mounted trigger /data/repository/sles11/x86/sdk1
mounted direct on /data/repository/sles11/x64/sdk2 with timeout 600, freq 150 seconds
do_mount_autofs_direct: mounted trigger /data/repository/sles11/x64/sdk2
mounted direct on /F with timeout 600, freq 150 seconds
do_mount_autofs_direct: mounted trigger /F
mounted direct on /data/repository/sles11/x64/dvd2 with timeout 600, freq 150 seconds
do_mount_autofs_direct: mounted trigger /data/repository/sles11/x64/dvd2
mounted direct on /data/repository/sles11/x64/dvd1 with timeout 600, freq 150 seconds
do_mount_autofs_direct: mounted trigger /data/repository/sles11/x64/dvd1
mounted direct on /data/repository/sles11/x86/dvd2 with timeout 600, freq 150 seconds
do_mount_autofs_direct: mounted trigger /data/repository/sles11/x86/dvd2
mounted direct on /data/repository/sles11/x64/sdk1 with timeout 600, freq 150 seconds
do_mount_autofs_direct: mounted trigger /data/repository/sles11/x64/sdk1
mounted direct on /data/repository/sles11/x86/sdk2 with timeout 600, freq 150 seconds
do_mount_autofs_direct: mounted trigger /data/repository/sles11/x86/sdk2
mounted direct on /data/repository/sles11/x86/dvd1 with timeout 600, freq 150 seconds
do_mount_autofs_direct: mounted trigger /data/repository/sles11/x86/dvd1
st_ready: st_ready(): state = 0 path /-
# ls -l /data/repository/sles11/x64/dvd1
handle_packet: type = 5
handle_packet_missing_direct: token 157, name /data/repository/sles11/x64/dvd1, request pid 26425
attempting to mount entry /data/repository/sles11/x64/dvd1
lookup_mount: lookup(file): looking up /data/repository/sles11/x64/dvd1
lookup_mount: lookup(file): /data/repository/sles11/x64/dvd1 -> -fstype=iso9660,loop,ro /data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso
parse_mount: parse(sun): expanded entry: -fstype=iso9660,loop,ro /data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso
parse_mount: parse(sun): gathered options: fstype=iso9660,loop,ro
parse_mount: parse(sun): dequote("/data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso") -> /data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso
parse_mapent: parse(sun): gathered options: fstype=iso9660,loop,ro
parse(sun): invalid location
lookup_mount: lookup(yp): looking up /data/repository/sles11/x64/dvd1
ioctl_send_fail: token = 157
failed to mount /data/repository/sles11/x64/dvd1
ls: cannot open directory /data/repository/sles11/x64/dvd1: No such file or directory
Why is that, or did I miss something?
thanks,
Jan
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Loopback mounting seems to fail
2010-06-08 12:59 Loopback mounting seems to fail Jan Engelhardt
@ 2010-06-08 14:45 ` Matthias König
2010-06-08 15:48 ` Ian Kent
1 sibling, 0 replies; 4+ messages in thread
From: Matthias König @ 2010-06-08 14:45 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: autofs
Hi Jan,
Jan Engelhardt <jengelh@medozas.de> wrote:
> I have here an openSUSE 11.2 with 2.6.33.5 and autofs-5.0.4-6.2.1.x86_64
>
> /etc/auto.master:
> +auto.master
> /- auto.direct
>
> /etc/auto.direct:
> /data/repository/sles11/x64/dvd1 -fstype=iso9660,loop,ro /data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso
> <and other mounts>
>
Did you try (note the colon before the path to the file to be loop mounted)?
/etc/auto.master:
/data/repository/sles11/x64/dvd1 -fstype=iso9660,loop,ro :/data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso
Matthias
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Loopback mounting seems to fail
2010-06-08 12:59 Loopback mounting seems to fail Jan Engelhardt
2010-06-08 14:45 ` Matthias König
@ 2010-06-08 15:48 ` Ian Kent
2010-06-08 19:03 ` Jan Engelhardt
1 sibling, 1 reply; 4+ messages in thread
From: Ian Kent @ 2010-06-08 15:48 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: autofs
On Tue, 2010-06-08 at 14:59 +0200, Jan Engelhardt wrote:
> Hi,
>
>
> I have here an openSUSE 11.2 with 2.6.33.5 and autofs-5.0.4-6.2.1.x86_64
>
> /etc/auto.master:
> +auto.master
> /- auto.direct
>
> /etc/auto.direct:
> /data/repository/sles11/x64/dvd1 -fstype=iso9660,loop,ro /data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso
This is an invalid entry.
A mount location can't start with "/", you need to use a ":" escape in
this case.
/data/repository/sles11/x64/dvd1 -fstype=iso9660,loop,ro :/data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Loopback mounting seems to fail
2010-06-08 15:48 ` Ian Kent
@ 2010-06-08 19:03 ` Jan Engelhardt
0 siblings, 0 replies; 4+ messages in thread
From: Jan Engelhardt @ 2010-06-08 19:03 UTC (permalink / raw)
To: Ian Kent; +Cc: autofs
On Tuesday 2010-06-08 17:48, Ian Kent wrote:
>On Tue, 2010-06-08 at 14:59 +0200, Jan Engelhardt wrote:
>>
>> I have here an openSUSE 11.2 with 2.6.33.5 and autofs-5.0.4-6.2.1.x86_64
>>
>> /etc/auto.master:
>> +auto.master
>> /- auto.direct
>>
>> /etc/auto.direct:
>> /data/repository/sles11/x64/dvd1 -fstype=iso9660,loop,ro /data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso
>
>This is an invalid entry.
>A mount location can't start with "/", you need to use a ":" escape in
>this case.
>
>/data/repository/sles11/x64/dvd1 -fstype=iso9660,loop,ro :/data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso
I thought I've done this before, but apparently only now it succeeded.
Ah I figure. If fstype=iso9660 is omitted, it starts to fail again:
# cd /data/repository/sles11/x64/dvd1
handle_packet: type = 5
handle_packet_missing_direct: token 179, name /data/repository/sles11/x64/dvd1, request pid 13790
attempting to mount entry /data/repository/sles11/x64/dvd1
lookup_mount: lookup(file): looking up /data/repository/sles11/x64/dvd1
lookup_mount: lookup(file): /data/repository/sles11/x64/dvd1 -> -loop,ro :/data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso
parse_mount: parse(sun): expanded entry: -loop,ro :/data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso
parse_mount: parse(sun): gathered options: loop,ro
parse_mount: parse(sun): dequote(":/data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso") -> :/data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso
parse_mount: parse(sun): core of entry: options=loop,ro, loc=:/data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso
sun_mount: parse(sun): mounting root /data/repository/sles11/x64/dvd1, mountpoint /data/repository/sles11/x64/dvd1, what :/data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso, fstype nfs, options loop,ro
mount_mount: mount(nfs): root=/data/repository/sles11/x64/dvd1 name=/data/repository/sles11/x64/dvd1 what=:/data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso, fstype=nfs, options=loop,ro
mount_mount: mount(nfs): nfs options="loop,ro", nosymlink=0, ro=1
mount_mount: mount(nfs): calling mkdir_path /data/repository/sles11/x64/dvd1
mount_mount: mount(nfs): /data/repository/sles11/x64/dvd1 is local, attempt bind mount
mount_mount: mount(bind): calling mkdir_path /data/repository/sles11/x64/dvd1
mount_mount: mount(bind): calling mount --bind -s -o ro /data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso /data/repository/sles11/x64/dvd1
>> mount: Not a directory
mount(nfs): nfs: mount failure :/data/iso/lin/os/sles/11/SLES-11-DVD-x86_64-GM-DVD1.iso on /data/repository/sles11/x64/dvd1
lookup_mount: lookup(yp): looking up /data/repository/sles11/x64/dvd1
ioctl_send_fail: token = 179
failed to mount /data/repository/sles11/x64/dvd1
handle_packet: type = 5
handle_packet_missing_direct: token 180, name /data/repository/sles11/x64/dvd1, request pid 13790
attempting to mount entry /data/repository/sles11/x64/dvd1
lookup_mount: lookup(file): looking up /data/repository/sles11/x64/dvd1
lookup_mount: lookup(yp): looking up /data/repository/sles11/x64/dvd1
ioctl_send_fail: token = 180
failed to mount /data/repository/sles11/x64/dvd1
bash: cd: /data/repository/sles11/x64/dvd1: No such file or directory
This is a bit odd, given normal mount(8) can do it with the
implicit fstype=auto.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-06-08 19:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-08 12:59 Loopback mounting seems to fail Jan Engelhardt
2010-06-08 14:45 ` Matthias König
2010-06-08 15:48 ` Ian Kent
2010-06-08 19:03 ` Jan Engelhardt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.