Re: O_LARGEFILE

Andries Brouwer (aeb@veritas.com)
Thu, 10 Aug 2000 14:07:58 +0200


On Thu, Aug 10, 2000 at 11:42:30AM +0200, Russell Coker wrote:

> On Solaris when I open a device file for a >2G hard drive without
> O_LARGEFILE then I can only read the first 2G of data.

A bug in Solaris?

> On Linux 2.4.0-test5 (and all other versions I have tested)
> and Glibc 2.1.3 (and all other libc versions I have tested)
> I can open /dev/hda without O_LARGEFILE and read as much data as
> there is. Does this constitute a bug in Linux?

No.

> Is it planned to be fixed?

I hope not.

My copy of the LFS stuff (no doubt people will tell me
if it is outdated) comes from
http://ftp.sas.com/standards/large.file/x_open.20Mar96.html
and says in A.1.2.3:

"Open protection and the read/write limit apply only
to regular files, and are not specified to apply to
block or character special files such as raw disk partitions."

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/