Class: OsCtl::Lib::Zfs::ZpoolStatus::VirtualDevice
- Inherits:
-
Struct
- Object
- Struct
- OsCtl::Lib::Zfs::ZpoolStatus::VirtualDevice
- Defined in:
- lib/libosctl/zfs/zpool_status.rb
Instance Attribute Summary collapse
-
#checksum ⇒ Integer
readonly
Number of checksum errors.
-
#name ⇒ String
readonly
Vdev name.
-
#read ⇒ Integer
readonly
Number of read errors.
- #role ⇒ :storage, ... readonly
-
#state ⇒ Symbol
readonly
Device state in lower case, see man zpoolconcepts(7).
-
#type ⇒ String
readonly
Vdev type, e.g.
-
#virtual_devices ⇒ Array<VirtualDevice>
readonly
Child virtual devices.
-
#write ⇒ Integer
readonly
Number of write errors.
Instance Attribute Details
#checksum ⇒ Integer (readonly)
Returns number of checksum errors.
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/libosctl/zfs/zpool_status.rb', line 39 VirtualDevice = Struct.new( :role, :name, :type, :state, :read, :write, :checksum, :virtual_devices, keyword_init: true ) |
#name ⇒ String (readonly)
Returns vdev name.
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/libosctl/zfs/zpool_status.rb', line 39 VirtualDevice = Struct.new( :role, :name, :type, :state, :read, :write, :checksum, :virtual_devices, keyword_init: true ) |
#read ⇒ Integer (readonly)
Returns number of read errors.
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/libosctl/zfs/zpool_status.rb', line 39 VirtualDevice = Struct.new( :role, :name, :type, :state, :read, :write, :checksum, :virtual_devices, keyword_init: true ) |
#role ⇒ :storage, ... (readonly)
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/libosctl/zfs/zpool_status.rb', line 39 VirtualDevice = Struct.new( :role, :name, :type, :state, :read, :write, :checksum, :virtual_devices, keyword_init: true ) |
#state ⇒ Symbol (readonly)
Returns device state in lower case, see man zpoolconcepts(7).
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/libosctl/zfs/zpool_status.rb', line 39 VirtualDevice = Struct.new( :role, :name, :type, :state, :read, :write, :checksum, :virtual_devices, keyword_init: true ) |
#type ⇒ String (readonly)
Returns vdev type, e.g. disk, mirror, raidz, see man zpoolconcepts(7).
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/libosctl/zfs/zpool_status.rb', line 39 VirtualDevice = Struct.new( :role, :name, :type, :state, :read, :write, :checksum, :virtual_devices, keyword_init: true ) |
#virtual_devices ⇒ Array<VirtualDevice> (readonly)
Returns child virtual devices.
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/libosctl/zfs/zpool_status.rb', line 39 VirtualDevice = Struct.new( :role, :name, :type, :state, :read, :write, :checksum, :virtual_devices, keyword_init: true ) |
#write ⇒ Integer (readonly)
Returns number of write errors.
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/libosctl/zfs/zpool_status.rb', line 39 VirtualDevice = Struct.new( :role, :name, :type, :state, :read, :write, :checksum, :virtual_devices, keyword_init: true ) |