Motr  M0
m0_storage_dev Struct Reference

#include <storage_dev.h>

Collaboration diagram for m0_storage_dev:
Collaboration graph

Data Fields

enum m0_storage_dev_type isd_type
 
struct m0_stobisd_stob
 
struct m0_stob_domainisd_domain
 
uint64_t isd_cid
 
struct m0_tlink isd_linkage
 
struct m0_clink isd_clink
 
enum m0_ha_obj_state isd_ha_state
 
enum m0_conf_service_type isd_srv_type
 
uint64_t isd_magic
 
struct m0_ref isd_ref
 
struct m0_chan isd_detached_chan
 
struct m0_mutex isd_detached_lock
 
char * isd_filename
 

Detailed Description

Data structure represents storage device object.

Definition at line 73 of file storage_dev.h.

Field Documentation

◆ isd_cid

uint64_t isd_cid

Storage device ID.

Definition at line 81 of file storage_dev.h.

◆ isd_clink

struct m0_clink isd_clink

A link to receive HA state change notification. It waits on disk obj's wait channel, m0_conf_obj::co_ha_chan.

Definition at line 88 of file storage_dev.h.

◆ isd_detached_chan

struct m0_chan isd_detached_chan

Signalled when the last reference is released and the object is detached.

Definition at line 106 of file storage_dev.h.

◆ isd_detached_lock

struct m0_mutex isd_detached_lock

Definition at line 107 of file storage_dev.h.

◆ isd_domain

struct m0_stob_domain* isd_domain

Stob domain for stobs of device.

Definition at line 79 of file storage_dev.h.

◆ isd_filename

char* isd_filename

Filename duplicated from m0_conf_sdev::sd_filename after expired conf event is fired. The name is needed for matching existing storage device against newly delivered conf when the one becomes ready.

Note
No guarantee the field is valid under any circumstances other than matching on conf ready event!

Definition at line 116 of file storage_dev.h.

◆ isd_ha_state

enum m0_ha_obj_state isd_ha_state

HA state associated with the disk corresponding to the storage device.

Definition at line 92 of file storage_dev.h.

◆ isd_linkage

struct m0_tlink isd_linkage

Linkage into list of storage devices.

Definition at line 83 of file storage_dev.h.

◆ isd_magic

uint64_t isd_magic

Magic for isd_linkage

Definition at line 96 of file storage_dev.h.

◆ isd_ref

struct m0_ref isd_ref

Reference counter. Stob attach operation and a user which performs I/O to the stob must hold reference to this object.

Definition at line 101 of file storage_dev.h.

◆ isd_srv_type

enum m0_conf_service_type isd_srv_type

Type of the parent service.

Definition at line 94 of file storage_dev.h.

◆ isd_stob

struct m0_stob* isd_stob

Linux stob which is backing store for the AD stob domain.

Definition at line 77 of file storage_dev.h.

◆ isd_type

enum m0_storage_dev_type isd_type

Type of underlying stobs.

Definition at line 75 of file storage_dev.h.


The documentation for this struct was generated from the following file: