Class: OsCtl::Lib::Zfs::ZpoolTransactionGroups::TransactionGroup

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#birth_nsInteger (readonly)

Returns Time of birth in ns since boot.

Returns:

  • (Integer)

    Time of birth in ns since boot



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44

TransactionGroup = Struct.new(
  :pool,
  :txg,
  :birth_time,
  :birth_ns,
  :state,
  :ndirty,
  :nread,
  :nwritten,
  :reads,
  :writes,
  :otime_ns,
  :qtime_ns,
  :wtime_ns,
  :stime_ns,
  keyword_init: true,
) do
  def open?
    state == :open
  end

  def committed?
    state == :committed
  end
end

#birth_timeTime (readonly)

Returns Birth time.

Returns:

  • (Time)

    Birth time



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44

TransactionGroup = Struct.new(
  :pool,
  :txg,
  :birth_time,
  :birth_ns,
  :state,
  :ndirty,
  :nread,
  :nwritten,
  :reads,
  :writes,
  :otime_ns,
  :qtime_ns,
  :wtime_ns,
  :stime_ns,
  keyword_init: true,
) do
  def open?
    state == :open
  end

  def committed?
    state == :committed
  end
end

#ndirtyInteger (readonly)

Returns Number of dirty bytes.

Returns:

  • (Integer)

    Number of dirty bytes



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44

TransactionGroup = Struct.new(
  :pool,
  :txg,
  :birth_time,
  :birth_ns,
  :state,
  :ndirty,
  :nread,
  :nwritten,
  :reads,
  :writes,
  :otime_ns,
  :qtime_ns,
  :wtime_ns,
  :stime_ns,
  keyword_init: true,
) do
  def open?
    state == :open
  end

  def committed?
    state == :committed
  end
end

#nreadInteger (readonly)

Returns Number of bytes read.

Returns:

  • (Integer)

    Number of bytes read



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44

TransactionGroup = Struct.new(
  :pool,
  :txg,
  :birth_time,
  :birth_ns,
  :state,
  :ndirty,
  :nread,
  :nwritten,
  :reads,
  :writes,
  :otime_ns,
  :qtime_ns,
  :wtime_ns,
  :stime_ns,
  keyword_init: true,
) do
  def open?
    state == :open
  end

  def committed?
    state == :committed
  end
end

#nwrittenInteger (readonly)

Returns Number of bytes written.

Returns:

  • (Integer)

    Number of bytes written



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44

TransactionGroup = Struct.new(
  :pool,
  :txg,
  :birth_time,
  :birth_ns,
  :state,
  :ndirty,
  :nread,
  :nwritten,
  :reads,
  :writes,
  :otime_ns,
  :qtime_ns,
  :wtime_ns,
  :stime_ns,
  keyword_init: true,
) do
  def open?
    state == :open
  end

  def committed?
    state == :committed
  end
end

#otime_nsInteger (readonly)

Returns Time for which the txg was open in ns.

Returns:

  • (Integer)

    Time for which the txg was open in ns



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44

TransactionGroup = Struct.new(
  :pool,
  :txg,
  :birth_time,
  :birth_ns,
  :state,
  :ndirty,
  :nread,
  :nwritten,
  :reads,
  :writes,
  :otime_ns,
  :qtime_ns,
  :wtime_ns,
  :stime_ns,
  keyword_init: true,
) do
  def open?
    state == :open
  end

  def committed?
    state == :committed
  end
end

#poolString (readonly)

Returns Pool name.

Returns:

  • (String)

    Pool name



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44

TransactionGroup = Struct.new(
  :pool,
  :txg,
  :birth_time,
  :birth_ns,
  :state,
  :ndirty,
  :nread,
  :nwritten,
  :reads,
  :writes,
  :otime_ns,
  :qtime_ns,
  :wtime_ns,
  :stime_ns,
  keyword_init: true,
) do
  def open?
    state == :open
  end

  def committed?
    state == :committed
  end
end

#qtime_nsInteger (readonly)

Returns Time for which the txg was quiescesing in ns.

Returns:

  • (Integer)

    Time for which the txg was quiescesing in ns



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44

