summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_sunlabel.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-02-12 22:42:11 +0000
committerphk <phk@FreeBSD.org>2004-02-12 22:42:11 +0000
commit124977fbb6c505edf20e1c4b862194c84d39f1eb (patch)
treeb700329baa11c7dbd187df0ad4e8480d842ec8fa /sys/geom/geom_sunlabel.c
parente929b29355b485b504986972ea051a80ca2254e7 (diff)
downloadFreeBSD-src-124977fbb6c505edf20e1c4b862194c84d39f1eb.zip
FreeBSD-src-124977fbb6c505edf20e1c4b862194c84d39f1eb.tar.gz
Remove the absolute count g_access_abs() function since experience has
shown that it is not useful. Rename the relative count g_access_rel() function to g_access(), only the name has changed. Change all g_access_rel() calls in our CVS tree to call g_access() instead. Add an #ifndef BURN_BRIDGES #define of g_access_rel() for source code compatibility.
Diffstat (limited to 'sys/geom/geom_sunlabel.c')
-rw-r--r--sys/geom/geom_sunlabel.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/geom/geom_sunlabel.c b/sys/geom/geom_sunlabel.c
index 0718056..8b11dd9 100644
--- a/sys/geom/geom_sunlabel.c
+++ b/sys/geom/geom_sunlabel.c
@@ -194,19 +194,19 @@ g_sunlabel_config(struct gctl_req *req, struct g_class *mp, const char *verb)
h0h0.label = label;
h0h0.error = -1;
/* XXX: Does this reference register with our selfdestruct code ? */
- error = g_access_rel(cp, 1, 1, 1);
+ error = g_access(cp, 1, 1, 1);
if (error) {
gctl_error(req, "could not access consumer");
return;
}
g_sunlabel_callconfig(&h0h0, 0);
- g_access_rel(cp, -1, -1, -1);
+ g_access(cp, -1, -1, -1);
} else if (!strcmp(verb, "write bootcode")) {
label = gctl_get_paraml(req, "bootcode", SUN_BOOTSIZE);
if (label == NULL)
return;
/* XXX: Does this reference register with our selfdestruct code ? */
- error = g_access_rel(cp, 1, 1, 1);
+ error = g_access(cp, 1, 1, 1);
if (error) {
gctl_error(req, "could not access consumer");
return;
@@ -218,7 +218,7 @@ g_sunlabel_config(struct gctl_req *req, struct g_class *mp, const char *verb)
gsp->slices[i].offset + SUN_SIZE, label + SUN_SIZE,
SUN_BOOTSIZE - SUN_SIZE);
}
- g_access_rel(cp, -1, -1, -1);
+ g_access(cp, -1, -1, -1);
} else {
gctl_error(req, "Unknown verb parameter");
}
@@ -261,7 +261,7 @@ g_sunlabel_taste(struct g_class *mp, struct g_provider *pp, int flags)
break;
} while (0);
- g_access_rel(cp, -1, 0, 0);
+ g_access(cp, -1, 0, 0);
if (LIST_EMPTY(&gp->provider)) {
g_slice_spoiled(cp);
return (NULL);
OpenPOWER on IntegriCloud