diff options
author | phk <phk@FreeBSD.org> | 2004-02-12 22:42:11 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-02-12 22:42:11 +0000 |
commit | 124977fbb6c505edf20e1c4b862194c84d39f1eb (patch) | |
tree | b700329baa11c7dbd187df0ad4e8480d842ec8fa /sys/geom/geom_bsd.c | |
parent | e929b29355b485b504986972ea051a80ca2254e7 (diff) | |
download | FreeBSD-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_bsd.c')
-rw-r--r-- | sys/geom/geom_bsd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c index 1a309eb..ce74c9f 100644 --- a/sys/geom/geom_bsd.c +++ b/sys/geom/geom_bsd.c @@ -569,7 +569,7 @@ g_bsd_taste(struct g_class *mp, struct g_provider *pp, int flags) } while (0); /* Success or failure, we can close our provider now. */ - error = g_access_rel(cp, -1, 0, 0); + error = g_access(cp, -1, 0, 0); /* If we have configured any providers, return the new geom. */ if (gsp->nprovider > 0) { @@ -639,26 +639,26 @@ g_bsd_config(struct gctl_req *req, struct g_class *mp, char const *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_bsd_callconfig(&h0h0, 0); error = h0h0.error; - 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", BBSIZE); 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; } error = g_bsd_writelabel(gp, label); - g_access_rel(cp, -1, -1, -1); + g_access(cp, -1, -1, -1); } else { gctl_error(req, "Unknown verb parameter"); } |