# File lib/facter/util/partitions/openbsd.rb, line 22 def self.filesystem(partition) scan_mount(/\/dev\/#{partition}\son\s\S+\stype\s(\S+)/) end
On OpenBSD there are no labels for partitions
# File lib/facter/util/partitions/openbsd.rb, line 27 def self.label(partition) nil end
# File lib/facter/util/partitions/openbsd.rb, line 3 def self.list Facter::Core::Execution.exec('df').scan(/\/dev\/(\S+)/).flatten end
# File lib/facter/util/partitions/openbsd.rb, line 13 def self.mount(partition) scan_mount(/\/dev\/#{partition}\son\s(\S+)/) end
Reported size is in 1K blocks
# File lib/facter/util/partitions/openbsd.rb, line 18 def self.size(partition) scan_df(/\/dev\/#{partition}\s+(\S+)/) end
On OpenBSD partitions don't have a UUID; disks have DUID but that's not compatible.
# File lib/facter/util/partitions/openbsd.rb, line 9 def self.uuid(partition) nil end
Generated with the Darkfish Rdoc Generator 2.