From owner-cvs-all Sun Oct 20 13:28:51 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19A7E37B401; Sun, 20 Oct 2002 13:28:50 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7FB843E77; Sun, 20 Oct 2002 13:28:49 -0700 (PDT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id g9KKSOmV076876; Sun, 20 Oct 2002 13:28:24 -0700 (PDT) (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id g9KKSOkE076875; Sun, 20 Oct 2002 13:28:24 -0700 (PDT) Message-Id: <200210202028.g9KKSOkE076875@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sun, 20 Oct 2002 13:28:24 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/geom geom_aes.c geom_bsd.c geom_ctl.c geom_dev.c geom_disk.c geom_gpt.c geom_mbr.c geom_pc98.c geom_slice.c geom_sunlabel.c src/sys/geom/bde g_bde.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk 2002/10/20 13:28:24 PDT Modified files: sys/geom geom_aes.c geom_bsd.c geom_ctl.c geom_dev.c geom_disk.c geom_gpt.c geom_mbr.c geom_pc98.c geom_slice.c geom_sunlabel.c sys/geom/bde g_bde.c Log: Now that the sectorsize and mediasize are properties of the provider, don't take the detour over the I/O path to discover them using getattr(), we can just pick them out directly. Do note though, that for now they are only valid after the first open of the underlying disk device due compatibility with the old disk_create() API. This will change in the future so they will always be valid. Sponsored by: DARPA & NAI Labs. Revision Changes Path 1.4 +2 -10 src/sys/geom/bde/g_bde.c 1.8 +3 -10 src/sys/geom/geom_aes.c 1.28 +5 -13 src/sys/geom/geom_bsd.c 1.4 +1 -0 src/sys/geom/geom_ctl.c 1.29 +5 -9 src/sys/geom/geom_dev.c 1.30 +5 -7 src/sys/geom/geom_disk.c 1.10 +2 -2 src/sys/geom/geom_gpt.c 1.20 +2 -6 src/sys/geom/geom_mbr.c 1.13 +4 -12 src/sys/geom/geom_pc98.c 1.24 +5 -6 src/sys/geom/geom_slice.c 1.17 +4 -12 src/sys/geom/geom_sunlabel.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message