FreeBSD/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
/*
 * zpool history <pool>
 *
 * Displays the history of commands that modified pools.
 */
zpool history 
Displays the history of commands that modified pools.
zpool history Displays the history of commands that modified pools .
int
zpool_do_history(int argc, char **argv)
{
	hist_cbdata_t cbdata = { 0 };
	int ret;
	int c;
	cbdata.first = B_TRUE;
	while ((c = getopt(argc, argv, "li")) != -1) {
		switch (c) {
		case 'l':
			cbdata.longfmt = B_TRUE;
			break;
		case 'i':
			cbdata.internal = B_TRUE;
			break;
		case '?':
			(void) fprintf(stderr, gettext("invalid option '%c'\n"),
			    optopt);
			usage(B_FALSE);
		}
	}
	argc -= optind;
	argv += optind;
	ret = for_each_pool(argc, argv, B_FALSE,  NULL, get_history_one,
	    &cbdata);
	if (argc == 0 && cbdata.first == B_TRUE) {
		(void) printf(gettext("no pools available\n"));
		return (0);
	}
	return (ret);
}
int zpool_do_history ( int argc , char * * argv ) { hist_cbdata_t cbdata = { 0 } ; int ret ; int c ; cbdata . first = B_TRUE ; while ( ( c = getopt ( argc , argv , " " ) ) != -1 ) { switch ( c ) { case ' ' : cbdata . longfmt = B_TRUE ; break ; case ' ' : cbdata . internal = B_TRUE ; break ; case ' ' : ( void ) fprintf ( stderr , gettext ( " \n " ) , optopt ) ; usage ( B_FALSE ) ; } } argc -= optind ; argv += optind ; ret = for_each_pool ( argc , argv , B_FALSE , NULL , get_history_one , & cbdata ) ; if ( argc == 0 && cbdata . first == B_TRUE ) { ( void ) printf ( gettext ( " \n " ) ) ; return ( 0 ) ; } return ( ret ) ; }
zpool history <pool>
 Displays the history of commands that modified pools.
zpool history <pool > Displays the history of commands that modified pools .
/* check options */