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.