Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Aug 2011 14:33:42 GMT
From:      Robert Millan <rmh@debian.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/159356: ZFS NAME_ERR_DISKLIKE check is Solaris-specific
Message-ID:  <201108011433.p71EXgBn094394@red.freebsd.org>
Resent-Message-ID: <201108011440.p71EeDSe014169@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         159356
>Category:       kern
>Synopsis:       ZFS NAME_ERR_DISKLIKE check is Solaris-specific
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 01 14:40:13 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Robert Millan
>Release:        Debian GNU/kFreeBSD "sid"
>Organization:
>Environment:
>Description:
NAME_ERR_DISKLIKE check in sys/cddl/contrib/opensolaris/common/zfs/zfs_namecheck.c prevents creating ZFS pools with names that ressemble Solaris device names.

This has no use on FreeBSD and derivatives like Debian GNU/kFreeBSD, please consider #ifdef'ing this check out.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

=== modified file 'sys/cddl/contrib/opensolaris/common/zfs/zfs_namecheck.c'
--- sys/cddl/contrib/opensolaris/common/zfs/zfs_namecheck.c	2011-08-01 14:27:09 +0000
+++ sys/cddl/contrib/opensolaris/common/zfs/zfs_namecheck.c	2011-08-01 14:29:26 +0000
@@ -335,11 +335,13 @@ pool_namecheck(const char *pool, nameche
 		return (-1);
 	}
 
+#ifdef __sun
 	if (pool[0] == 'c' && (pool[1] >= '0' && pool[1] <= '9')) {
 		if (why)
 			*why = NAME_ERR_DISKLIKE;
 		return (-1);
 	}
+#endif
 
 	return (0);
 }



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108011433.p71EXgBn094394>