equal
deleted
inserted
replaced
261 } else { |
261 } else { |
262 (void) fprintf(fp, gettext("usage:\n")); |
262 (void) fprintf(fp, gettext("usage:\n")); |
263 (void) fprintf(fp, "%s", get_usage(current_command->usage)); |
263 (void) fprintf(fp, "%s", get_usage(current_command->usage)); |
264 } |
264 } |
265 |
265 |
266 if (current_command == NULL || |
266 if (current_command != NULL && |
267 strcmp(current_command->name, "set") == 0 || |
267 (strcmp(current_command->name, "set") == 0 || |
268 strcmp(current_command->name, "get") == 0 || |
268 strcmp(current_command->name, "get") == 0 || |
269 strcmp(current_command->name, "inherit") == 0 || |
269 strcmp(current_command->name, "inherit") == 0 || |
270 strcmp(current_command->name, "list") == 0) |
270 strcmp(current_command->name, "list") == 0)) |
271 show_properties = B_TRUE; |
271 show_properties = B_TRUE; |
272 |
272 |
273 if (show_properties) { |
273 if (show_properties) { |
274 |
274 |
275 (void) fprintf(fp, |
275 (void) fprintf(fp, |
296 else |
296 else |
297 (void) fprintf(fp, "%s\n", zfs_prop_values(i)); |
297 (void) fprintf(fp, "%s\n", zfs_prop_values(i)); |
298 } |
298 } |
299 (void) fprintf(fp, gettext("\nSizes are specified in bytes " |
299 (void) fprintf(fp, gettext("\nSizes are specified in bytes " |
300 "with standard units such as K, M, G, etc.\n")); |
300 "with standard units such as K, M, G, etc.\n")); |
|
301 } else { |
|
302 /* |
|
303 * TRANSLATION NOTE: |
|
304 * "zfs set|get" must not be localised this is the |
|
305 * command name and arguments. |
|
306 */ |
|
307 (void) fprintf(fp, |
|
308 gettext("\nFor the property list, run: zfs set|get\n")); |
301 } |
309 } |
302 |
310 |
303 exit(requested ? 0 : 2); |
311 exit(requested ? 0 : 2); |
304 } |
312 } |
305 |
313 |