Increase limit of zpool comment property from 32 characters to 8192
The zpool property 'comment' allows a 'zpool import' to display useful information about the pool without really import it. However, the current size limit is only 32 characters, which is too small. This PR bumps up the size limit of 'comment' to 8192 characters, so more information can be saved. The new limit is consistent with a custom zpool property. Signed-off-by: Simon Lin <simon.lin@delphix.com>
This commit is contained in:
parent
04bae5ec95
commit
e02fe06f7d
|
@ -261,8 +261,7 @@ typedef enum {
|
|||
ZPOOL_NUM_PROPS
|
||||
} zpool_prop_t;
|
||||
|
||||
/* Small enough to not hog a whole line of printout in zpool(8). */
|
||||
#define ZPROP_MAX_COMMENT 32
|
||||
#define ZPROP_MAX_COMMENT 8192
|
||||
#define ZPROP_BOOLEAN_NA 2
|
||||
|
||||
#define ZPROP_VALUE "value"
|
||||
|
|
Loading…
Reference in New Issue