Struct lsm::System [] [src]

pub struct System {
    pub id: String,
    pub name: String,
    pub status: u32,
    pub status_info: String,
    pub fw_version: String,
    pub read_cache_pct: i8,
    pub mode: SystemMode,
    // some fields omitted
}

Represent a storage system. Examples:

  • A hardware RAID card, LSI MegaRAID

  • A storage area network (SAN), e.g. EMC VNX, NetApp Filer

  • A software solution running on commodity hardware, targetd, Nexenta

  • A Linux system running NFS service

Fields

Identifier.

Human friendly name.

System status stored in bitmap. Valid status value are:

if (s.status & System::STATUS_OK) == 0 {
    println!("System {}/{} is not healthy", s.name, s.id);
}

Additional message for status.

Firmware version.

Read cache percentage of the system. Valid values are:

System mode, currently only supports hardware RAID cards.

Methods

impl System
[src]

READ_CACHE_PCT_NO_SUPPORT: i8 = -2

Plugin does not support querying read cache percentage.

READ_CACHE_PCT_UNKNOWN: i8 = -1

Plugin failed to query read cache percentage.

STATUS_UNKNOWN: u32 = 1

Plugin failed to query system status.

STATUS_OK: u32 = 1 << 1

System is up and healthy.

STATUS_ERROR: u32 = 1 << 2

System is in error state.

STATUS_DEGRADED: u32 = 1 << 3

System is degraded.

STATUS_PREDICTIVE_FAILURE: u32 = 1 << 4

System has protential failure.

STATUS_OTHER: u32 = 1 << 5

Vendor specific status.

Trait Implementations

impl Debug for System
[src]

[src]

Formats the value using the given formatter.

impl Clone for System
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more