Date: Fri, 7 Apr 2006 16:19:48 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/geom geom.h geom_bsd.c geom_ccd.c geom_ctl.c Message-ID: <200604071619.k37GJmtw021231@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604071619.k37GJmtw021231>