From owner-freebsd-current@FreeBSD.ORG Wed Mar 12 04:55:46 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45DBA106566C for ; Wed, 12 Mar 2008 04:55:46 +0000 (UTC) (envelope-from bbiskebo@Princeton.EDU) Received: from Princeton.EDU (postoffice03.Princeton.EDU [128.112.131.174]) by mx1.freebsd.org (Postfix) with ESMTP id D9E398FC18 for ; Wed, 12 Mar 2008 04:55:45 +0000 (UTC) (envelope-from bbiskebo@Princeton.EDU) Received: from smtpserver2.Princeton.EDU (smtpserver2.Princeton.EDU [128.112.129.148]) by Princeton.EDU (8.13.8/8.13.8) with ESMTP id m2C4thSO006892; Wed, 12 Mar 2008 00:55:43 -0400 (EDT) Received: from [140.180.177.201] (formula.Princeton.EDU [140.180.177.201]) (authenticated bits=0) by smtpserver2.Princeton.EDU (8.12.9/8.12.9) with ESMTP id m2C4tc0m020820 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Wed, 12 Mar 2008 00:55:42 -0400 (EDT) Message-ID: <47D76247.5060606@princeton.edu> Date: Wed, 12 Mar 2008 00:55:35 -0400 From: Brian Biskeborn User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: duncan.young@pobox.com References: <200803121028.55105.duncan.young@pobox.com> In-Reply-To: <200803121028.55105.duncan.young@pobox.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: samba and zfs (amd64?) 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: Wed, 12 Mar 2008 04:55:46 -0000 I've been seeing this since RC1 as well. Same platform here (7.0-release, amd64, samba 3.0.28,1 on ZFS). Under Windows, there are missing files, but no duplicates. Using mount_cifs on Linux, I think there are both missing files and duplicates (haven't checked for a while, though, so I could be wrong about the duplicates). This starts to happen in directories containing a few hundred items. I don't have any UFS shares here, so I can't vouch for ZFS being the problem. My usage of samba isn't exactly mission-critical, so I've been ignoring the issue. To anyone more familiar with samba or ZFS: does smbd use mmap for any directory operations? There was an apparent mmap bug on ZFS reported here a few weeks ago - I solved some problems I was having with dovecot (reported Feb 24) by disabling mmap there. Cheers, Brian Duncan Young wrote: > Hi all > > I've been having problems with zfs, samba and large directories. > > If I have a large zfs directory and try to accesses it via smb://, I have > parts of the directory missing (sometimes over 50%) and even duplicated. > > I could not reproduce the problem on a UFS filesystem. > doing a mount_smbfs, everything is fine. > using windows (including cygwin) or konqueror via smb:// fails badly > (konqueror even worse than explorer). > > > I have been seeing this problem since 7.0-RC1, but only now gotten around to > pinning it down. > > test program: > in a new directory > > for i in 0 1 2 3 4 5 6 7 8 9 > do > for j in 0 1 2 3 4 5 6 7 8 9 > do > for k in 0 1 2 3 4 5 6 7 8 9 > do > > touch "aaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbccccccccccccccccc$i$j$k" > done > done > done > > then try accessing from a windows box (or konqueror via smb://) > > Both explorter and cygwin show the same results from windows. > > A packet sniffer indicated that the data was being send inncorrectly > > Could some others of you try to confirm (or not) my findings. I am running > 7.0-release (amd64) and samba-3.0.28,1. > > I believe this to be a zfs issue due to my not being able to reproduce the > problem with UFS (not even once). > > regards > > Duncan > _______________________________________________ > 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"