cvs commit: src/sys/geom geom.h geom_bsd.c geom_ccd.c geom_ctl.c
Marcel Moolenaar
marcel at FreeBSD.org
Fri Apr 7 16:19:49 UTC 2006
marcel 2006-04-07 16:19:48 UTC
FreeBSD src repository
Modified files:
sys/geom geom.h geom_bsd.c geom_ccd.c geom_ctl.c
Log:
Change gctl_set_param() to return an error instead of setting an
error on the request. Add a wrapper, gctl_set_param_err(), that
sets the error on the request from the error returned by
gctl_set_param() and update current callers of gctl_set_param()
to call gctl_set_param_err() instead.
This makes gctl_set_param() much more usable in situations where
the caller knows better what to do with certain (apparent) error
conditions and setting an error on the request is not one of the
things that need to be done.
Revision Changes Path
1.92 +2 -1 src/sys/geom/geom.h
1.77 +2 -2 src/sys/geom/geom_bsd.c
1.154 +2 -2 src/sys/geom/geom_ccd.c
1.38 +28 -12 src/sys/geom/geom_ctl.c
More information about the cvs-src
mailing list