FreeBSD/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
/*
 * zpool reopen <pool>
 *
 * Reopen the pool so that the kernel can update the sizes of all vdevs.
 */
zpool reopen 
Reopen the pool so that the kernel can update the sizes of all vdevs.
zpool reopen Reopen the pool so that the kernel can update the sizes of all vdevs .
int
zpool_do_reopen(int argc, char **argv)
{
	int c;
	int ret = 0;
	zpool_handle_t *zhp;
	char *pool;
	while ((c = getopt(argc, argv, "")) != -1) {
		switch (c) {
		case '?':
			(void) fprintf(stderr, gettext("invalid option '%c'\n"),
			    optopt);
			usage(B_FALSE);
		}
	}
	argc--;
	argv++;
	if (argc < 1) {
		(void) fprintf(stderr, gettext("missing pool name\n"));
		usage(B_FALSE);
	}
	if (argc > 1) {
		(void) fprintf(stderr, gettext("too many arguments\n"));
		usage(B_FALSE);
	}
	pool = argv[0];
	if ((zhp = zpool_open_canfail(g_zfs, pool)) == NULL)
		return (1);
	ret = zpool_reopen(zhp);
	zpool_close(zhp);
	return (ret);
}
int zpool_do_reopen ( int argc , char * * argv ) { int c ; int ret = 0 ; zpool_handle_t * zhp ; char * pool ; while ( ( c = getopt ( argc , argv , " " ) ) != -1 ) { switch ( c ) { case ' ' : ( void ) fprintf ( stderr , gettext ( " \n " ) , optopt ) ; usage ( B_FALSE ) ; } } argc -- ; argv ++ ; if ( argc < 1 ) { ( void ) fprintf ( stderr , gettext ( " \n " ) ) ; usage ( B_FALSE ) ; } if ( argc > 1 ) { ( void ) fprintf ( stderr , gettext ( " \n " ) ) ; usage ( B_FALSE ) ; } pool = argv [ 0 ] ; if ( ( zhp = zpool_open_canfail ( g_zfs , pool ) ) == NULL ) return ( 1 ) ; ret = zpool_reopen ( zhp ) ; zpool_close ( zhp ) ; return ( ret ) ; }
zpool reopen <pool>
 Reopen the pool so that the kernel can update the sizes of all vdevs.
zpool reopen <pool > Reopen the pool so that the kernel can update the sizes of all vdevs .
/* check options */