Date: Sun, 8 Jan 2006 16:40:35 GMT From: Alexander Leidinger <netchild@FreeBSD.org> To: matthias.andree@gmx.de, netchild@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: kern/60313: data destruction: lseek() misalignment silently ignored by some block devices Message-ID: <200601081640.k08GeZGc083176@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601081640.k08GeZGc083176>