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

  • From: François Revol <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 28 Oct 2014 15:32:52 +0100

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.
> 
> One such program is ddrescue.
> 
> I'm wondering about adding support for it in the vfs.
> 
> The POSIX specs are not really verbose on this, they don't really make
> it mandatory explicitely nor forbid it:
> http://pubs.opengroup.org/onlinepubs/009695399/functions/lseek.html

I actually patched ddrescue to use the proper ioctl instead but the
question still stands.

François.


Other related posts: