xfs
[Top] [All Lists]

Re: using lseek() on large files

To: James Rich <james@xxxxxxxxxxxxx>
Subject: Re: using lseek() on large files
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Mon, 7 Apr 2003 20:48:48 +0100
Cc: XFS mailing list <linux-xfs@xxxxxxxxxxx>
In-reply-to: <Pine.LNX.4.50.0304071343430.30028-100000@xxxxxxxxxxxxxxxxxxxxxx>; from james@xxxxxxxxxxxxx on Mon, Apr 07, 2003 at 01:46:43PM -0600
References: <Pine.LNX.4.50.0304071343430.30028-100000@xxxxxxxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5.1i
On Mon, Apr 07, 2003 at 01:46:43PM -0600, James Rich wrote:
> Is it correct the xfs supports file sizes larger than can be addressed by
> lseek()?  lseek() uses a long as the offset,

it takes an off_t as argument, not a long.  off_t can be 64bit if you
set the right options. (Try adding -D_FILE_OFFSET_BITS=64 to CFLAGS)


<Prev in Thread] Current Thread [Next in Thread>