Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269241
b: refs/heads/master
c: 44231e6
h: refs/heads/master
i:
  269239: 36f8ad5
v: v3
  • Loading branch information
Boaz Harrosh committed Oct 25, 2011
1 parent 2364365 commit ee47ef9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dd296619974c50c46c67e58f355a7e85ef3f0c01
refs/heads/master: 44231e686b2ba3b5702db867bb84e6d76b7cf2c7
14 changes: 11 additions & 3 deletions trunk/fs/exofs/ore.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,17 @@ int ore_verify_layout(unsigned total_comps, struct ore_layout *layout)
{
u64 stripe_length;

/* FIXME: Only raid0 is supported for now. */
if (layout->raid_algorithm != PNFS_OSD_RAID_0) {
ORE_ERR("Only RAID_0 for now\n");
switch (layout->raid_algorithm) {
case PNFS_OSD_RAID_0:
layout->parity = 0;
break;
case PNFS_OSD_RAID_5:
layout->parity = 1;
break;
case PNFS_OSD_RAID_PQ:
case PNFS_OSD_RAID_4:
default:
ORE_ERR("Only RAID_0/5 for now\n");
return -EINVAL;
}
if (0 != (layout->stripe_unit & ~PAGE_MASK)) {
Expand Down

0 comments on commit ee47ef9

Please sign in to comment.