Whamcloud - gitweb
LU-8748 osd-zfs: set block size of echo object 23/23323/3
authorNiu Yawei <yawei.niu@intel.com>
Mon, 24 Oct 2016 04:38:39 +0000 (00:38 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 28 Oct 2016 23:50:29 +0000 (23:50 +0000)
Set block size for zfs echo object.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I6efab645181ab3de6686bf82f4ecbf9ea3384b1b
Reviewed-on: http://review.whamcloud.com/23323
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-zfs/osd_object.c

index 33cf2d3..2a05199 100644 (file)
@@ -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 (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
                /* 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