Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
pnfs_osd_xdr.h File Reference
#include <linux/nfs_fs.h>

Go to the source code of this file.

Data Structures

struct  pnfs_osd_data_map
 
struct  pnfs_osd_objid
 
struct  pnfs_osd_opaque_cred
 
struct  pnfs_osd_object_cred
 
struct  pnfs_osd_layout
 
struct  pnfs_osd_targetid
 
struct  pnfs_osd_net_addr
 
struct  pnfs_osd_targetaddr
 
struct  pnfs_osd_deviceaddr
 
struct  pnfs_osd_layoutupdate
 
struct  pnfs_osd_ioerr
 
struct  pnfs_osd_xdr_decode_layout_iter
 

Macros

#define _DEVID_LO(oid_device_id)   (unsigned long long)be64_to_cpup((__be64 *)(oid_device_id)->data)
 
#define _DEVID_HI(oid_device_id)   (unsigned long long)be64_to_cpup(((__be64 *)(oid_device_id)->data) + 1)
 

Enumerations

enum  pnfs_osd_raid_algorithm4 { PNFS_OSD_RAID_0 = 1, PNFS_OSD_RAID_4 = 2, PNFS_OSD_RAID_5 = 3, PNFS_OSD_RAID_PQ = 4 }
 
enum  pnfs_osd_version { PNFS_OSD_MISSING = 0, PNFS_OSD_VERSION_1 = 1, PNFS_OSD_VERSION_2 = 2 }
 
enum  pnfs_osd_cap_key_sec { PNFS_OSD_CAP_KEY_SEC_NONE = 0, PNFS_OSD_CAP_KEY_SEC_SSV = 1 }
 
enum  pnfs_osd_targetid_type { OBJ_TARGET_ANON = 1, OBJ_TARGET_SCSI_NAME = 2, OBJ_TARGET_SCSI_DEVICE_ID = 3 }
 
enum  pnfs_osd_errno {
  PNFS_OSD_ERR_EIO = 1, PNFS_OSD_ERR_NOT_FOUND = 2, PNFS_OSD_ERR_NO_SPACE = 3, PNFS_OSD_ERR_BAD_CRED = 4,
  PNFS_OSD_ERR_NO_ACCESS = 5, PNFS_OSD_ERR_UNREACHABLE = 6, PNFS_OSD_ERR_RESOURCE = 7
}
 

Functions

int pnfs_osd_xdr_decode_layout_map (struct pnfs_osd_layout *layout, struct pnfs_osd_xdr_decode_layout_iter *iter, struct xdr_stream *xdr)
 
bool pnfs_osd_xdr_decode_layout_comp (struct pnfs_osd_object_cred *comp, struct pnfs_osd_xdr_decode_layout_iter *iter, struct xdr_stream *xdr, int *err)
 
void pnfs_osd_xdr_decode_deviceaddr (struct pnfs_osd_deviceaddr *deviceaddr, __be32 *p)
 
int pnfs_osd_xdr_encode_layoutupdate (struct xdr_stream *xdr, struct pnfs_osd_layoutupdate *lou)
 
__be32pnfs_osd_xdr_ioerr_reserve_space (struct xdr_stream *xdr)
 
void pnfs_osd_xdr_encode_ioerr (__be32 *p, struct pnfs_osd_ioerr *ioerr)
 

Macro Definition Documentation

#define _DEVID_HI (   oid_device_id)    (unsigned long long)be64_to_cpup(((__be64 *)(oid_device_id)->data) + 1)

Definition at line 95 of file pnfs_osd_xdr.h.

#define _DEVID_LO (   oid_device_id)    (unsigned long long)be64_to_cpup((__be64 *)(oid_device_id)->data)

Definition at line 92 of file pnfs_osd_xdr.h.

Enumeration Type Documentation

Enumerator:
PNFS_OSD_CAP_KEY_SEC_NONE 
PNFS_OSD_CAP_KEY_SEC_SSV 

Definition at line 109 of file pnfs_osd_xdr.h.

Enumerator:
PNFS_OSD_ERR_EIO 
PNFS_OSD_ERR_NOT_FOUND 
PNFS_OSD_ERR_NO_SPACE 
PNFS_OSD_ERR_BAD_CRED 
PNFS_OSD_ERR_NO_ACCESS 
PNFS_OSD_ERR_UNREACHABLE 
PNFS_OSD_ERR_RESOURCE 

Definition at line 229 of file pnfs_osd_xdr.h.

Enumerator:
PNFS_OSD_RAID_0 
PNFS_OSD_RAID_4 
PNFS_OSD_RAID_5 
PNFS_OSD_RAID_PQ 

Definition at line 51 of file pnfs_osd_xdr.h.

Enumerator:
OBJ_TARGET_ANON 
OBJ_TARGET_SCSI_NAME 
OBJ_TARGET_SCSI_DEVICE_ID 

Definition at line 144 of file pnfs_osd_xdr.h.

Enumerator:
PNFS_OSD_MISSING 
PNFS_OSD_VERSION_1 
PNFS_OSD_VERSION_2 

Definition at line 98 of file pnfs_osd_xdr.h.

Function Documentation

void pnfs_osd_xdr_decode_deviceaddr ( struct pnfs_osd_deviceaddr deviceaddr,
__be32 p 
)

Definition at line 327 of file pnfs_osd_xdr_cli.c.

bool pnfs_osd_xdr_decode_layout_comp ( struct pnfs_osd_object_cred comp,
struct pnfs_osd_xdr_decode_layout_iter iter,
struct xdr_stream *  xdr,
int err 
)

Definition at line 180 of file pnfs_osd_xdr_cli.c.

int pnfs_osd_xdr_decode_layout_map ( struct pnfs_osd_layout layout,
struct pnfs_osd_xdr_decode_layout_iter iter,
struct xdr_stream *  xdr 
)

Definition at line 159 of file pnfs_osd_xdr_cli.c.

void pnfs_osd_xdr_encode_ioerr ( __be32 p,
struct pnfs_osd_ioerr ioerr 
)

Definition at line 397 of file pnfs_osd_xdr_cli.c.

int pnfs_osd_xdr_encode_layoutupdate ( struct xdr_stream *  xdr,
struct pnfs_osd_layoutupdate lou 
)

Definition at line 355 of file pnfs_osd_xdr_cli.c.

__be32* pnfs_osd_xdr_ioerr_reserve_space ( struct xdr_stream *  xdr)

Definition at line 406 of file pnfs_osd_xdr_cli.c.