From: "JohnsonCheng" <JohnsonCheng@qnap.com.tw>
To: "linux-ppc-embedded" <linuxppc-embedded@ozlabs.org>
Subject: How to support LFS on ppc
Date: Wed, 14 Sep 2005 17:12:09 +0800 [thread overview]
Message-ID: <20050914091215.8F4D568275@ozlabs.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 689 bytes --]
Dear All,
I have a problem about Large File System on ppc. The following is my example
code:
#define _FILE_OFFSET_BITS 64
#include <sys/stat.h>
#include <unistd.h>
Int main()
{
struct stat buf;
stat64("/3G",&buf);
printf("size of test = %ld \n",buf.st_size);
lstat64("/3G",&buf);
printf("size of test 2= %ld\n",buf.st_size);
return 0;
}
The conclusion is as following:
size of test = 2141735952
size of test 2= 805910402
But the real size of 3G file is 3145728000. I think it maybe the offset is
wrong, but I don't know how to correct it. Can someone give me some advise.
Thanks,
Johnson Cheng
[-- Attachment #2: Type: text/html, Size: 6370 bytes --]
next reply other threads:[~2005-09-14 9:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-14 9:12 JohnsonCheng [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-09-14 9:47 How to support LFS on ppc Fillod Stephane
2005-09-14 11:45 ` JohnsonCheng
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=20050914091215.8F4D568275@ozlabs.org \
--to=johnsoncheng@qnap.com.tw \
--cc=linuxppc-embedded@ozlabs.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;
as well as URLs for NNTP newsgroup(s).