ore/exofs: Define new ore_verify_layout
authorBoaz Harrosh <bharrosh@panasas.com>
Wed, 28 Sep 2011 10:18:45 +0000 (13:18 +0300)
committerBoaz Harrosh <bharrosh@panasas.com>
Fri, 14 Oct 2011 16:54:41 +0000 (18:54 +0200)
commit5a51c0c7e9a913649aa65d8233470682bcbb7694
tree4ed43b3a2f9fade227e098771a5bed66f6a71dc4
parent3bd9856857339d7ee8c4ad50030583f1b9415c39
ore/exofs: Define new ore_verify_layout

All users of the ore will need to check if current code
supports the given layout. For example RAID5/6 is not
currently supported.

So move all the checks from exofs/super.c to a new
ore_verify_layout() to be used by ore users.

Note that any new layout should be passed through the
ore_verify_layout() because the ore engine will prepare
and verify some internal members of ore_layout, and
assumes it's called.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
fs/exofs/inode.c
fs/exofs/ore.c
fs/exofs/super.c
include/scsi/osd_ore.h