mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
zfs_main: fix alignment on props usage output
I guess we've got some long property names since this was first set up! Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16883
This commit is contained in:
1 parent
e5ac7786bd
commit
f00a57a786
1 file changed
+16
-16
+16
-16
@@ -500,7 +500,7 @@ usage_prop_cb(int prop, void *cb)
|
||||
{
|
||||
FILE *fp = cb;
|
||||
|
||||
(void) fprintf(fp, "\t%-15s ", zfs_prop_to_name(prop));
|
||||
(void) fprintf(fp, "\t%-22s ", zfs_prop_to_name(prop));
|
||||
|
||||
if (zfs_prop_readonly(prop))
|
||||
(void) fprintf(fp, " NO ");
|
||||
@@ -561,40 +561,40 @@ usage(boolean_t requested)
|
||||
(void) fprintf(fp, "%s",
|
||||
gettext("\nThe following properties are supported:\n"));
|
||||
|
||||
(void) fprintf(fp, "\n\t%-14s %s %s %s\n\n",
|
||||
(void) fprintf(fp, "\n\t%-21s %s %s %s\n\n",
|
||||
"PROPERTY", "EDIT", "INHERIT", "VALUES");
|
||||
|
||||
/* Iterate over all properties */
|
||||
(void) zprop_iter(usage_prop_cb, fp, B_FALSE, B_TRUE,
|
||||
ZFS_TYPE_DATASET);
|
||||
|
||||
(void) fprintf(fp, "\t%-15s ", "userused@...");
|
||||
(void) fprintf(fp, "\t%-22s ", "userused@...");
|
||||
(void) fprintf(fp, " NO NO <size>\n");
|
||||
(void) fprintf(fp, "\t%-15s ", "groupused@...");
|
||||
(void) fprintf(fp, "\t%-22s ", "groupused@...");
|
||||
(void) fprintf(fp, " NO NO <size>\n");
|
||||
(void) fprintf(fp, "\t%-15s ", "projectused@...");
|
||||
(void) fprintf(fp, "\t%-22s ", "projectused@...");
|
||||
(void) fprintf(fp, " NO NO <size>\n");
|
||||
(void) fprintf(fp, "\t%-15s ", "userobjused@...");
|
||||
(void) fprintf(fp, "\t%-22s ", "userobjused@...");
|
||||
(void) fprintf(fp, " NO NO <size>\n");
|
||||
(void) fprintf(fp, "\t%-15s ", "groupobjused@...");
|
||||
(void) fprintf(fp, "\t%-22s ", "groupobjused@...");
|
||||
(void) fprintf(fp, " NO NO <size>\n");
|
||||
(void) fprintf(fp, "\t%-15s ", "projectobjused@...");
|
||||
(void) fprintf(fp, "\t%-22s ", "projectobjused@...");
|
||||
(void) fprintf(fp, " NO NO <size>\n");
|
||||
(void) fprintf(fp, "\t%-15s ", "userquota@...");
|
||||
(void) fprintf(fp, "\t%-22s ", "userquota@...");
|
||||
(void) fprintf(fp, "YES NO <size> | none\n");
|
||||
(void) fprintf(fp, "\t%-15s ", "groupquota@...");
|
||||
(void) fprintf(fp, "\t%-22s ", "groupquota@...");
|
||||
(void) fprintf(fp, "YES NO <size> | none\n");
|
||||
(void) fprintf(fp, "\t%-15s ", "projectquota@...");
|
||||
(void) fprintf(fp, "\t%-22s ", "projectquota@...");
|
||||
(void) fprintf(fp, "YES NO <size> | none\n");
|
||||
(void) fprintf(fp, "\t%-15s ", "userobjquota@...");
|
||||
(void) fprintf(fp, "\t%-22s ", "userobjquota@...");
|
||||
(void) fprintf(fp, "YES NO <size> | none\n");
|
||||
(void) fprintf(fp, "\t%-15s ", "groupobjquota@...");
|
||||
(void) fprintf(fp, "\t%-22s ", "groupobjquota@...");
|
||||
(void) fprintf(fp, "YES NO <size> | none\n");
|
||||
(void) fprintf(fp, "\t%-15s ", "projectobjquota@...");
|
||||
(void) fprintf(fp, "\t%-22s ", "projectobjquota@...");
|
||||
(void) fprintf(fp, "YES NO <size> | none\n");
|
||||
(void) fprintf(fp, "\t%-15s ", "written@<snap>");
|
||||
(void) fprintf(fp, "\t%-22s ", "written@<snap>");
|
||||
(void) fprintf(fp, " NO NO <size>\n");
|
||||
(void) fprintf(fp, "\t%-15s ", "written#<bookmark>");
|
||||
(void) fprintf(fp, "\t%-22s ", "written#<bookmark>");
|
||||
(void) fprintf(fp, " NO NO <size>\n");
|
||||
|
||||
(void) fprintf(fp, gettext("\nSizes are specified in bytes "
|
||||
|
||||
Reference in new issue
Block a user