diff options
author | phk <phk@FreeBSD.org> | 2002-06-09 10:57:34 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-06-09 10:57:34 +0000 |
commit | 411db1de5af2d592dad99b0be550c1d1396cb0bd (patch) | |
tree | 2aee47df7b4c048e552dfb36f69f352adcc71438 /sys/geom/geom_aes.c | |
parent | 3f079678493fd4e553dce8c31386e74404b08d11 (diff) | |
download | FreeBSD-src-411db1de5af2d592dad99b0be550c1d1396cb0bd.zip FreeBSD-src-411db1de5af2d592dad99b0be550c1d1396cb0bd.tar.gz |
Improve some on the naming.
Submitted by: iedowse
Diffstat (limited to 'sys/geom/geom_aes.c')
-rw-r--r-- | sys/geom/geom_aes.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/geom/geom_aes.c b/sys/geom/geom_aes.c index 6ac7bb6..43bb34f 100644 --- a/sys/geom/geom_aes.c +++ b/sys/geom/geom_aes.c @@ -144,9 +144,9 @@ g_aes_start(struct bio *bp) break; case BIO_GETATTR: case BIO_SETATTR: - if (g_haveattr_off_t(bp, "GEOM::mediasize", sc->mediasize)) + if (g_handleattr_off_t(bp, "GEOM::mediasize", sc->mediasize)) return; - if (g_haveattr_int(bp, "GEOM::sectorsize", sc->sectorsize)) + if (g_handleattr_int(bp, "GEOM::sectorsize", sc->sectorsize)) return; bp2 = g_clone_bio(bp); bp2->bio_done = g_std_done; @@ -219,7 +219,7 @@ g_aes_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) g_attach(cp, pp); error = g_access_rel(cp, 1, 0, 0); if (error) { - g_dettach(cp); + g_detach(cp); g_destroy_consumer(cp); g_destroy_geom(gp); return (NULL); @@ -258,7 +258,7 @@ g_aes_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) g_access_rel(cp, -1, 0, 0); if (gp->softc != NULL) return (gp); - g_dettach(cp); + g_detach(cp); g_destroy_consumer(cp); g_destroy_geom(gp); return (NULL); @@ -268,7 +268,7 @@ static struct g_class g_aes_class = { AES_CLASS_NAME, g_aes_taste, NULL, - G_CLASS_INITSTUFF + G_CLASS_INITIALIZER }; DECLARE_GEOM_CLASS(g_aes_class, g_aes); |