5418 (void) zonecfg_endadminent(handle);
5419 /*
5420 * If a property n/v pair was specified, warn the user if there was
5421 * nothing to output.
5422 */
5423 if (!output && cmd->cmd_prop_nv_pairs > 0)
5424 (void) printf(gettext("No such %s resource.\n"),
5425 rt_to_str(RT_ADMIN));
5426 }
5427
5428 void
5429 info_func(cmd_t *cmd)
5430 {
5431 FILE *fp = stdout;
5432 boolean_t need_to_close = B_FALSE;
5433 int type;
5434 int res1, res2, res3;
5435 uint64_t swap_limit;
5436 uint64_t locked_limit;
5437 uint64_t phys_limit;
5438 struct stat statbuf;
5439
5440 assert(cmd != NULL);
5441
5442 if (initialize(B_TRUE) != Z_OK)
5443 return;
5444
5445 /* don't page error output */
5446 if (interactive_mode) {
5447 if ((fp = pager_open()) != NULL)
5448 need_to_close = B_TRUE;
5449 else
5450 fp = stdout;
5451
5452 setbuf(fp, NULL);
5453 }
5454
5455 if (!global_scope) {
5456 switch (resource_scope) {
5457 case RT_FS:
5458 output_fs(fp, &in_progress_fstab);
|
5418 (void) zonecfg_endadminent(handle);
5419 /*
5420 * If a property n/v pair was specified, warn the user if there was
5421 * nothing to output.
5422 */
5423 if (!output && cmd->cmd_prop_nv_pairs > 0)
5424 (void) printf(gettext("No such %s resource.\n"),
5425 rt_to_str(RT_ADMIN));
5426 }
5427
5428 void
5429 info_func(cmd_t *cmd)
5430 {
5431 FILE *fp = stdout;
5432 boolean_t need_to_close = B_FALSE;
5433 int type;
5434 int res1, res2, res3;
5435 uint64_t swap_limit;
5436 uint64_t locked_limit;
5437 uint64_t phys_limit;
5438
5439 assert(cmd != NULL);
5440
5441 if (initialize(B_TRUE) != Z_OK)
5442 return;
5443
5444 /* don't page error output */
5445 if (interactive_mode) {
5446 if ((fp = pager_open()) != NULL)
5447 need_to_close = B_TRUE;
5448 else
5449 fp = stdout;
5450
5451 setbuf(fp, NULL);
5452 }
5453
5454 if (!global_scope) {
5455 switch (resource_scope) {
5456 case RT_FS:
5457 output_fs(fp, &in_progress_fstab);
|