Your message dated Wed, 28 Dec 2011 00:07:43 +0000
with message-id <[email protected]>
and subject line Bug#653172: Removed package(s) from unstable
has caused the Debian Bug report #182832,
regarding [SMB] autofs can\'t unmount SMB shares of drives with no media in them
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
182832: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=182832
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: autofs
Version: 3.9.99-4.0.0pre10-13
Severity: normal
I have written a /etc/auto.smbfs (same function as auto.net but for samba
shares). It works, but I have found some problems with automounter.
Using smbclient with a win2k share (//cool.zg/cd) I get:
NT_STATUS_NO_MEDIA_IN_DEVICE listing \*
Of course, this is shared CD drive with no medium in it.
But when I use 'smbmount //cool.zg/cd /mnt' I will get
'Input/output error' trying to read '/mnt' directory.
When automounter uses 'mount -t smbfs ...' to mount that share, when expiring
that mount after a specified timeout, I get this:
Feb 28 09:57:15 max automount[7825]: running expiration on path
/net/smbfs/cool.zg
Feb 28 09:57:15 max kernel: smb_errno: class ERRDOS, code 21 from command 0x32
Feb 28 09:57:16 max last message repeated 5 times
Feb 28 09:57:16 max automount[7825]: expired /net/smbfs/cool.zg
Feb 28 09:57:16 max kernel: smb_errno: class ERRDOS, code 21 from command 0x32
Now, it has unsmbmounted all shared mounts under /net/smbfs/cool.zg EXCEPT
those that return 'Input/output error'. This is because if I manually use:
# smbumount /net/smbfs/cool.zg/cd
Could not open /net/smbfs/cool.zg/cd: Input/output error
But this works:
umount -t smbfs /net/smbfs/cool.zg/cd
So, smbumount cannot umount such shares?
If I use:
kill -USR1 `pgrep automount`
automounter will rapidly fill the logs with:
Feb 28 10:04:40 max automount[7861]: running expiration on path
/net/smbfs/cool.zg
Feb 28 10:04:40 max kernel: smb_errno: class ERRDOS, code 21 from command 0x32
Feb 28 10:04:40 max last message repeated 3 times
Feb 28 10:04:40 max automount[7861]: expired /net/smbfs/cool.zg
Feb 28 10:04:40 max automount[7862]: running expiration on path
/net/smbfs/cool.zg
Feb 28 10:04:40 max kernel: smb_errno: class ERRDOS, code 21 from command 0x32
Feb 28 10:04:40 max last message repeated 3 times
If I don't kill it, it will soon fill my logs.
I know, this is probably smbfs issue, but is there a workaround. At least,
autofs should fail, after 3 or so unsuccesful mounts ?
Question #2:
As I stated, I have a small script that lists samba shares and allows
automounter to mount them. What I would like is ability to type:
cd /net/smbfs/hostname/share
and to only mount THAT share. But, anything after a hostname is assumed to be a
path component. So I tweaked it to accept this:
cd /net/smbfs/hostname+share
and it creates following:
/net/smbfs/hostname+share/share
:( Is there a way to control the name of directory autofs creates ?
Here is the script. You can add it to the package it you wish.
-------------------------
#!/usr/bin/awk -f
# written by Ivac
BEGIN {
SMB_PASSWORD="/path/to/.smbmountrc"
if (ARGC == 2) {
ARGC=1
}
ORS=""
if (ARGV[1] ~ /\+/) {
sub("\+", " ", ARGV[1])
split(ARGV[1], keys, " ")
hostname=keys[1]
pathname=keys[2]
} else {
hostname=ARGV[1]
pathname=""
}
SMB_CLIENT="/usr/bin/smbclient -L " hostname " -A " SMB_PASSWORD
opts="-fstype=smbfs,user,nodev,nosuid,nonstrict,credentials="
SMB_PASSWORD
print opts
while (SMB_CLIENT | getline) {
if (!pathname && $2 == "Disk" && $1 !~ /\$$/)
print " \\\n\t" "/" tolower($1), "//" hostname "/" $1
else if ($2 == "Disk" && $1 !~ /\$$/ && tolower($1) ==
tolower(pathname))
print " \\\n\t" "/" tolower(pathname), "//" hostname
"/" pathname
}
print "\n"
exit
}
-------------------------
-- System Information
Debian Release: 3.0
Kernel Version: Linux max 2.4.20 #1 Wed Feb 19 10:00:05 CET 2003 i686 unknown
Versions of the packages autofs depends on:
ii libc6 2.3.1-10 GNU C Library: Shared libraries and Timezone
ii procps 3.1.5-1 The /proc file system utilities
--- Begin /etc/auto.master (modified conffile)
/net/nfs /etc/auto.net
/net/smbfs /etc/auto.smbfs
--- End /etc/auto.master
--- End Message ---
--- Begin Message ---
Version: 4.1.4+debian-3+rm
Dear submitter,
as the package autofs has just been removed from the Debian archive
unstable we hereby close the associated bug reports. We are sorry
that we couldn't deal with your issue properly.
For details on the removal, please see http://bugs.debian.org/653172
The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.
This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].
Debian distribution maintenance software
pp.
Luca Falavigna (the ftpmaster behind the curtain)
--- End Message ---