linuxolator: LTP lseek03 failure

Scot Hetzel swhetzel at gmail.com
Wed May 2 20:45:11 UTC 2007


I have investigated the new LTP test failure for lseek03, and the
first test sets whence to 4 (SEEK_HOLE):

test 1 lseek(tfile_1554, 1, 4) Failed, errno=25 Inappropriate ioctl
for device, expected 22(EINVAL)

 I looked at linux lseek man page and it showed only the SEEK_SET,
SEEK_CUR, SEEK_END as valid values for whence.

I then did a search, and while I did find mailing list archives that
did have programmers trying to implement the SEEK_HOLE, SEEK_DATA
extentions to lseek.  But it hasn't been commited to the latest linux
kernel (linux-2.6.21.1 from kernel.org).

I have created a patch for lseek and llseek that limits whence to
SEEK_SET, SEEK_CUR, SEEK_END.

Scot
-- 
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lseek.patch
Type: text/x-diff
Size: 1533 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20070502/5fc82476/lseek.bin


More information about the freebsd-emulation mailing list