Date: Sun, 20 Oct 2002 13:28:24 -0700 (PDT) From: Poul-Henning Kamp <phk@FreeBSD.org> 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 Message-ID: <200210202028.g9KKSOkE076875@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210202028.g9KKSOkE076875>