TransactionGroup = Struct.new(
  :pool,
  :txg,
  :birth_time,
  :birth_ns,
  :state,
  :ndirty,
  :nread,
  :nwritten,
  :reads,
  :writes,
  :otime_ns,
  :qtime_ns,
  :wtime_ns,
  :stime_ns,
  keyword_init: true,
) do
  def open?
    state == :open
  end

  def committed?
    state == :committed
  end
end

#readsInteger (readonly)

Returns Number of read operations.

Returns:

  • (Integer)

    Number of read operations



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44

TransactionGroup = Struct.new(
  :pool,
  :txg,
  :birth_time,
  :birth_ns,
  :state,
  :ndirty,
  :nread,
  :nwritten,
  :reads,
  :writes,
  :otime_ns,
  :qtime_ns,
  :wtime_ns,
  :stime_ns,
  keyword_init: true,
) do
  def open?
    state == :open
  end

  def committed?
    state == :committed
  end
end

#stateSymbol (readonly)

Returns Transaction state.

Returns:

  • (Symbol)

    Transaction state



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44

TransactionGroup = Struct.new(
  :pool,
  :txg,
  :birth_time,
  :birth_ns,
  :state,
  :ndirty,
  :nread,
  :nwritten,
  :reads,
  :writes,
  :otime_ns,
  :qtime_ns,
  :wtime_ns,
  :stime_ns,
  keyword_init: true,
) do
  def open?
    state == :open
  end

  def committed?
    state == :committed
  end
end

#stime_nsInteger (readonly)

Returns Time for which the txg was syncing in ns.

Returns:

  • (Integer)

    Time for which the txg was syncing in ns



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44

TransactionGroup = Struct.new(
  :pool,
  :txg,
  :birth_time,
  :birth_ns,
  :state,
  :ndirty,
  :nread,
  :nwritten,
  :reads,
  :writes,
  :otime_ns,
  :qtime_ns,
  :wtime_ns,
  :stime_ns,
  keyword_init: true,
) do
  def open?
    state == :open
  end

  def committed?
    state == :committed
  end
end

#txgInteger (readonly)

Returns Transaction group name.

Returns:

  • (Integer)

    Transaction group name



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44

TransactionGroup = Struct.new(
  :pool,
  :txg,
  :birth_time,
  :birth_ns,
  :state,
  :ndirty,
  :nread,
  :nwritten,
  :reads,
  :writes,
  :otime_ns,
  :qtime_ns,
  :wtime_ns,
  :stime_ns,
  keyword_init: true,
) do
  def open?
    state == :open
  end

  def committed?
    state == :committed
  end
end

#writesInteger (readonly)

Returns Number of write operations.

Returns:

  • (Integer)

    Number of write operations



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44

TransactionGroup = Struct.new(
  :pool,
  :txg,
  :birth_time,
  :birth_ns,
  :state,
  :ndirty,
  :nread,
  :nwritten,
  :reads,
  :writes,
  :otime_ns,
  :qtime_ns,
  :wtime_ns,
  :stime_ns,
  keyword_init: true,
) do
  def open?
    state == :open
  end

  def committed?
    state == :committed
  end
end

#wtime_nsInteger (readonly)

Returns Time for which the txg was waiting for sync in ns.

Returns:

  • (Integer)

    Time for which the txg was waiting for sync in ns



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 44

TransactionGroup = Struct.new(
  :pool,
  :txg,
  :birth_time,
  :birth_ns,
  :state,
  :ndirty,
  :nread,
  :nwritten,
  :reads,
  :writes,
  :otime_ns,
  :qtime_ns,
  :wtime_ns,
  :stime_ns,
  keyword_init: true,
) do
  def open?
    state == :open
  end

  def committed?
    state == :committed
  end
end

Instance Method Details

#committed?Boolean

Returns:

  • (Boolean)


65
66
67
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 65

def committed?
  state == :committed
end

#open?Boolean

Returns:

  • (Boolean)


61
62
63
# File 'lib/libosctl/zfs/zpool_transaction_groups.rb', line 61

def open?
  state == :open
end