On Mon, Jun 25, 2007 at 02:34:21AM -0400, Dennis Clarke wrote:
>
> > in /usr/src/cmd/zpool/zpool_main.c :
> >
>
> at line 680 forwards we can probably check for this scenario :
>
> if ( ( altroot != NULL ) && ( altroot[0] != '/') ) {
> (void) fprintf(stderr, gettext("invalid alternate root '%s': "
> "must be an absolute path\n"), altroot);
> nvlist_free(nvroot);
> return (1);
> }
>
> /* some altroot has been specified *
> * thus altroot[0] and altroot[1] exist */
>
> else if ( ( altroot[0] = '/') && ( altroot[1] = '\0') ) {s/=/==/ > (void) fprintf(stderr, "Do not specify / as alternate root.\n"); You need gettext() here. > nvlist_free(nvroot); > return (1); > } > > > not perfect .. but something along those lines. -- Pawel Jakub Dawidek http://www.wheel.pl [EMAIL PROTECTED] http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am!
pgpKWVUs2EH4y.pgp
Description: PGP signature
_______________________________________________ zfs-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
