[Midnightbsd-cvs] src [9728] trunk/sys/boot/zfs/zfsimpl.c: add lz4 flag for read
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Dec 22 15:37:38 EST 2017
Revision: 9728
http://svnweb.midnightbsd.org/src/?rev=9728
Author: laffer1
Date: 2017-12-22 15:37:38 -0500 (Fri, 22 Dec 2017)
Log Message:
-----------
add lz4 flag for read
Modified Paths:
--------------
trunk/sys/boot/zfs/zfsimpl.c
Modified: trunk/sys/boot/zfs/zfsimpl.c
===================================================================
--- trunk/sys/boot/zfs/zfsimpl.c 2017-12-22 20:33:33 UTC (rev 9727)
+++ trunk/sys/boot/zfs/zfsimpl.c 2017-12-22 20:37:38 UTC (rev 9728)
@@ -25,6 +25,7 @@
*/
#include <sys/cdefs.h>
+/* $FreeBSD: stable/9/sys/boot/zfs/zfsimpl.c 284510 2015-06-17 11:48:00Z avg $ */
__MBSDID("$MidnightBSD$");
/*
@@ -53,6 +54,9 @@
* List of ZFS features supported for read
*/
static const char *features_for_read[] = {
+ "org.illumos:lz4_compress",
+ "com.delphix:hole_birth",
+ "com.delphix:extensible_dataset",
NULL
};
@@ -1217,6 +1221,10 @@
ibn = bn >> ((nlevels - i - 1) * ibshift);
ibn &= ((1 << ibshift) - 1);
bp = indbp[ibn];
+ if (BP_IS_HOLE(&bp)) {
+ memset(dnode_cache_buf, 0, bsize);
+ break;
+ }
rc = zio_read(spa, &bp, dnode_cache_buf);
if (rc)
return (rc);
More information about the Midnightbsd-cvs
mailing list