svn commit: r342151 - head/stand/libsa/zfs

Alexey Dokuchaev danfe at freebsd.org
Tue Dec 18 11:46:04 UTC 2018


On Sun, Dec 16, 2018 at 08:58:15AM +0000, Toomas Soome wrote:
> New Revision: 342151
> URL: https://svnweb.freebsd.org/changeset/base/342151
> 
> Log:
>   loader: zfs reader should not probe partitionless disks
>   
> @@ -527,10 +527,11 @@ zfs_probe_dev(const char *devname, uint64_t *pool_guid
>  	pa.fd = open(devname, O_RDONLY);
>  	if (pa.fd == -1)
>  		return (ENXIO);
> -	/* Probe the whole disk */
> -	ret = zfs_probe(pa.fd, pool_guid);
> -	if (ret == 0)
> -		return (0);
> +	/*
> +	 * We will not probe the whole disk, we can not boot from such

I think you mean "cannot" here.

> +	 * disks and some systems will misreport the disk sizes and will
> +	 * hang while accessing the disk.
> +	 */

./danfe


More information about the svn-src-head mailing list