diff options
author | pjd <pjd@FreeBSD.org> | 2007-05-05 16:33:44 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-05-05 16:33:44 +0000 |
commit | ddfa2416f5fd67d07e1e660be1dbdc2e15598197 (patch) | |
tree | 69cba8c95e8d486ed7c759b9c314766689054403 /sys/geom/geom.h | |
parent | 85b1cff269c7329345338a7c9bbed1d6d4b18bce (diff) | |
download | FreeBSD-src-ddfa2416f5fd67d07e1e660be1dbdc2e15598197.zip FreeBSD-src-ddfa2416f5fd67d07e1e660be1dbdc2e15598197.tar.gz |
- Implement helper g_handleattr_str() function for string attributes
handling.
- Extend g_handleattr() to treat attribute as string when len=0.
OK'ed by: phk
Diffstat (limited to 'sys/geom/geom.h')
-rw-r--r-- | sys/geom/geom.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h index 4d7c5b8..eb9b595 100644 --- a/sys/geom/geom.h +++ b/sys/geom/geom.h @@ -230,6 +230,7 @@ int g_getattr__(const char *attr, struct g_consumer *cp, void *var, int len); int g_handleattr(struct bio *bp, const char *attribute, void *val, int len); int g_handleattr_int(struct bio *bp, const char *attribute, int val); int g_handleattr_off_t(struct bio *bp, const char *attribute, off_t val); +int g_handleattr_str(struct bio *bp, const char *attribute, char *str); struct g_consumer * g_new_consumer(struct g_geom *gp); struct g_geom * g_new_geomf(struct g_class *mp, const char *fmt, ...); struct g_provider * g_new_providerf(struct g_geom *gp, const char *fmt, ...); |