X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=include%2Fsys%2Ffs%2Fzfs.h;h=13f9cdcfde3f0264cea924483911fced0c0e2c96;hb=d96eb2b1538db13ee7a716ec0e1162f5735edc12;hp=86d7ad51531334688d3909afba308d78568c70e0;hpb=330d06f90d143b41b276796526a66a1c1fff046d;p=zfs.git diff --git a/include/sys/fs/zfs.h b/include/sys/fs/zfs.h index 86d7ad5..13f9cdc 100644 --- a/include/sys/fs/zfs.h +++ b/include/sys/fs/zfs.h @@ -167,9 +167,13 @@ typedef enum { ZPOOL_PROP_ALLOCATED, ZPOOL_PROP_READONLY, ZPOOL_PROP_ASHIFT, + ZPOOL_PROP_COMMENT, ZPOOL_NUM_PROPS } zpool_prop_t; +/* Small enough to not hog a whole line of printout in zpool(1M). */ +#define ZPROP_MAX_COMMENT 32 + #define ZPROP_CONT -2 #define ZPROP_INVAL -1 @@ -500,6 +504,7 @@ typedef struct zpool_rewind_policy { #define ZPOOL_CONFIG_SPLIT_LIST "guid_list" #define ZPOOL_CONFIG_REMOVING "removing" #define ZPOOL_CONFIG_RESILVERING "resilvering" +#define ZPOOL_CONFIG_COMMENT "comment" #define ZPOOL_CONFIG_SUSPENDED "suspended" /* not stored on disk */ #define ZPOOL_CONFIG_TIMESTAMP "timestamp" /* not stored on disk */ #define ZPOOL_CONFIG_BOOTFS "bootfs" /* not stored on disk */