svn commit: r235129 - head/tools/tools/zfsboottest

Pawel Jakub Dawidek pjd at FreeBSD.org
Tue May 8 02:03:03 UTC 2012


On Mon, May 07, 2012 at 03:03:42PM +0000, Andriy Gapon wrote:
> Author: avg
> Date: Mon May  7 15:03:42 2012
> New Revision: 235129
> URL: http://svn.freebsd.org/changeset/base/235129
> 
> Log:
>   zfsboottest.sh: gracefully handle default value of bootfs property

I'd prefer if people avoid having their root file system at the pool
level, so maybe we could leave it as a warning?

>   Reported by:	theraven
>   MFC after:	10 days
> 
> Modified:
>   head/tools/tools/zfsboottest/zfsboottest.sh
> 
> Modified: head/tools/tools/zfsboottest/zfsboottest.sh
> ==============================================================================
> --- head/tools/tools/zfsboottest/zfsboottest.sh	Mon May  7 14:07:13 2012	(r235128)
> +++ head/tools/tools/zfsboottest/zfsboottest.sh	Mon May  7 15:03:42 2012	(r235129)
> @@ -52,8 +52,7 @@ if [ $? -ne 0 ]; then
>  fi
>  bootfs=`zpool get bootfs "${pool}" | tail -1 | awk '{print $3}'`
>  if [ "${bootfs}" = "-" ]; then
> -	echo "The \"bootfs\" property is not configured for pool \"${pool}\"." >&2
> -	exit 1
> +	bootfs="${pool}"
>  fi
>  # Dataset's mountpoint property should be set to 'legacy'.
>  if [ "`zfs get -H -o value mountpoint ${bootfs}`" != "legacy" ]; then

-- 
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/20120508/331e3eab/attachment.pgp


More information about the svn-src-all mailing list