Class: OsCtl::Lib::Zfs::ZpoolStatus::VirtualDevice

Inherits:
Struct
  • Object
show all
Defined in:
lib/libosctl/zfs/zpool_status.rb

Instance Attribute Summary collapse

Instance Attribute Details

#checksumInteger (readonly)

Returns number of checksum errors.

Returns:

  • (Integer)

    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
)

#nameString (readonly)

Returns vdev name.

Returns:

  • (String)

    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
)

#readInteger (readonly)

Returns number of read errors.

Returns:

  • (Integer)

    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)

Returns:

  • (:storage, :log, :cache)


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
)

#stateSymbol (readonly)

Returns device state in lower case, see man zpoolconcepts(7).

Returns:

  • (Symbol)

    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
)

#typeString (readonly)

Returns vdev type, e.g. disk, mirror, raidz, see man zpoolconcepts(7).

Returns:

  • (String)

    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_devicesArray<VirtualDevice> (readonly)

Returns child virtual devices.

Returns:



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
)

#writeInteger (readonly)

Returns number of write errors.

Returns:

  • (Integer)

    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
)