Module: OsCtl::Lib::Zfs::ObjsetStats
- Defined in:
- lib/libosctl/zfs/objset_stats.rb
Defined Under Namespace
Classes: Objset, Parser, PoolTree, Tree
Class Method Summary
collapse
Class Method Details
.read_pool(pool) ⇒ Object
9
10
11
12
|
# File 'lib/libosctl/zfs/objset_stats.rb', line 9
def self.read_pool(pool)
parser = Zfs::ObjsetStats::Parser.new
parser.read(pool)
end
|
.read_pools(pools) ⇒ Object
3
4
5
6
7
|
# File 'lib/libosctl/zfs/objset_stats.rb', line 3
def self.read_pools(pools)
tree = Zfs::ObjsetStats::Tree.new
pools.each { |pool| tree << read_pool(pool) }
tree
end
|