From owner-freebsd-current@FreeBSD.ORG Thu Nov 8 11:08:51 2007 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 6694A16A41B for ; Thu, 8 Nov 2007 11:08:51 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BA7313C4B0 for ; Thu, 8 Nov 2007 11:08:51 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 715771CC07B; Thu, 8 Nov 2007 03:08:50 -0800 (PST) Date: Thu, 8 Nov 2007 03:08:50 -0800 From: Jeremy Chadwick To: Nathan Butcher Message-ID: <20071108110850.GA17457@eos.sc1.parodius.com> References: <4732E165.1020502@fusiongol.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4732E165.1020502@fusiongol.com> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-current@freebsd.org Subject: Re: ZFS -> samba directory quirk 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: Thu, 08 Nov 2007 11:08:51 -0000 On Thu, Nov 08, 2007 at 07:13:57PM +0900, Nathan Butcher wrote: > I'm not sure if I'm the only one seeing this, but I have a ZFS-samba set > up between my FreeBSD7-BETA2 test machine and a Windows XP box. The > samba install is from ports and is the latest version (it is patched for > zfs I believe). I run RELENG_7 on my home machine, using ZFS with a zpool of two disks (basically the equiv. of a RAID 0 array). The storage pool is about 1TB, and mainly contains ISO images. The network interface on the boxes are gigE, and I copy data quite regularly. I have absolutely no ZFS- related tuning parameters set in my loader.conf or sysctl; I'm using all the stock out-of-the-box settings. I run Samba as well, which has shares for numerous directories on that ZFS pool. I haven't run into any problems that appear to be ZFS or Samba-related. > On occasion I will find that directory information sometimes goes funky > when coming out on the Windows XP side. On one occasion, files that > *should* have been in the directory didn't show up in Windows, and on > one occasion, a filename for a particular file appeared *twice* (and > deleting it deleted both instances!). A refresh of the directory in > Windows seemed to fix this quirk temporarily. I have seen something similar happen, and I believe it to be a Windows "problem" (if you can call it that) more so than a SMB/CIFS or ZFS problem: Say you have /foo/bar as a shared SMB resource via Samba on a UNIX box. If on the Windows machine you browse to that folder (in Windows Explorer), then on the UNIX box rm -fr /foo/bar/someotherdir, you will not see the someotherdir directory disappear in Explorer until you actually click Refresh. Otherwise, I haven't ever seen what you've reported. I'm not sure why you think it's related to ZFS though; the behaviour you describe should happen on any underlying filesystem or LVM equivalent. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |