From owner-freebsd-current Thu Nov 21 5: 8:36 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D515D37B401 for ; Thu, 21 Nov 2002 05:08:33 -0800 (PST) Received: from MX4.estpak.ee (ld3.estpak.ee [194.126.101.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EE7C43E91 for ; Thu, 21 Nov 2002 05:08:33 -0800 (PST) (envelope-from kalts@estpak.ee) Received: from tiiu.internal (80-235-40-232-dsl.mus.estpak.ee [80.235.40.232]) by MX4.estpak.ee (Postfix) with ESMTP id B944C1D0269 for ; Thu, 21 Nov 2002 15:08:31 +0200 (EET) Received: from tiiu.internal (localhost [127.0.0.1]) by tiiu.internal (8.12.6/8.12.6) with ESMTP id gALD8Vw6002055 for ; Thu, 21 Nov 2002 15:08:31 +0200 (EET) (envelope-from vallo@tiiu.internal) Received: (from vallo@localhost) by tiiu.internal (8.12.6/8.12.6/Submit) id gALD8Uql002054 for freebsd-current@freebsd.org; Thu, 21 Nov 2002 15:08:30 +0200 (EET) (envelope-from vallo) Date: Thu, 21 Nov 2002 15:08:30 +0200 From: Vallo Kallaste To: freebsd-current@freebsd.org Subject: smbfs problems Message-ID: <20021121130830.GB1907@tiiu.internal> Reply-To: kalts@estpak.ee Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.1i-ja.1 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Some info about failures I see: root:vallo# kldstat Id Refs Address Size Name 1 3 0xc0100000 3be9e0 kernel 2 1 0xc04bf000 480d4 acpi.ko root:vallo# smbutil view //vallo@poweredge smbutil: smb_lib_init: can't find kernel module It means kernel module will not be loaded upon first use of smbfs. This can and can not be considered as bug. root:vallo# cd /boot/kernel root:vallo# kldload smbfs.ko root:vallo# kldstat Id Refs Address Size Name 1 8 0xc0100000 3be9e0 kernel 2 1 0xc04bf000 480d4 acpi.ko 3 1 0xc17dc000 20000 smbfs.ko root:vallo# smbutil view //vallo@poweredge Password: Share Type Comment ------------------------------- IPC$ pipe Remote IPC work disk tools disk users disk private disk test disk Now the writing part: After creating 5MB file using /dev/urandom, I'm trying to copy it over to users/vallo smb share mounted at /mnt, which fails. The copy is interruptible using Ctrl-C. Examination at NT4 server shows 0 byte file. Umount of /mnt fails with device busy. Umount -f /mnt fails to return prompt, but after interrupting the smbfs is unmounted. There is no kernel messages or something in syslog. The copy operation returns failure ~3 seconds after start. root:vallo# mount /dev/ad0s1a on / (ufs, local, soft-updates) devfs on /dev (devfs, local) /dev/ad0s1d on /usr (ufs, NFS exported, local, soft-updates) procfs on /proc (procfs, local) myhakas:/opt/src-current/src on /usr/src (nfs) myhakas:/opt/src-current/ports on /usr/ports (nfs, read-only) //VALLO@POWEREDGE/USERS on /mnt (smbfs) root:vallo# cd /home/vallo/ root:vallo# dd if=/dev/urandom of=testfile bs=1m count=5 5+0 records in 5+0 records out 5242880 bytes transferred in 0.518492 secs (10111784 bytes/sec) root:vallo# cp testfile /mnt/vallo/ cp: /mnt/vallo/testfile: Operation timed out ^C root:vallo# root:vallo# ls -la /mnt/vallo ^C root:vallo# root:vallo# umount /mnt umount: unmount of /mnt failed: Device busy root:vallo# umount -f /mnt ^C root:vallo# mount /dev/ad0s1a on / (ufs, local, soft-updates) devfs on /dev (devfs, local) /dev/ad0s1d on /usr (ufs, NFS exported, local, soft-updates) procfs on /proc (procfs, local) myhakas:/opt/src-current/src on /usr/src (nfs) myhakas:/opt/src-current/ports on /usr/ports (nfs, read-only) root:vallo# -- Vallo Kallaste kalts@estpak.ee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message