NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/41281: cannot list files on a samba share
The following reply was made to PR kern/41281; it has been noted by GNATS.
From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost, hramrach%centrum.cz@localhost
Subject: Re: kern/41281: cannot list files on a samba share
Date: Sun, 26 Apr 2009 09:14:21 +0000
On Sun, Apr 26, 2009 at 08:35:02AM +0000, Michal Suchanek wrote:
> Attaching output.
>
> It seems that unlike / you cannot do
>
> cat /mnt
That's not surprising. In general you need to do readdir/getdents on
directories, not ordinary read().
Anyway, this appears to be the relevant part of the trace:
1046 1 ls CALL __stat30(0x80510cc,0xbfbfe844)
1046 1 ls NAMI "/placka/"
1046 1 ls RET __stat30 0
1046 1 ls CALL open(0xbbbce674,0,0)
1046 1 ls NAMI "."
1046 1 ls RET open 3
1046 1 ls CALL fcntl(3,2,1)
1046 1 ls RET fcntl 0
1046 1 ls CALL fchdir(3)
1046 1 ls RET fchdir 0
1046 1 ls CALL open(0x8050000,4,0)
1046 1 ls NAMI "/placka/"
1046 1 ls RET open -1 errno 22 Invalid argument
1046 1 ls CALL open(0x8050000,4,0x16)
1046 1 ls NAMI "/placka/"
1046 1 ls RET open -1 errno 22 Invalid argument
It looks as if it's calling open with O_NONBLOCK and smbfs doesn't
like that.
(I have no idea why it tries a second time passing 0x16 as the mode;
that's not remotely sensible. Maybe someone else reading this will
have an idea...)
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index