LASSERT(index < lsm->lsm_entry_count);
+ if (lsme_is_dom(entry))
+ return (loff_t)entry->lsme_stripe_size;
+
return (loff_t)entry->lsme_stripe_size * entry->lsme_stripe_count;
}
loff_t stripe_off;
loff_t this_stripe;
loff_t swidth;
- int ret = 0;
+ int ret = 0;
- if (lov_off == OBD_OBJECT_EOF) {
- *obdoff = OBD_OBJECT_EOF;
- return 0;
- }
+ if (lov_off == OBD_OBJECT_EOF) {
+ *obdoff = OBD_OBJECT_EOF;
+ return 0;
+ }
swidth = stripe_width(lsm, index);
loff_t this_stripe;
loff_t swidth;
- if (file_size == OBD_OBJECT_EOF)
- return OBD_OBJECT_EOF;
+ if (file_size == OBD_OBJECT_EOF)
+ return OBD_OBJECT_EOF;
swidth = stripe_width(lsm, index);