From: Anton Petrusevich <casus@att-ltd.biz>
To: linux-kernel@vger.kernel.org
Subject: ftruncate64
Date: Thu, 26 Feb 2004 05:23:10 +0600 [thread overview]
Message-ID: <200402260523.10394.casus@att-ltd.biz> (raw)
Hi guys,
That looks funny:
casus@jabbervorx:~$ dd if=/dev/zero of=hole bs=1k count=1 seek=2047M
1+0 records in
1+0 records out
1024 bytes transferred in 0,000133 seconds (7696845 bytes/sec)
casus@jabbervorx:~$ dd if=/dev/zero of=hole bs=1k count=1 seek=2048M
dd: advancing past 2199023255552 bytes in output file `hole': File too large
strace shows the errorneous call:
ftruncate64(1, 2199023255552) = -1 EFBIG (File too large)
This behavour is observed with 2.4.23 and 2.6.3-rc1 kernels. And with
2.4.20-28.9smp redhat kernel too. But not with RHEL3 kernels. Looks like
RedHat silently fixed that bug.
--
Anton Petrusevich
next reply other threads:[~2004-02-25 23:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-25 23:23 Anton Petrusevich [this message]
2004-03-03 10:08 ` ftruncate64 Chris Wedgwood
2004-02-25 23:27 ftruncate64 Anton Petrusevich
[not found] <1tgNg-8o9-5@gated-at.bofh.it>
[not found] ` <1vBDZ-48V-7@gated-at.bofh.it>
2004-03-03 21:42 ` ftruncate64 Bill Davidsen
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=200402260523.10394.casus@att-ltd.biz \
--to=casus@att-ltd.biz \
--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®