* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2012, 2015, Intel Corporation.
+ * Copyright (c) 2012, 2017, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
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);