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/
This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:21 EST