Whamcloud - gitweb
b=19486 add server identifier into lu_seq_range.
[fs/lustre-release.git] / lustre / fld / fld_index.c
index aa0c748..dd7b1de 100644 (file)
@@ -26,7 +26,7 @@
  * GPL HEADER END
  */
 /*
- * Copyright  2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  */
 /*
@@ -69,7 +69,8 @@ const char fld_index_name[] = "fld";
 static const struct lu_seq_range IGIF_FLD_RANGE = {
         .lsr_start = 1,
         .lsr_end   = FID_SEQ_IDIF,
-        .lsr_mdt   = 0
+        .lsr_index   = 0,
+        .lsr_flags  = LU_SEQ_RANGE_MDT
 };
 
 const struct dt_index_features fld_index_features = {
@@ -206,13 +207,15 @@ int fld_index_delete(struct lu_server_fld *fld,
 }
 
 /**
- * lookup range for a seq passed
+ * lookup range for a seq passed. note here we only care about the start/end,
+ * caller should handle the attached location data (flags, index).
  *
- *      \param  seq     seq for lookup.
- *      \param  range   result of lookup.
+ * \param  seq     seq for lookup.
+ * \param  range   result of lookup.
  *
- *      \retval  0  success
- *      \retval  -ve error
+ * \retval  0           found, \a range is the matched range;
+ * \retval -ENOENT      not found, \a range is the left-side range;
+ * \retval  -ve         other error;
  */
 
 int fld_index_lookup(struct lu_server_fld *fld,