From 8f3ad5c25c28bea178d28c0a0b57119f37f71988 Mon Sep 17 00:00:00 2001 From: wangdi Date: Tue, 17 Oct 2006 11:16:17 +0000 Subject: [PATCH] Branch: b_new_cmd check group correctly for filter precreate --- lustre/obdfilter/filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index 8827ca3..5fb77d9 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -3134,7 +3134,7 @@ static int filter_handle_precreate(struct obd_export *exp, struct obdo *oa, GOTO(out, rc = 0); } /* only precreate if group == 0 and o_id is specfied */ - if (group != 0 || oa->o_id == 0) + if (group < FILTER_GROUP_MDS0 || oa->o_id == 0) diff = 1; else diff = oa->o_id - filter_last_id(filter, group); -- 1.8.3.1