From 64191ab6bb01d909453fc318e038f80d8ef548d9 Mon Sep 17 00:00:00 2001 From: Niu Yawei Date: Mon, 24 Oct 2016 00:38:39 -0400 Subject: [PATCH] LU-8748 osd-zfs: set block size of echo object Set block size for zfs echo object. Signed-off-by: Niu Yawei Change-Id: I6efab645181ab3de6686bf82f4ecbf9ea3384b1b Reviewed-on: http://review.whamcloud.com/23323 Reviewed-by: Alex Zhuravlev Reviewed-by: Nathaniel Clark Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/osd-zfs/osd_object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/osd-zfs/osd_object.c b/lustre/osd-zfs/osd_object.c index 33cf2d3..2a05199 100644 --- a/lustre/osd-zfs/osd_object.c +++ b/lustre/osd-zfs/osd_object.c @@ -1371,7 +1371,8 @@ static dmu_buf_t *osd_mkreg(const struct lu_env *env, struct osd_object *obj, if (rc) return ERR_PTR(rc); - if ((fid_is_idif(fid) || fid_is_norm(fid)) && osd->od_is_ost) { + if ((fid_is_idif(fid) || fid_is_norm(fid) || fid_is_echo(fid)) && + osd->od_is_ost) { /* The minimum block size must be at least page size otherwise * it will break the assumption in tgt_thread_big_cache where * the array size is PTLRPC_MAX_BRW_PAGES. It will also affect -- 1.8.3.1