Motr  M0
m0_conf_sdev Struct Reference

#include <obj.h>

Collaboration diagram for m0_conf_sdev:
Collaboration graph

Data Fields

struct m0_conf_obj sd_obj
 
struct m0_fid sd_drive
 
uint32_t sd_dev_idx
 
uint32_t sd_iface
 
uint32_t sd_media
 
uint32_t sd_bsize
 
uint64_t sd_size
 
uint64_t sd_last_state
 
uint64_t sd_flags
 
const char * sd_filename
 

Detailed Description

Storage device.

Definition at line 615 of file obj.h.

Field Documentation

◆ sd_bsize

uint32_t sd_bsize

Block size in bytes.

Definition at line 641 of file obj.h.

◆ sd_dev_idx

uint32_t sd_dev_idx

Device index. The value should be unique and belong [0, P) range, where P is a total number of devices under CAS/IOS services in the filesystem.

Definition at line 635 of file obj.h.

◆ sd_drive

struct m0_fid sd_drive

Fid of the corresponding drive object.

Note
This can be M0_FID0 if no drive object is defined for this sdev. This can happen, for example, when the drive is failed, taken away, but not replaced yet.
Todo:
XXX DELETEME

Definition at line 628 of file obj.h.

◆ sd_filename

const char* sd_filename

Filename in host OS.

Definition at line 649 of file obj.h.

◆ sd_flags

uint64_t sd_flags

Property flags. See m0_cfg_flag_bit.

Definition at line 647 of file obj.h.

◆ sd_iface

uint32_t sd_iface

Interface type. See m0_cfg_storage_device_interface_type.

Definition at line 637 of file obj.h.

◆ sd_last_state

uint64_t sd_last_state

Last known state. See m0_cfg_state_bit.

Definition at line 645 of file obj.h.

◆ sd_media

uint32_t sd_media

Media type. See m0_cfg_storage_device_media_type.

Definition at line 639 of file obj.h.

◆ sd_obj

struct m0_conf_obj sd_obj

Definition at line 616 of file obj.h.

◆ sd_size

uint64_t sd_size

Size in bytes.

Definition at line 643 of file obj.h.


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