···46464747struct pnfs_block_dev;48484949-enum pnfs_block_volume_type {5050- PNFS_BLOCK_VOLUME_SIMPLE = 0,5151- PNFS_BLOCK_VOLUME_SLICE = 1,5252- PNFS_BLOCK_VOLUME_CONCAT = 2,5353- PNFS_BLOCK_VOLUME_STRIPE = 3,5454-};5555-5649#define PNFS_BLOCK_MAX_UUIDS 45750#define PNFS_BLOCK_MAX_DEVICES 645851···110117 struct pnfs_block_dev_map *map);111118};112119113113-enum exstate4 {114114- PNFS_BLOCK_READWRITE_DATA = 0,115115- PNFS_BLOCK_READ_DATA = 1,116116- PNFS_BLOCK_INVALID_DATA = 2, /* mapped, but data is invalid */117117- PNFS_BLOCK_NONE_DATA = 3 /* unmapped, it's a hole */118118-};119119-120120/* sector_t fields are all in 512-byte sectors */121121struct pnfs_block_extent {122122 union {···120134 sector_t be_f_offset; /* the starting offset in the file */121135 sector_t be_length; /* the size of the extent */122136 sector_t be_v_offset; /* the starting offset in the volume */123123- enum exstate4 be_state; /* the state of this extent */137137+ enum pnfs_block_extent_state be_state; /* the state of this extent */124138#define EXTENT_WRITTEN 1125139#define EXTENT_COMMITTING 2126140 unsigned int be_tag;127141};128128-129129-/* on the wire size of the extent */130130-#define BL_EXTENT_SIZE (7 * sizeof(__be32) + NFS4_DEVICEID4_SIZE)131142132143struct pnfs_block_layout {133144 struct pnfs_layout_hdr bl_layout;