/*1* Copyright (C) 2008, 20092* Boaz Harrosh <[email protected]>3*4* This file is part of exofs.5*6* exofs is free software; you can redistribute it and/or modify it under the7* terms of the GNU General Public License version 2 as published by the Free8* Software Foundation.9*10*/1112/* FIXME: Remove this file once pnfs hits mainline */1314#ifndef __EXOFS_PNFS_H__15#define __EXOFS_PNFS_H__1617#if ! defined(__PNFS_OSD_XDR_H__)1819enum pnfs_iomode {20IOMODE_READ = 1,21IOMODE_RW = 2,22IOMODE_ANY = 3,23};2425/* Layout Structure */26enum pnfs_osd_raid_algorithm4 {27PNFS_OSD_RAID_0 = 1,28PNFS_OSD_RAID_4 = 2,29PNFS_OSD_RAID_5 = 3,30PNFS_OSD_RAID_PQ = 4 /* Reed-Solomon P+Q */31};3233struct pnfs_osd_data_map {34u32 odm_num_comps;35u64 odm_stripe_unit;36u32 odm_group_width;37u32 odm_group_depth;38u32 odm_mirror_cnt;39u32 odm_raid_algorithm;40};4142#endif /* ! defined(__PNFS_OSD_XDR_H__) */4344#endif /* __EXOFS_PNFS_H__ */454647