Class: OsCtl::Lib::Zfs::ZpoolStatus::Pool
- Inherits:
-
Struct
- Object
- Struct
- OsCtl::Lib::Zfs::ZpoolStatus::Pool
- Defined in:
- lib/libosctl/zfs/zpool_status.rb
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
Pool name.
-
#scan ⇒ :none, ...
readonly
Active scan type.
-
#scan_percent ⇒ Float?
readonly
Scrub/resilver progress.
-
#state ⇒ :online, ...
readonly
Pool state.
- #virtual_devices ⇒ Array<VirtualDevice> readonly
Instance Attribute Details
#name ⇒ String (readonly)
Returns pool name.
14 15 16 17 18 19 20 21 |
# File 'lib/libosctl/zfs/zpool_status.rb', line 14 Pool = Struct.new( :name, :state, :scan, :scan_percent, :virtual_devices, keyword_init: true ) |
#scan ⇒ :none, ... (readonly)
Returns active scan type.
14 15 16 17 18 19 20 21 |
# File 'lib/libosctl/zfs/zpool_status.rb', line 14 Pool = Struct.new( :name, :state, :scan, :scan_percent, :virtual_devices, keyword_init: true ) |
#scan_percent ⇒ Float? (readonly)
Returns scrub/resilver progress.
14 15 16 17 18 19 20 21 |
# File 'lib/libosctl/zfs/zpool_status.rb', line 14 Pool = Struct.new( :name, :state, :scan, :scan_percent, :virtual_devices, keyword_init: true ) |
#state ⇒ :online, ... (readonly)
Returns pool state.
14 15 16 17 18 19 20 21 |
# File 'lib/libosctl/zfs/zpool_status.rb', line 14 Pool = Struct.new( :name, :state, :scan, :scan_percent, :virtual_devices, keyword_init: true ) |
#virtual_devices ⇒ Array<VirtualDevice> (readonly)
14 15 16 17 18 19 20 21 |
# File 'lib/libosctl/zfs/zpool_status.rb', line 14 Pool = Struct.new( :name, :state, :scan, :scan_percent, :virtual_devices, keyword_init: true ) |