From 57922095e634673f4841912ee794ff209c77606b Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Wed, 23 May 2012 11:55:01 +0400 Subject: [PATCH] LU-1305 osd: new index flag DT_IND_RANGE introduced in orion to recognize whether the index support range lookups (used by fldb) Signed-off-by: Alex Zhuravlev Change-Id: I40efa613697ebe8394557d5f687132ca9f542859 Reviewed-on: http://review.whamcloud.com/2883 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/include/dt_object.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lustre/include/dt_object.h b/lustre/include/dt_object.h index d05b002..7e41e6c 100644 --- a/lustre/include/dt_object.h +++ b/lustre/include/dt_object.h @@ -200,7 +200,12 @@ enum dt_index_flags { /** index can be modified */ DT_IND_UPDATE = 1 << 2, /** index supports records with non-unique (duplicate) keys */ - DT_IND_NONUNQ = 1 << 3 + DT_IND_NONUNQ = 1 << 3, + /** + * index support fixed-size keys sorted with natural numerical way + * and is able to return left-side value if no exact value found + */ + DT_IND_RANGE = 1 << 4, }; /** -- 1.8.3.1