From: Andreas Dilger <adilger@turbolabs.com>
To: Kallol Biswas <kallol@efi.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: lseek SEEK_END fails on a Toshiba 6007MB disk.
Date: Wed, 20 Feb 2002 17:23:12 -0700 [thread overview]
Message-ID: <20020220172312.I1506@lynx.adilger.int> (raw)
In-Reply-To: <3C7433F8.8FB86B39@efi.com>
In-Reply-To: <3C7433F8.8FB86B39@efi.com>; from kallol@efi.com on Wed, Feb 20, 2002 at 03:40:40PM -0800
On Feb 20, 2002 15:40 -0800, Kallol Biswas wrote:
> offset = lseek(fd, 0, SEEK_END);
>
> lseek: Value too large for defined data type
You need to use a 64-bit lseek (e.g. llseek or lseek64). This can
be done with '#define _LARGEFILE_SOURCE' and/or '#define _LARGEFILE64_SOURCE'
and/or '#define _FILE_OFFSET_BITS=64'.
Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/
prev parent reply other threads:[~2002-02-21 0:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-20 23:40 Kallol Biswas
2002-02-21 0:01 ` Alan Cox
2002-02-21 0:23 ` Andreas Dilger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020220172312.I1506@lynx.adilger.int \
--to=adilger@turbolabs.com \
--cc=kallol@efi.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®