svn commit: r235478 - head/cddl/contrib/opensolaris/cmd/zpool

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun May 20 11:10:11 UTC 2012


On Tue, May 15, 2012 at 05:07:30PM +0000, Andriy Gapon wrote:
> Author: avg
> Date: Tue May 15 17:07:29 2012
> New Revision: 235478
> URL: http://svn.freebsd.org/changeset/base/235478
> 
> Log:
>   zpool_do_import: use /dev instead of /dev/dsk as a default
>   
>   This affects behavior of zpool import without -d option.

How does it affect 'zpool import' behaviour? On FreeBSD when -d is not
given we should not scan entire /dev/, but take all available GEOM
providers from the GEOM.

>   Reported by:	Bruce Cran <bruce at cran.org.uk>
>   Submitted by:	Fabian Keil <freebsd-listen at fabiankeil.de>
>   MFC after:	2 weeks
> 
> Modified:
>   head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
> 
> Modified: head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
> ==============================================================================
> --- head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c	Tue May 15 16:17:30 2012	(r235477)
> +++ head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c	Tue May 15 17:07:29 2012	(r235478)
> @@ -1909,7 +1909,7 @@ zpool_do_import(int argc, char **argv)
>  
>  	if (searchdirs == NULL) {
>  		searchdirs = safe_malloc(sizeof (char *));
> -		searchdirs[0] = "/dev/dsk";
> +		searchdirs[0] = "/dev";
>  		nsearch = 1;
>  	}
>  

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://tupytaj.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20120520/7e9e15c9/attachment.pgp


More information about the svn-src-all mailing list