# 8 22 40 165 (min)
[ "$SLOW" = "no" ] && EXCEPT_SLOW="45 69 106 111 114"
+if [[ "$mds1_FSTYPE" == "zfs" ]]; then
+ always_except LU-18652 32b 32c 32e 32h
+ always_except LU-18652 108a 112a 112b 113 117 119 121 122a
+ always_except LU-18652 123aa 123ab 123ac 123ad 123ae 123af 123ag 123ah 123ahi
+ always_except LU-18652 123F 123G 123H 126 129 132 133 135 136 137 150 152 153a 153b 153c 155 802a
+fi
+
build_test_filter
# use small MDS + OST size to speed formatting time
* zfs 0.6.1 - system attribute based xattrs
* zfs 0.6.5 - large block support
* zfs 0.7.0 - large dnode support
+ * zfs 2.2.6 - compression handling
*
* Check if zhp is NULL as a defensive measure. Any dataset
* validation errors that would cause zfs_open() to fail
*/
zhp = zfs_open(g_zfs, ds, ZFS_TYPE_FILESYSTEM);
if (zhp) {
+ char *opt;
+
/* zfs 0.6.1 - system attribute based xattrs */
if (!strstr(mop->mo_mkfsopts, "xattr="))
zfs_set_prop_str(zhp, "xattr", "sa");
zfs_set_prop_str(zhp, "recordsize", "1M");
}
+ /* zfs 2.2.6 - compression handling */
+ opt = strstr(mop->mo_mkfsopts, "compression=");
+ if (opt) {
+ char *end = index(opt, ',');
+ size_t len = strlen(opt);
+
+ if (end) {
+ len = end - opt;
+ end = strndup(opt, len);
+ }
+ zfs_set_prop_str(zhp, "compression", end ? end : opt);
+ if (end)
+ free(end);
+ } else {
+ /* By default turn off compression */
+ zfs_set_prop_str(zhp, "compression", "off");
+ }
+
zfs_close(zhp);
}