I'm trying to automate some work on an NT box.
Actually, the code is running on Linux and
I'm trying to smb mount the NT Win2K dir.
Which has a LOT file files and directories,
and then returns NO file when accessed, ie:
ls -l /mnt/monti/maildat/
total 0
dmesg shows this:
smb_proc_readdir_long: name=, result=-2, rcls=1, err=123
Googling tells me I'm SOL. I wanted to try the most
recent Samba to see if it fixed it, so I DLed and
installed via:
./configure \\
--with-smbwrapper \\
--with-smbmount \\
--with-automount \\
--with-quotas \\
--with-acl-support \\
--with-winbind \\
--with-msdfs \\
--with-syslog \\
--with-utmp \\
--with-ads 2>&1 | tee config.log
This installed in /usr/local/samba tree.
I then went to the /usr/local/samba/bin dir to execute the
./smbmount command. I know it's using the local one since
it looked to the local smb.conf file.
BUT: Since this is interacting with the internal kernal
mount stuff, I'm not sure (from a driver level) what is
actually being used.
This failed as well, same message.
lsmod shows me running:
smbfs 43680 1 (autoclean)
I assume this would mean:
-rw-r--r-- 1 root root 55794
Sep 4 2002 /lib/modules/2.4.18-14/kernel/fs/smbfs/smbfs.o
Ahh, this would mean I need to drop in the newer smbfs portion
and recompile the kernel? Yick. I haven't done that in years.
I was hoping to never do it again.
Here's the current kernel:
[broom@rd broom]$ uname -a
Linux rd.cc3.com 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002
i686 i686 i386 GNU/Linux
But smbfs is not found in my downloaded recent stuff, other
than:
[root@rd samba-3.0.4]# find . -name "*smbfs*"
./packaging/Debian/debian/smbfs.files
[root@rd samba-3.0.4]# cat ./packaging/Debian/debian/smbfs.files
sbin/mount.smbfs
sbin/mount.smb
usr/bin/smbmount
usr/bin/smbumount
usr/bin/smbmnt
usr/share/man/man8/smbmount.8
usr/share/man/man8/smbumount.8
usr/share/man/man8/smbmnt.8
usr/share/man/man8/mount.smb.8
usr/share/man/man8/mount.smbfs.8
So this feels like the kernel driver is a standard interface
that should not need replacing, which means I need to just
make sure I am using the right mount program? ie:
sbin/mount.smbfs, which is really a link, ie:
/sbin/mount.smbfs -> /usr/local/samba/bin/smbmount
Which in this case IS my recent one, ie:
-rwxr-xr-x 1 root root 678396 Jun 6 16:26
/usr/local/samba/bin/smbmount
This has not fixed the problem, which means it either
is not on the Samba side or it is unfixable because
M$ wants it to be unfixable.
Other than cut down the number of files in the directory,
anybody got any hints? Did I missed anything during this
troubleshooting process?
Note: smbclient DOES work, but it will be 10 times as much
work to automate via it rather than straight filesystem code.