lseek on block device

Peter Chubb (peter@chubb.wattle.id.au)
Tue, 18 Jun 2002 08:48:10 +1000


Hi folks,
Is lseek64(fd, (off64_t)0, SEEK_END) guaranteed to return the
number-of-bytes in a block device (bugs aside)? Single-UNIX-spec says
yes. So why do we need BLKGETSIZE64 ?? And why do so many of the
mkfs-like tools try to do a binary search to find the file size?

--
Peter C					    peterc@gelato.unsw.edu.au
You are lost in a maze of BitKeeper repositories, all almost the same.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/