From owner-freebsd-current@FreeBSD.ORG Sat May 5 20:59:00 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 638BE16A404 for ; Sat, 5 May 2007 20:59:00 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by mx1.freebsd.org (Postfix) with ESMTP id 2184313C465 for ; Sat, 5 May 2007 20:59:00 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by an-out-0708.google.com with SMTP id d23so30649and for ; Sat, 05 May 2007 13:58:59 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KZY92wGXIERBHYRh4uHhOzl8QunSDJ1dnevnp+Rvhesqnq4U750zlZ2OwcO4upalUGpWAb4a0CIuc4zTHnrzb7c7ntZHWOIjmqKkNwAdvbB89nVFYZsIUh0BAukDerNgBJWvozJCGkkrRSKDq8KlNjUPuUN0xx1VeMEqi7QY8LQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=snD51RMxBu94V39Hl0EOwU+cIdR4pCSMr7Sn4SHrA8l3J6a/SKMW4TpMRZ+paOzSJ0XeHpPnvdNNeRZj/bAsQfQSZ5P+MTOWrJIQXy0qOmi5Bmxa3rkHbzvl/jTEzzTRqiwui0mE2GcXD9n/A86NSxPpbGJQOurmpQ1lmEI/7hE= Received: by 10.100.191.5 with SMTP id o5mr3711128anf.1178398739306; Sat, 05 May 2007 13:58:59 -0700 (PDT) Received: by 10.100.9.7 with HTTP; Sat, 5 May 2007 13:58:59 -0700 (PDT) Message-ID: Date: Sun, 6 May 2007 00:58:59 +0400 From: pluknet To: freebsd-current@freebsd.org In-Reply-To: <786667891.20070505225754@masm.elcom.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070429171949.GT2441@deviant.kiev.zoral.com.ua> <786667891.20070505225754@masm.elcom.ru> Cc: freebsd@masm.elcom.ru Subject: Re: smbfs mount wedges X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2007 20:59:00 -0000 Victor, On 05/05/07, Victor M. Blood wrote: > On 29.04.2007, pluknet wrote: > > Hi, > > > On 29/04/07, Kostik Belousov wrote: > >> On Sun, Apr 29, 2007 at 07:00:54PM +0200, Ivan Voras wrote: > >> > I have this line in my /etc/fstab: > >> > > >> > //ivoras@server/share /home/ivoras/mnt smbfs rw,noauto,-f640,-d750 0 0 > >> > > >> > But the command > >> > > >> > # mount /home/ivoras/mnt > >> > > >> > doesn't exit. The file system is mounted, I can see it in output of > >> > "mount" on another console, and I can access the files in it without > >> > problems, but the "mount" command never returns. It's stuck in state > >> > "devdrn", and can't be killed by SIGINT or SIGKILL. > >> > > >> > This is a -CURRENT from few days ago. > >> > > >> > Does smbfs work for someone? > >> > > >> > >> Take the > >> http://people.freebsd.org/~kib/misc/destroy_dev_sched.6.patch > >> In addition, replace calls to destroy_dev() in the smb cdev d_close() > >> method with destroy_dev_sched() (the precise location of that destroy_dev() > >> could be obtained by backtracing hung process in ddb). > >> > >> This should fix "devdrn" hang. Please, report the results to me. > >> > >> > > > It seems that it works now, thanks! > > (i,e, no mount_smbfs in devdrn state after mount) > I'm newbe to bsd, please help me solve problem with smbfs frezes in > devdrn. If you not very busy... That's what I've made: # cd /sys # patch < /path/to/patch Then s/destroy_dev/destroy_dev_sched/ in sys/netsmb/smb_dev.c, and make kernel as usual. What kind of trouble you're in? > With all regards, Victor M. Blood. > FTN: 2:5024/1.95@Fidonet.org, ICQ#3567656 wbr, pluknet