* 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.
*/
/*
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 = {
}
/**
- * 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,