cvs commit: src/sbin/geom/class/concat geom_concat.c
src/sbin/geom/class/eli
geom_eli.c src/sbin/geom/class/label geom_label.c
src/sbin/geom/class/mirror geom_mirror.c src/sbin/geom/class/raid3
geom_raid3.c src/sbin/geom/class/shsec geom_shsec.c ...
Pawel Jakub Dawidek
pjd at FreeBSD.org
Tue Dec 6 17:38:29 PST 2005
pjd 2005-12-07 01:38:28 UTC
FreeBSD src repository
Modified files:
sbin/geom/class/concat geom_concat.c
sbin/geom/class/eli geom_eli.c
sbin/geom/class/label geom_label.c
sbin/geom/class/mirror geom_mirror.c
sbin/geom/class/raid3 geom_raid3.c
sbin/geom/class/shsec geom_shsec.c
sbin/geom/class/stripe geom_stripe.c
sbin/geom/core geom.c
sbin/geom/misc subr.c subr.h
Log:
- The geom(8) utility only uses three types of arguments: string (char *),
value (intmax_t) and boolean (int).
Based on that provide three functions:
- gctl_get_ascii()
- gctl_get_int()
- gctl_get_intmax()
- Hide gctl_get_param() function, as it is only used internally in
subr.c.
- Allow to provide argument name as (fmt, ...).
- Assert geom(8) bugs (missing argument is a geom(8) bug).
- Clean-up and simplify the code by using new functions and assumtions
(no more checking for missing argument).
Tested by: regression tests
Revision Changes Path
1.9 +24 -57 src/sbin/geom/class/concat/geom_concat.c
1.5 +85 -236 src/sbin/geom/class/eli/geom_eli.c
1.7 +16 -43 src/sbin/geom/class/label/geom_label.c
1.12 +36 -92 src/sbin/geom/class/mirror/geom_mirror.c
1.14 +35 -81 src/sbin/geom/class/raid3/geom_raid3.c
1.6 +24 -56 src/sbin/geom/class/shsec/geom_shsec.c
1.12 +31 -67 src/sbin/geom/class/stripe/geom_stripe.c
1.24 +20 -53 src/sbin/geom/core/geom.c
1.5 +55 -45 src/sbin/geom/misc/subr.c
1.5 +5 -3 src/sbin/geom/misc/subr.h
More information about the cvs-all
mailing list