Print this page
3064 usr/src/cmd/zpool/zpool_main.c misspells "successful"


3254                             "following layout:\n\n"), newpool);
3255                         print_vdev_tree(NULL, newpool, config, 0, B_FALSE);
3256                 }
3257                 nvlist_free(config);
3258         }
3259 
3260         zpool_close(zhp);
3261 
3262         if (ret != 0 || flags.dryrun || !flags.import)
3263                 return (ret);
3264 
3265         /*
3266          * The split was successful. Now we need to open the new
3267          * pool and import it.
3268          */
3269         if ((zhp = zpool_open_canfail(g_zfs, newpool)) == NULL)
3270                 return (1);
3271         if (zpool_get_state(zhp) != POOL_STATE_UNAVAIL &&
3272             zpool_enable_datasets(zhp, mntopts, 0) != 0) {
3273                 ret = 1;
3274                 (void) fprintf(stderr, gettext("Split was succssful, but "
3275                     "the datasets could not all be mounted\n"));
3276                 (void) fprintf(stderr, gettext("Try doing '%s' with a "
3277                     "different altroot\n"), "zpool import");
3278         }
3279         zpool_close(zhp);
3280 
3281         return (ret);
3282 }
3283 
3284 
3285 
3286 /*
3287  * zpool online <pool> <device> ...
3288  */
3289 int
3290 zpool_do_online(int argc, char **argv)
3291 {
3292         int c, i;
3293         char *poolname;
3294         zpool_handle_t *zhp;




3254                             "following layout:\n\n"), newpool);
3255                         print_vdev_tree(NULL, newpool, config, 0, B_FALSE);
3256                 }
3257                 nvlist_free(config);
3258         }
3259 
3260         zpool_close(zhp);
3261 
3262         if (ret != 0 || flags.dryrun || !flags.import)
3263                 return (ret);
3264 
3265         /*
3266          * The split was successful. Now we need to open the new
3267          * pool and import it.
3268          */
3269         if ((zhp = zpool_open_canfail(g_zfs, newpool)) == NULL)
3270                 return (1);
3271         if (zpool_get_state(zhp) != POOL_STATE_UNAVAIL &&
3272             zpool_enable_datasets(zhp, mntopts, 0) != 0) {
3273                 ret = 1;
3274                 (void) fprintf(stderr, gettext("Split was successful, but "
3275                     "the datasets could not all be mounted\n"));
3276                 (void) fprintf(stderr, gettext("Try doing '%s' with a "
3277                     "different altroot\n"), "zpool import");
3278         }
3279         zpool_close(zhp);
3280 
3281         return (ret);
3282 }
3283 
3284 
3285 
3286 /*
3287  * zpool online <pool> <device> ...
3288  */
3289 int
3290 zpool_do_online(int argc, char **argv)
3291 {
3292         int c, i;
3293         char *poolname;
3294         zpool_handle_t *zhp;