From owner-freebsd-fs@FreeBSD.ORG Wed Aug 1 16:28:09 2007 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7879816A41B for ; Wed, 1 Aug 2007 16:28:09 +0000 (UTC) (envelope-from rodrigc@c-71-192-57-29.hsd1.ma.comcast.net) Received: from rwcrmhc14.comcast.net (rwcrmhc14.comcast.net [204.127.192.84]) by mx1.freebsd.org (Postfix) with ESMTP id 61CE313C480 for ; Wed, 1 Aug 2007 16:28:09 +0000 (UTC) (envelope-from rodrigc@c-71-192-57-29.hsd1.ma.comcast.net) Received: from c-71-192-57-29.hsd1.ma.comcast.net ([71.192.57.29]) by comcast.net (rwcrmhc14) with ESMTP id <20070801162807m140023qdoe>; Wed, 1 Aug 2007 16:28:08 +0000 Received: from c-71-192-57-29.hsd1.ma.comcast.net (localhost.crodrigues.org [127.0.0.1]) by c-71-192-57-29.hsd1.ma.comcast.net (8.14.1/8.14.1) with ESMTP id l71GSEIb052316; Wed, 1 Aug 2007 12:28:14 -0400 (EDT) (envelope-from rodrigc@c-71-192-57-29.hsd1.ma.comcast.net) Received: (from rodrigc@localhost) by c-71-192-57-29.hsd1.ma.comcast.net (8.14.1/8.14.1/Submit) id l71GSE71052315; Wed, 1 Aug 2007 12:28:14 -0400 (EDT) (envelope-from rodrigc) Date: Wed, 1 Aug 2007 12:28:14 -0400 From: Craig Rodrigues To: Peter Message-ID: <20070801162814.GA52304@crodrigues.org> References: <46B09FA9.9080503@pean.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="x+6KMIRAuhnl3hBn" Content-Disposition: inline In-Reply-To: <46B09FA9.9080503@pean.org> User-Agent: Mutt/1.4.2.2i Cc: freebsd-fs@freebsd.org Subject: Re: rsync and smb. X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2007 16:28:09 -0000 --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 01, 2007 at 04:58:49PM +0200, Peter wrote: > I searched google for some answers and found that this is a more or less > common problem. I found a PR on this but that was back in 4.10-RELEASE and > I'm running 6.2-RELEASE. http://www.freebsd.org/cgi/query-pr.cgi?pr=78953 > > This also describes my problem pretty well: > http://lists.freebsd.org/pipermail/freebsd-questions/2005-June/089471.html Does this patch help? -- Craig Rodrigues rodrigc@crodrigues.org --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="a.txt" Index: smbfs_smb.c =================================================================== RCS file: /home/ncvs/src/sys/fs/smbfs/smbfs_smb.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -u -r1.15 -r1.16 --- smbfs_smb.c 4 May 2005 15:05:46 -0000 1.15 +++ smbfs_smb.c 22 Nov 2005 07:13:00 -0000 1.16 @@ -1224,8 +1224,10 @@ return error; if ((error = md_get_uint16le(mdp, &tw)) != 0) return error; - if (ctx->f_ecnt == 0) + if (ctx->f_ecnt == 0) { + ctx->f_flags |= SMBFS_RDD_EOF | SMBFS_RDD_NOCLOSE; return ENOENT; + } ctx->f_rnameofs = tw; mdp = &t2p->t2_rdata; if (mdp->md_top == NULL) { --x+6KMIRAuhnl3hBn--