summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_disk.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-03-26 21:40:06 +0000
committerphk <phk@FreeBSD.org>2002-03-26 21:40:06 +0000
commit1af8cfb2f27982ef43586b6cf9faa4e35615f04c (patch)
treeedb5c64885a0887da373c19657748044ed9dcb89 /sys/geom/geom_disk.c
parent87a3c1d1909b9c2c4e4e576330f91ef00235b24d (diff)
downloadFreeBSD-src-1af8cfb2f27982ef43586b6cf9faa4e35615f04c.zip
FreeBSD-src-1af8cfb2f27982ef43586b6cf9faa4e35615f04c.tar.gz
Cave in to tradition and rename "methods" to "classes".
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r--sys/geom/geom_disk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c
index ed0b8be..11bbd60 100644
--- a/sys/geom/geom_disk.c
+++ b/sys/geom/geom_disk.c
@@ -56,8 +56,8 @@
static g_access_t g_disk_access;
-struct g_method g_disk_method = {
- "DISK-method",
+struct g_class g_disk_class = {
+ "DISK-class",
NULL,
g_disk_access,
NULL,
@@ -181,7 +181,7 @@ disk_create(int unit, struct disk *dp, int flags, struct cdevsw *cdevsw, struct
mtx_unlock(&Giant);
if (!once) {
- g_add_method(&g_disk_method);
+ g_add_class(&g_disk_class);
once++;
}
dev = g_malloc(sizeof *dev, M_WAITOK | M_ZERO);
@@ -190,7 +190,7 @@ disk_create(int unit, struct disk *dp, int flags, struct cdevsw *cdevsw, struct
dev->si_disk = dp;
dev->si_udev = dkmakeminor(unit, WHOLE_DISK_SLICE, RAW_PART);
g_topology_lock();
- gp = g_new_geomf(&g_disk_method, "%s%d", cdevsw->d_name, unit);
+ gp = g_new_geomf(&g_disk_class, "%s%d", cdevsw->d_name, unit);
gp->start = g_disk_start;
gp->softc = dp;
dp->d_softc = gp;
OpenPOWER on IntegriCloud