From owner-freebsd-bugs@FreeBSD.ORG Thu Jun 3 20:00:46 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A27F216A4CE for ; Thu, 3 Jun 2004 20:00:46 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84F7C43D48 for ; Thu, 3 Jun 2004 20:00:46 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i5430kkf068686 for ; Thu, 3 Jun 2004 20:00:46 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5430kkc068679; Thu, 3 Jun 2004 20:00:46 -0700 (PDT) (envelope-from gnats) Resent-Date: Thu, 3 Jun 2004 20:00:46 -0700 (PDT) Resent-Message-Id: <200406040300.i5430kkc068679@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Val P Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BA6316A4CE for ; Thu, 3 Jun 2004 19:58:53 -0700 (PDT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BF8B43D31 for ; Thu, 3 Jun 2004 19:58:53 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i542wrkM066152 for ; Thu, 3 Jun 2004 19:58:53 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i542wrjn066151; Thu, 3 Jun 2004 19:58:53 -0700 (PDT) (envelope-from nobody) Message-Id: <200406040258.i542wrjn066151@www.freebsd.org> Date: Thu, 3 Jun 2004 19:58:53 -0700 (PDT) From: Val P To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: misc/67555: fat32 corruption when using samba X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 03:00:46 -0000 >Number: 67555 >Category: misc >Synopsis: fat32 corruption when using samba >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 03 20:00:45 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Val P >Release: 5.2.1 >Organization: >Environment: FreeBSD mbox 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Sat May 29 09:11:27 CDT 2004 root@mbox:/usr/obj/usr/src/sys/mboxx i386 >Description: I installed FreeBSD 5.2.1 then samba 3.0.4 from source (I was unable to install the samba 3.0.x from ports, it keeps failing with ec = -1). I attached an older 80GB drive as /library. I created 10 files in notepad on windows XP Pro. They are just text files, with the sequence 0-9 repeated six times per line, then repeated for about 200,000 lines, giving me 10 identical files of about 16 mb. Exported my fat drive as /fat, and my /tmp drive as /ufs. Ran a copy from windows: copy testfile* \\computername\fat and copy testfile* \\computername\ufs in my tmp (the /ufs share), the ten files were identical. On my fat drive (the /fat share), none of the ten files were identical to each other. The size was the same, but the data inside was scrambled, after a few correct blocks at the beginning. Using the /V flag on xcopy didn't signal any errors, but doing an fc /b after the copy from the windows machine showed a lot of differences. There were no errors while copyin to the ufs share, but coping to the fat share I get tons of the following in the samba.machine log: [2004/06/02 00:41:53, 0] locking/posix.c:posix_fcntl_lock(657) posix_fcntl_lock: WARNING: lock request at offset 0, length 92233720368547758\ 08 returned [2004/06/02 00:41:53, 0] locking/posix.c:posix_fcntl_lock(658) an Invalid argument error. This can happen when using 64 bit lock offsets [2004/06/02 00:41:53, 0] locking/posix.c:posix_fcntl_lock(659) on 32 bit NFS mounted file systems. [2004/06/02 00:41:53, 0] locking/posix.c:posix_fcntl_lock(673) Count greater than 31 bits - retrying with 31 bit truncated length. [2004/06/02 00:41:54, 0] locking/posix.c:posix_fcntl_lock(657) posix_fcntl_lock: WARNING: lock request at offset 0, length 16580 returned [2004/06/02 00:41:54, 0] locking/posix.c:posix_fcntl_lock(658) an Invalid argument error. This can happen when using 64 bit lock offsets [2004/06/02 00:41:54, 0] locking/posix.c:posix_fcntl_lock(659) on 32 bit NFS mounted file systems. [2004/06/02 00:41:54, 0] locking/posix.c:posix_fcntl_lock(657) posix_fcntl_lock: WARNING: lock request at offset 16580, length 16580 returne\ D Note that I'm not using NFS at all. This is a 32-bit machine. NFSCLIENt and NFSSERver is commented out in the kernel config file. If I set posix locks to off in he smb.conf, these messages go away but the corruption is still there. >How-To-Repeat: See description. >Fix: wish I knew. I had no replies from freebsd-questions or freebsd-fs, so I'm dumping it here and abandoning freebsd for this particular project. >Release-Note: >Audit-Trail: >Unformatted: