diff options
author | mav <mav@FreeBSD.org> | 2012-05-03 05:32:56 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2012-05-03 05:32:56 +0000 |
commit | 6a0688c8fd793f12e94493c122206163820eeff4 (patch) | |
tree | fda456d967696df8ee3957afdb65209df7459832 /sbin/geom/class/raid/geom_raid.c | |
parent | 62cde8b2a25544589eae9eaf2fcf961f3a58a310 (diff) | |
download | FreeBSD-src-6a0688c8fd793f12e94493c122206163820eeff4.zip FreeBSD-src-6a0688c8fd793f12e94493c122206163820eeff4.tar.gz |
Add optional -o argument to the `graid label ` to specify some metadata
format options. Use it for specifying byte order for the DDF metadata:
big-endian defined by specification and little-endian used by Adaptec.
Diffstat (limited to 'sbin/geom/class/raid/geom_raid.c')
-rw-r--r-- | sbin/geom/class/raid/geom_raid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/geom/class/raid/geom_raid.c b/sbin/geom/class/raid/geom_raid.c index 2f16295..d3383bc 100644 --- a/sbin/geom/class/raid/geom_raid.c +++ b/sbin/geom/class/raid/geom_raid.c @@ -48,11 +48,12 @@ struct g_command class_commands[] = { { "label", G_FLAG_VERBOSE, NULL, { { 'f', "force", NULL, G_TYPE_BOOL }, + { 'o', "fmtopt", G_VAL_OPTIONAL, G_TYPE_STRING }, { 'S', "size", G_VAL_OPTIONAL, G_TYPE_NUMBER }, { 's', "strip", G_VAL_OPTIONAL, G_TYPE_NUMBER }, G_OPT_SENTINEL }, - "[-fv] [-S size] [-s stripsize] format label level prov ..." + "[-fv] [-o fmtopt] [-S size] [-s stripsize] format label level prov ..." }, { "add", G_FLAG_VERBOSE, NULL, { |