]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Now that the sectorsize and mediasize are properties of the provider,
authorPoul-Henning Kamp <phk@FreeBSD.org>
Sun, 20 Oct 2002 20:28:24 +0000 (20:28 +0000)
committerPoul-Henning Kamp <phk@FreeBSD.org>
Sun, 20 Oct 2002 20:28:24 +0000 (20:28 +0000)
commit3f12caa1802e84dc2234069edb93f1040ca01027
tree4be4d44cd73707526477ac8dedf166de6841e46d
parent943305f753597261cb01a76f4876ce5325968867
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.
sys/geom/bde/g_bde.c
sys/geom/geom_aes.c
sys/geom/geom_bsd.c
sys/geom/geom_ctl.c
sys/geom/geom_dev.c
sys/geom/geom_disk.c
sys/geom/geom_gpt.c
sys/geom/geom_mbr.c
sys/geom/geom_pc98.c
sys/geom/geom_slice.c
sys/geom/geom_sunlabel.c