Lines Matching defs:cgd
88 #define CGDCONFIG_CFILE CGDCONFIG_DIR "/cgd.conf"
104 /* if nflag is set, do not configure/unconfigure the cgd's */
194 (void)fprintf(stderr, "usage: %s [-enpv] [-V vmeth] cgd dev "
202 (void)fprintf(stderr, " %s -l [-v[v]] [cgd]\n", getprogname());
203 (void)fprintf(stderr, " %s -s [-nv] [-i ivmeth] cgd dev alg "
209 (void)fprintf(stderr, " %s -u [-nv] cgd\n", getprogname());
711 warn("can't open cgd \"%s\", \"%s\"", *argv, buf);
953 opendisk_werror(const char *cgd, char *buf, size_t buflen)
957 VPRINTF(3, ("opendisk_werror(%s, %s, %zu) called.\n", cgd,buf,buflen));
960 if (!cgd || !buf)
964 if (strlcpy(buf, cgd, buflen) >= buflen)
969 fd = opendisk1(cgd, O_RDWR, buf, buflen, 0, prog_open);
971 warnx("can't open cgd \"%s\", \"%s\"", cgd, buf);
977 configure_params(int fd, const char *cgd, const char *dev, struct params *p)
982 if (!cgd || !dev)
1055 * a cgd, anyway, so it is unlikely that there will be non-native