Boaz Harrosh 3bd9856857 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>
2011-10-14 18:54:41 +02:00
..
2011-03-31 11:26:23 -03:00
2011-08-18 16:55:10 +00:00
2011-05-19 16:55:28 +09:30
2011-09-12 11:47:10 -07:00
2011-07-27 22:21:58 -04:00
2011-07-22 19:42:12 -04:00
2011-03-31 11:26:23 -03:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 13:05:28 -04:00
2011-03-10 08:52:07 +01:00
2011-04-14 16:06:56 -07:00
2011-09-01 09:46:11 -05:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-03-21 00:16:08 -04:00
2011-07-20 20:23:19 -04:00
2011-05-26 10:01:43 -06:00
2011-07-25 20:57:11 -07:00
2011-08-03 14:25:24 -10:00
2011-03-14 09:15:28 -04:00