Date: Sun, 23 Apr 2006 15:31:34 +0200 From: Jean-Yves Lefort <jylefort@FreeBSD.org> To: freebsd-geom@FreeBSD.org Subject: multiple of sector size I/O restriction Message-ID: <20060423153134.63716562.jylefort@FreeBSD.org>
index | next in thread | raw e-mail
[-- Attachment #1 --] In sys/geom/geom_io.c, g_io_check() I find this: /* Reject I/O not on sector boundary */ if (bp->bio_offset % pp->sectorsize) return (EINVAL); Which causes this: # dd if=/dev/ad1 of=test bs=512 count=1 1+0 records in 1+0 records out 512 bytes transferred in 1.889527 secs (271 bytes/sec) # dd if=/dev/ad1 of=test bs=513 count=1 dd: /dev/ad1: Invalid argument 0+0 records in 0+0 records out 0 bytes transferred in 0.000254 secs (0 bytes/sec) Why this restriction? -- Jean-Yves Lefort jylefort@FreeBSD.org http://lefort.be.eu.org/ [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFES4G2yzD7UaO4AGoRAhO7AJ0eYlTld3Co/z2vjIMoIOL+zfqUwgCfZ6oY UebZt4kk+3eyCJI8/NDHE3M= =m/Xu -----END PGP SIGNATURE-----help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060423153134.63716562.jylefort>
