Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 May 2007 00:58:59 +0400
From:      pluknet <pluknet@gmail.com>
To:        freebsd-current@freebsd.org
Cc:        freebsd@masm.elcom.ru
Subject:   Re: smbfs mount wedges
Message-ID:  <a31046fc0705051358p5780a166p80620e4680d24f06@mail.gmail.com>
In-Reply-To: <786667891.20070505225754@masm.elcom.ru>
References:  <f12j0g$jfi$1@sea.gmane.org> <20070429171949.GT2441@deviant.kiev.zoral.com.ua> <a31046fc0704291147vf92472axb86edb858bb4c03e@mail.gmail.com> <786667891.20070505225754@masm.elcom.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Victor,

On 05/05/07, Victor M. Blood <freebsd@masm.elcom.ru> wrote:
> On 29.04.2007, pluknet wrote:
> > Hi,
>
> > On 29/04/07, Kostik Belousov <kostikbel@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a31046fc0705051358p5780a166p80620e4680d24f06>