Print this page
3740 Poor ZFS send / receive performance due to snapshot hold / release processing
Submitted by: Steven Hartland <steven.hartland@multiplay.co.uk>
*** 201,211 ****
zfs_close(zhp);
return (-1);
}
p = strchr(snapname, '@') + 1;
! if (zfs_hold(zhp, p, jname, recursive, B_FALSE, cleanup_fd) != 0) {
NDMP_LOG(LOG_ERR, "Cannot hold snapshot %s", p);
zfs_close(zhp);
return (-1);
}
zfs_close(zhp);
--- 201,211 ----
zfs_close(zhp);
return (-1);
}
p = strchr(snapname, '@') + 1;
! if (zfs_hold(zhp, p, jname, recursive, cleanup_fd) != 0) {
NDMP_LOG(LOG_ERR, "Cannot hold snapshot %s", p);
zfs_close(zhp);
return (-1);
}
zfs_close(zhp);