From owner-freebsd-questions@FreeBSD.ORG Thu Jun 3 07:25:09 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 544F316A4CF for ; Thu, 3 Jun 2004 07:25:09 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0625643D48 for ; Thu, 3 Jun 2004 07:25:09 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i53EP7i2012511; Thu, 3 Jun 2004 09:25:07 -0500 (CDT) (envelope-from dan) Date: Thu, 3 Jun 2004 09:25:07 -0500 From: Dan Nelson To: Jim Hatfield Message-ID: <20040603142507.GC80605@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: Issues with large files on nfs-mounted filesystems? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 14:25:09 -0000 In the last episode (Jun 03), Jim Hatfield said: > I've made a large .mpg file on a Linux machine (because some > tools, such as mplex, are newer than available in FreeBSD ports). > > Here's a directory listing: > > >-rw-r--r-- 1 jim users 4388444160 Jun 2 23:15 movie.mpg > > I want to burn it to DVD but the burner is on a BSD box, so > I nfs-mount the /home partition. However when I look at the > same file from FreeBSD 5.1 I get: > > >-rw-r--r-- 1 jim 100 93476864 Jun 3 00:15 movie.mpg > > (yes I know there is a time zone issue. I haven't worked > out how to set it on Gentoo yet). > > The difference between the sizes is 4294967296, ie 2^32. > > Anyone know if this is an issue with the NFS implementations > or whether the NFS protocols have a 32-bit size limit? NFSv2 can only do 32-bit file sizes. Make sure you're using NFSv3 mounts (which should be the default). > Even copying the file from one machine to the other > is proving a challenge! Trying to push from Gentoo to FreeBSD > gets: > > >ftp> put movie.mpg > >local: movie.mpg remote: movie.mpg > >local: movie.mpg: File too large > > and trying to pull from the FreeBSD box gets: > > >ftp> get movie.mpg > >local: movie.mpg remote: movie.mpg > >227 Entering Passive Mode (192,168,100,2,128,64) > >550 movie.mpg: File too large. Sounds like Gentoo's ftp client and server daemons weren't compiled with large file support. Linux requires that you compile with -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE, or else you can't access files over 2GB. -- Dan Nelson dnelson@allantgroup.com