[haiku-development] Re: [RFC] seek(SEEK_END) on block devices

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 28 Oct 2014 15:43:12 +0100

Am 28.10.2014 15:32, schrieb François Revol:
On 28/10/2014 15:01, François Revol wrote:
It seems like some programs now use lseek(SEEK_END) to determine block
devices size, instead of non-portable ioctls() like BLKGETSIZE64.
[...]
I'm wondering about adding support for it in the vfs.

I wouldn't mind it at all. We already return a valid file size if I'm not mistaken, so that extra step wouldn't really make things any worse :-)

Bye,
   Axel.

Other related posts: