kern/60313: data destruction: lseek() misalignment silently
ignored by some block devices
Alexander Leidinger
netchild at FreeBSD.org
Sun Jan 8 08:40:37 PST 2006
Synopsis: data destruction: lseek() misalignment silently ignored by some block devices
State-Changed-From-To: open->closed
State-Changed-By: netchild
State-Changed-When: Sun Jan 8 16:39:04 UTC 2006
State-Changed-Why:
5.x and 6.x come with GEOM, where -- according to phk -- this is
handled correctly.
>From phk:
---snip---
Notice however that lseek(2) does not in fact instigate any I/O
request so it cannot possibly know if the address is properly aligned
or not. Therefore lseek(2) will always succeed, even if the subsequent
read/write will fail at that offset.
---snip---
http://www.freebsd.org/cgi/query-pr.cgi?pr=60313
More information about the freebsd-bugs
mailing list