From owner-freebsd-current@FreeBSD.ORG Sat Jul 21 15:49:21 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1BB416A41A for ; Sat, 21 Jul 2007 15:49:21 +0000 (UTC) (envelope-from lists@avioc.org) Received: from didy.avioc.org (didy.avioc.org [71.32.26.53]) by mx1.freebsd.org (Postfix) with ESMTP id 6150713C461 for ; Sat, 21 Jul 2007 15:49:21 +0000 (UTC) (envelope-from lists@avioc.org) Received: from localhost (mail.internal.avioc.org [192.168.2.252]) by didy.avioc.org (Postfix) with ESMTP id 9DF32EB64E8; Sat, 21 Jul 2007 10:30:56 -0500 (CDT) X-Virus-Scanned: amavisd-new at mail.internal.avioc.org Received: from didy.avioc.org ([192.168.2.252]) by localhost (mail.internal.avioc.org [192.168.2.252]) (amavisd-new, port 10024) with LMTP id IriF5WE3IGjH; Sat, 21 Jul 2007 10:30:52 -0500 (CDT) Received: from mail.avioc.org (httpd.internal.avioc.org [192.168.2.251]) by didy.avioc.org (Postfix) with ESMTP id CD093EB64E6; Sat, 21 Jul 2007 10:30:52 -0500 (CDT) MIME-Version: 1.0 Date: Sat, 21 Jul 2007 10:30:52 -0500 From: To: Pascal Hofstee In-Reply-To: <1183674495.75595.14.camel@worf> References: <1183674495.75595.14.camel@worf> Message-ID: X-Sender: lists@avioc.org User-Agent: RoundCube Webmail/0.1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Cc: current , "Boris S." , Brian Donnell Subject: Re: ZFS vs Samba Debugging Results ... Need Help. 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, 21 Jul 2007 15:49:21 -0000 On Fri, 06 Jul 2007 00:28:15 +0200, Pascal Hofstee wrote: > Hi, > > I did some addititional debugging and adding a small workaround to > smbd/vfs.c making the function vfs_readdirname() return ptr->d_name > directly instead of relying on the temporary variable dname gets the > code properly skipping the "." and ".." entries. > Have any other work arounds for this issue been found? - other than deleting the repdir_get* files as noted by Brian? Are there any consequences to removing the files that I don't want to run into? >>From that point on the code enters into a new problem area which can be > observed in the backtrace posted at http://pastebin.ca/604961 > > Joe Marcus Clarke helped me out further with debugging this problem and > we have come to the conclusion that the following assertion in samba's > telldir() implementation located in lib/replace/repdir_getdirentries.c > does not hold true on ZFS directories (marcus mentioned something about > lseek() behaving differently on ZFS than it does on UFS): > > if (d->seekpos & (DIR_BUF_SIZE-1)) { > abort(); > } > > Marcus was so kind to put up a simple test case at > http://www.marcuscom.com/downloads/samba_zfs.c > > Change main() to point to a ZFS directory, and watch it crash. > Then point to a UFS directory, and it works. > The seekpos is printed each time. > > Hopefully this will be enough information to get us to figure out a > workable solution here. > > -- > Pascal Hofstee > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"