]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC rev 1.90:
authorsimon <simon@FreeBSD.org>
Wed, 12 Jul 2006 18:51:51 +0000 (18:51 +0000)
committersimon <simon@FreeBSD.org>
Wed, 12 Jul 2006 18:51:51 +0000 (18:51 +0000)
commitf39cc84bd15ec24b6b83e5cbaa5fff6d1c54e1fc
tree63e60def562b9a0a4294568b926cf3fb571bc5a3
parent8aa214545f0bbae7ab2fe5a143cf12d1d4b1b729
MFC rev 1.90:

In g_dev_strategy(), when failing an IO request with EINVAL due to
offset or request size which is not a multiple of the sector size, make
sure that the bio is set to indicate that no data has actually been
transferred.

The result of this is that the file offset is no longer incremented for
these requests.  The fact that the file offset was incremented broke
fdisk(8)'s probing of sector size for non-512 byte sector sizes.
sys/geom/geom_dev.c