summaryrefslogtreecommitdiff
path: root/fs/exofs/ore.c
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2011-09-28 13:04:23 +0400
committerBoaz Harrosh <bharrosh@panasas.com>2011-10-14 20:54:41 +0400
commit3bd9856857339d7ee8c4ad50030583f1b9415c39 (patch)
treefa5d950b9beffa2a10bc698d452ae50b8e195d5e /fs/exofs/ore.c
parentbbf9a31bba8c985780fe94da059cc5813a7920f5 (diff)
downloadlinux-3bd9856857339d7ee8c4ad50030583f1b9415c39.tar.xz
ore: Support for partial component table
Users like the objlayout-driver would like to only pass a partial device table that covers the IO in question. For example exofs divides the file into raid-group-sized chunks and only serves group_width number of devices at a time. The partiality is communicated by setting ore_componets->first_dev and the array covers all logical devices from oc->first_dev upto (oc->first_dev + oc->numdevs) The ore_comp_dev() API receives a logical device index and returns the actual present device in the table. An out-of-range dev_index will BUG. Logical device index is the theoretical device index as if all the devices of a file are present. .i.e: total_devs = group_width * mirror_p1 * group_count 0 <= dev_index < total_devs Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Diffstat (limited to 'fs/exofs/ore.c')
-rw-r--r--fs/exofs/ore.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/exofs/ore.c b/fs/exofs/ore.c
index 8354fe061d1c..f1b718028a1f 100644
--- a/fs/exofs/ore.c
+++ b/fs/exofs/ore.c
@@ -62,6 +62,10 @@ static struct osd_obj_id *_ios_obj(struct ore_io_state *ios, unsigned index)
static struct osd_dev *_ios_od(struct ore_io_state *ios, unsigned index)
{
+ ORE_DBGMSG2("oc->first_dev=%d oc->numdevs=%d i=%d oc->ods=%p\n",
+ ios->oc->first_dev, ios->oc->numdevs, index,
+ ios->oc->ods);
+
return ore_comp_dev(ios->oc, index);
}