Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
objlayout.c File Reference
#include <linux/kmod.h>
#include <linux/moduleparam.h>
#include <linux/ratelimit.h>
#include <scsi/osd_initiator.h>
#include "objlayout.h"

Go to the source code of this file.

Data Structures

struct  objlayout_deviceinfo
 
struct  __auto_login
 

Macros

#define NFSDBG_FACILITY   NFSDBG_PNFS_LD
 

Enumerations

enum  { OBJLAYOUT_MAX_URI_LEN = 256, OBJLAYOUT_MAX_OSDNAME_LEN = 64, OBJLAYOUT_MAX_SYSID_HEX_LEN = OSD_SYSTEMID_LEN * 2 + 1, OSD_LOGIN_UPCALL_PATHLEN = 256 }
 

Functions

struct pnfs_layout_hdr * objlayout_alloc_layout_hdr (struct inode *inode, gfp_t gfp_flags)
 
void objlayout_free_layout_hdr (struct pnfs_layout_hdr *lo)
 
struct pnfs_layout_segmentobjlayout_alloc_lseg (struct pnfs_layout_hdr *pnfslay, struct nfs4_layoutget_res *lgr, gfp_t gfp_flags)
 
void objlayout_free_lseg (struct pnfs_layout_segment *lseg)
 
void objlayout_io_set_result (struct objlayout_io_res *oir, unsigned index, struct pnfs_osd_objid *pooid, int osd_error, u64 offset, u64 length, bool is_write)
 
void objlayout_read_done (struct objlayout_io_res *oir, ssize_t status, bool sync)
 
enum pnfs_try_status objlayout_read_pagelist (struct nfs_read_data *rdata)
 
void objlayout_write_done (struct objlayout_io_res *oir, ssize_t status, bool sync)
 
enum pnfs_try_status objlayout_write_pagelist (struct nfs_write_data *wdata, int how)
 
void objlayout_encode_layoutcommit (struct pnfs_layout_hdr *pnfslay, struct xdr_stream *xdr, const struct nfs4_layoutcommit_args *args)
 
void objlayout_encode_layoutreturn (struct pnfs_layout_hdr *pnfslay, struct xdr_stream *xdr, const struct nfs4_layoutreturn_args *args)
 
int objlayout_get_deviceinfo (struct pnfs_layout_hdr *pnfslay, struct nfs4_deviceid *d_id, struct pnfs_osd_deviceaddr **deviceaddr, gfp_t gfp_flags)
 
void objlayout_put_deviceinfo (struct pnfs_osd_deviceaddr *deviceaddr)
 
 module_param_string (osd_login_prog, osd_login_prog, sizeof(osd_login_prog), 0600)
 
 MODULE_PARM_DESC (osd_login_prog,"Path to the osd_login upcall program")
 
int objlayout_autologin (struct pnfs_osd_deviceaddr *deviceaddr)
 

Macro Definition Documentation

#define NFSDBG_FACILITY   NFSDBG_PNFS_LD

Definition at line 46 of file objlayout.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
OBJLAYOUT_MAX_URI_LEN 
OBJLAYOUT_MAX_OSDNAME_LEN 
OBJLAYOUT_MAX_SYSID_HEX_LEN 
OSD_LOGIN_UPCALL_PATHLEN 

Definition at line 659 of file objlayout.c.

Function Documentation

module_param_string ( osd_login_prog  ,
osd_login_prog  ,
sizeof(osd_login_prog)  ,
0600   
)
MODULE_PARM_DESC ( osd_login_prog  ,
"Path to the osd_login upcall program"   
)
struct pnfs_layout_hdr* objlayout_alloc_layout_hdr ( struct inode inode,
gfp_t  gfp_flags 
)
read

Definition at line 51 of file objlayout.c.

struct pnfs_layout_segment* objlayout_alloc_lseg ( struct pnfs_layout_hdr *  pnfslay,
struct nfs4_layoutget_res lgr,
gfp_t  gfp_flags 
)
read

Definition at line 82 of file objlayout.c.

int objlayout_autologin ( struct pnfs_osd_deviceaddr deviceaddr)

Definition at line 764 of file objlayout.c.

void objlayout_encode_layoutcommit ( struct pnfs_layout_hdr *  pnfslay,
struct xdr_stream *  xdr,
const struct nfs4_layoutcommit_args args 
)

Definition at line 385 of file objlayout.c.

void objlayout_encode_layoutreturn ( struct pnfs_layout_hdr *  pnfslay,
struct xdr_stream *  xdr,
const struct nfs4_layoutreturn_args args 
)

Definition at line 521 of file objlayout.c.

void objlayout_free_layout_hdr ( struct pnfs_layout_hdr *  lo)

Definition at line 68 of file objlayout.c.

void objlayout_free_lseg ( struct pnfs_layout_segment lseg)

Definition at line 129 of file objlayout.c.

int objlayout_get_deviceinfo ( struct pnfs_layout_hdr *  pnfslay,
struct nfs4_deviceid d_id,
struct pnfs_osd_deviceaddr **  deviceaddr,
gfp_t  gfp_flags 
)

Definition at line 604 of file objlayout.c.

void objlayout_io_set_result ( struct objlayout_io_res oir,
unsigned  index,
struct pnfs_osd_objid pooid,
int  osd_error,
u64  offset,
u64  length,
bool  is_write 
)

Definition at line 206 of file objlayout.c.

void objlayout_put_deviceinfo ( struct pnfs_osd_deviceaddr deviceaddr)

Definition at line 649 of file objlayout.c.

void objlayout_read_done ( struct objlayout_io_res oir,
ssize_t  status,
bool  sync 
)

Definition at line 253 of file objlayout.c.

enum pnfs_try_status objlayout_read_pagelist ( struct nfs_read_data rdata)

Definition at line 280 of file objlayout.c.

void objlayout_write_done ( struct objlayout_io_res oir,
ssize_t  status,
bool  sync 
)

Definition at line 336 of file objlayout.c.

enum pnfs_try_status objlayout_write_pagelist ( struct nfs_write_data wdata,
int  how 
)

Definition at line 365 of file objlayout.c.