FreeBSD/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
/*
 * Callback routine that will print out a pool property value.
 */
Callback routine that will print out a pool property value.
Callback routine that will print out a pool property value .
static int
print_prop_cb(int prop, void *cb)
{
	FILE *fp = cb;
	(void) fprintf(fp, "\t%-15s  ", zpool_prop_to_name(prop));
	if (zpool_prop_readonly(prop))
		(void) fprintf(fp, "  NO   ");
	else
		(void) fprintf(fp, " YES   ");
	if (zpool_prop_values(prop) == NULL)
		(void) fprintf(fp, "-\n");
	else
		(void) fprintf(fp, "%s\n", zpool_prop_values(prop));
	return (ZPROP_CONT);
}
static int print_prop_cb ( int prop , void * cb ) { FILE * fp = cb ; ( void ) fprintf ( fp , " \t " , zpool_prop_to_name ( prop ) ) ; if ( zpool_prop_readonly ( prop ) ) ( void ) fprintf ( fp , " " ) ; else ( void ) fprintf ( fp , " " ) ; if ( zpool_prop_values ( prop ) == NULL ) ( void ) fprintf ( fp , " \n " ) ; else ( void ) fprintf ( fp , " \n " , zpool_prop_values ( prop ) ) ; return ( ZPROP_CONT ) ; }
Callback routine that will print out a pool property value.
Callback routine that will print out a pool property value .