From owner-freebsd-geom@FreeBSD.ORG Sun Apr 23 13:31:41 2006 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72FB216A405 for ; Sun, 23 Apr 2006 13:31:41 +0000 (UTC) (envelope-from jylefort@FreeBSD.org) Received: from mirapoint5.brutele.be (mirapoint5.brutele.be [212.68.199.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E79243D58 for ; Sun, 23 Apr 2006 13:31:39 +0000 (GMT) (envelope-from jylefort@FreeBSD.org) Received: from host-212-68-244-243.brutele.be (host-212-68-244-243.brutele.be [212.68.244.243]) by mirapoint5.brutele.be (MOS 3.7.3-GA) with ESMTP id EBK72243; Sun, 23 Apr 2006 15:31:35 +0200 (CEST) Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2]) by gateway.lefort.net (Postfix) with ESMTP id E52B654CF for ; Sun, 23 Apr 2006 15:31:34 +0200 (CEST) Received: from jsite.lefort.net (localhost [127.0.0.1]) by jsite.lefort.net (Postfix) with SMTP id 85097C0DA for ; Sun, 23 Apr 2006 15:31:34 +0200 (CEST) Date: Sun, 23 Apr 2006 15:31:34 +0200 From: Jean-Yves Lefort To: freebsd-geom@FreeBSD.org Message-Id: <20060423153134.63716562.jylefort@FreeBSD.org> X-Mailer: Sylpheed running on FreeBSD Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Sun__23_Apr_2006_15_31_34_+0200_eyj+bgu54cv.KY0U" X-Junkmail-Status: score=10/50, host=mirapoint5.brutele.be X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A090203.444B802F.000F,ss=1,fgs=0, ip=212.68.244.243, so=2005-12-15 23:46:19, dmn=5.1.5/2006-02-08 Cc: Subject: multiple of sector size I/O restriction X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Apr 2006 13:31:41 -0000 --Signature=_Sun__23_Apr_2006_15_31_34_+0200_eyj+bgu54cv.KY0U Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=3D/dev/ad1 of=3Dtest bs=3D512 count=3D1 1+0 records in 1+0 records out 512 bytes transferred in 1.889527 secs (271 bytes/sec) # dd if=3D/dev/ad1 of=3Dtest bs=3D513 count=3D1 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? --=20 Jean-Yves Lefort jylefort@FreeBSD.org http://lefort.be.eu.org/ --Signature=_Sun__23_Apr_2006_15_31_34_+0200_eyj+bgu54cv.KY0U Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFES4G2yzD7UaO4AGoRAhO7AJ0eYlTld3Co/z2vjIMoIOL+zfqUwgCfZ6oY UebZt4kk+3eyCJI8/NDHE3M= =m/Xu -----END PGP SIGNATURE----- --Signature=_Sun__23_Apr_2006_15_31_34_+0200_eyj+bgu54cv.KY0U--