equal
deleted
inserted
replaced
279 static int |
279 static int |
280 usage_prop_cb(int prop, void *cb) |
280 usage_prop_cb(int prop, void *cb) |
281 { |
281 { |
282 FILE *fp = cb; |
282 FILE *fp = cb; |
283 |
283 |
284 (void) fprintf(fp, "\t%-13s ", zfs_prop_to_name(prop)); |
284 (void) fprintf(fp, "\t%-14s ", zfs_prop_to_name(prop)); |
285 |
285 |
286 if (prop == ZFS_PROP_CASE) |
286 if (prop == ZFS_PROP_CASE) |
287 (void) fprintf(fp, "NO "); |
287 (void) fprintf(fp, "NO "); |
288 else if (zfs_prop_readonly(prop)) |
288 else if (zfs_prop_readonly(prop)) |
289 (void) fprintf(fp, " NO "); |
289 (void) fprintf(fp, " NO "); |
346 if (show_properties) { |
346 if (show_properties) { |
347 |
347 |
348 (void) fprintf(fp, |
348 (void) fprintf(fp, |
349 gettext("\nThe following properties are supported:\n")); |
349 gettext("\nThe following properties are supported:\n")); |
350 |
350 |
351 (void) fprintf(fp, "\n\t%-13s %s %s %s\n\n", |
351 (void) fprintf(fp, "\n\t%-14s %s %s %s\n\n", |
352 "PROPERTY", "EDIT", "INHERIT", "VALUES"); |
352 "PROPERTY", "EDIT", "INHERIT", "VALUES"); |
353 |
353 |
354 /* Iterate over all properties */ |
354 /* Iterate over all properties */ |
355 (void) zprop_iter(usage_prop_cb, fp, B_FALSE, B_TRUE, |
355 (void) zprop_iter(usage_prop_cb, fp, B_FALSE, B_TRUE, |
356 ZFS_TYPE_DATASET); |
356 ZFS_TYPE_DATASET); |
1268 } |
1268 } |
1269 if (!zfs_prop_inheritable(prop)) { |
1269 if (!zfs_prop_inheritable(prop)) { |
1270 (void) fprintf(stderr, gettext("'%s' property cannot " |
1270 (void) fprintf(stderr, gettext("'%s' property cannot " |
1271 "be inherited\n"), propname); |
1271 "be inherited\n"), propname); |
1272 if (prop == ZFS_PROP_QUOTA || |
1272 if (prop == ZFS_PROP_QUOTA || |
1273 prop == ZFS_PROP_RESERVATION) |
1273 prop == ZFS_PROP_RESERVATION || |
|
1274 prop == ZFS_PROP_REFQUOTA || |
|
1275 prop == ZFS_PROP_REFRESERVATION) |
1274 (void) fprintf(stderr, gettext("use 'zfs set " |
1276 (void) fprintf(stderr, gettext("use 'zfs set " |
1275 "%s=none' to clear\n"), propname); |
1277 "%s=none' to clear\n"), propname); |
1276 return (1); |
1278 return (1); |
1277 } |
1279 } |
1278 } else if (!zfs_prop_user(propname)) { |
1280 } else if (!zfs_prop_user(propname)) { |