[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file sizes shown incorrectly for large files under Windows
From: |
Chris Moore |
Subject: |
Re: file sizes shown incorrectly for large files under Windows |
Date: |
Wed, 12 Nov 2003 13:34:02 +0100 |
Eli Zaretskii writes:
> > Date: 11 Nov 2003 02:10:07 +0100
> > From: Chris Moore <address@hidden>
> > 22/08/2003 06:38 26,156,355,584 Disk Image (C).DIM
>
> That's a 26-Gbyte file.
Yes. It's an uncompressed disk image of a 26-Gbyte disk.
> I'd suspect a bug in the Windows implementation of `stat': it might
> not support files larger than 2GB (or maybe 4GB). Could you please
> show us the declaration of `struct stat' used by the Windows port?
# 104 "c:/chris/mingw/2.0.0-3/include/sys/stat.h" 3
struct stat
{
_dev_t st_dev;
_ino_t st_ino;
_mode_t st_mode;
short st_nlink;
short st_uid;
short st_gid;
_dev_t st_rdev;
_off_t st_size;
time_t st_atime;
time_t st_mtime;
time_t st_ctime;
};
# 53 "c:/chris/mingw/2.0.0-3/include/sys/types.h" 3
typedef long _off_t;
This program:
main() { printf("%d", sizeof(long)); }
prints "4"
> The interesting part is the declaration of the `st_size' member of
> `struct stat'. You should be able to find that on the sys/stat.h
> header.
>
> (The DIR command could use native Windows syscalls, which don't have
> the 2GB limitation, which would explain why it works while Emacs
> doesn't.)
Sounds like you've found the cause of the problem.
Chris.
- file sizes shown incorrectly for large files under Windows, Chris Moore, 2003/11/10
- Re: file sizes shown incorrectly for large files under Windows, Eli Zaretskii, 2003/11/12
- Re: file sizes shown incorrectly for large files under Windows,
Chris Moore <=
- Re: file sizes shown incorrectly for large files under Windows, Eli Zaretskii, 2003/11/12
- Re: file sizes shown incorrectly for large files under Windows, Chris Moore, 2003/11/12
- Re: file sizes shown incorrectly for large files under Windows, Eli Zaretskii, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Jason Rumney, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Chris Moore, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Jason Rumney, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Chris Moore, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Jason Rumney, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Eli Zaretskii, 2003/11/13
- Re: file sizes shown incorrectly for large files under Windows, Jason Rumney, 2003/11/13