From 8e3d8b71fb4ec61f93d6fdcdaf8afe2f25fdda10 Mon Sep 17 00:00:00 2001 From: Johann Lombardi Date: Fri, 26 Sep 2014 21:19:13 +0200 Subject: [PATCH] LU-5675 quota: correctly set II_FL_NONUNQ in dt_index_read() Fix regression introduced by 60e07b972114df24105a3a1bfa7365892f72a4a7 II_FL_NONUNQ should be set in the index information only when the backend index supports DT_IND_NONUNQ. This mistake triggers the following warning in the qsd code: Lustre: 25029:0:(qsd_reint.c:237:qsd_reint_index()) lustre-MDT0000: II_FL_NONUNQ is set on index transfer for fid [0x200000005:0x1011:0x0], it shouldn't be Signed-off-by: Johann Lombardi Change-Id: I42a9c70666c741064b356ffd253b49e5ed7b3e93 Reviewed-on: http://review.whamcloud.com/12074 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Alex Zhuravlev Reviewed-by: wangdi Reviewed-by: Oleg Drokin --- lustre/obdclass/dt_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdclass/dt_object.c b/lustre/obdclass/dt_object.c index d6f82c7..460cbeb 100644 --- a/lustre/obdclass/dt_object.c +++ b/lustre/obdclass/dt_object.c @@ -926,7 +926,7 @@ int dt_index_read(const struct lu_env *env, struct dt_device *dev, if (!(feat->dif_flags & DT_IND_VARREC)) ii->ii_recsize = feat->dif_recsize_max; - if (!(feat->dif_flags & DT_IND_NONUNQ)) + if (feat->dif_flags & DT_IND_NONUNQ) /* key isn't necessarily unique */ ii->ii_flags |= II_FL_NONUNQ; -- 1.8.3.1