From 124977fbb6c505edf20e1c4b862194c84d39f1eb Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 12 Feb 2004 22:42:11 +0000 Subject: 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. --- sys/geom/geom_sunlabel.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/geom/geom_sunlabel.c') 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); -- cgit v1.1