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

Go to the source code of this file.

Data Structures

struct  ore_comp
 
struct  ore_layout
 
struct  ore_dev
 
struct  ore_components
 
struct  ore_striping_info
 
struct  _ore_r4w_op
 
struct  ore_io_state
 
struct  ore_io_state::ore_per_dev_state
 

Typedefs

typedef void(* ore_io_done_fn )(struct ore_io_state *ios, void *private)
 
typedef void(* ore_on_dev_error )(struct ore_io_state *ios, struct ore_dev *od, unsigned dev_index, enum osd_err_priority oep, u64 dev_offset, u64 dev_len)
 

Functions

int ore_verify_layout (unsigned total_comps, struct ore_layout *layout)
 
void ore_calc_stripe_info (struct ore_layout *layout, u64 file_offset, u64 length, struct ore_striping_info *si)
 
int ore_get_rw_state (struct ore_layout *layout, struct ore_components *comps, bool is_reading, u64 offset, u64 length, struct ore_io_state **ios)
 
int ore_get_io_state (struct ore_layout *layout, struct ore_components *comps, struct ore_io_state **ios)
 
void ore_put_io_state (struct ore_io_state *ios)
 
int ore_check_io (struct ore_io_state *ios, ore_on_dev_error rep)
 
int ore_create (struct ore_io_state *ios)
 
int ore_remove (struct ore_io_state *ios)
 
int ore_write (struct ore_io_state *ios)
 
int ore_read (struct ore_io_state *ios)
 
int ore_truncate (struct ore_layout *layout, struct ore_components *comps, u64 size)
 
int extract_attr_from_ios (struct ore_io_state *ios, struct osd_attr *attr)
 

Variables

struct osd_attr g_attr_logical_length
 

Typedef Documentation

typedef void(* ore_io_done_fn)(struct ore_io_state *ios, void *private)

Definition at line 108 of file osd_ore.h.

typedef void(* ore_on_dev_error)(struct ore_io_state *ios, struct ore_dev *od, unsigned dev_index, enum osd_err_priority oep, u64 dev_offset, u64 dev_len)

Definition at line 184 of file osd_ore.h.

Function Documentation

int extract_attr_from_ios ( struct ore_io_state ios,
struct osd_attr attr 
)

Definition at line 987 of file ore.c.

void ore_calc_stripe_info ( struct ore_layout layout,
u64  file_offset,
u64  length,
struct ore_striping_info si 
)

Definition at line 516 of file ore.c.

int ore_check_io ( struct ore_io_state ios,
ore_on_dev_error  rep 
)

Definition at line 414 of file ore.c.

int ore_create ( struct ore_io_state ios)

Definition at line 741 of file ore.c.

int ore_get_io_state ( struct ore_layout layout,
struct ore_components comps,
struct ore_io_state **  ios 
)

Definition at line 305 of file ore.c.

int ore_get_rw_state ( struct ore_layout layout,
struct ore_components comps,
bool  is_reading,
u64  offset,
u64  length,
struct ore_io_state **  ios 
)

Definition at line 237 of file ore.c.

void ore_put_io_state ( struct ore_io_state ios)

Definition at line 312 of file ore.c.

int ore_read ( struct ore_io_state ios)

Definition at line 967 of file ore.c.

int ore_remove ( struct ore_io_state ios)

Definition at line 766 of file ore.c.

int ore_truncate ( struct ore_layout layout,
struct ore_components comps,
u64  size 
)

Definition at line 1055 of file ore.c.

int ore_verify_layout ( unsigned  total_comps,
struct ore_layout layout 
)

Definition at line 49 of file ore.c.

int ore_write ( struct ore_io_state ios)

Definition at line 885 of file ore.c.

Variable Documentation

struct osd_attr g_attr_logical_length

Definition at line 1117 of file ore.c.