module Facter::Util::Partitions::OpenBSD

Public Class Methods

filesystem(partition) click to toggle source
# File lib/facter/util/partitions/openbsd.rb, line 22
def self.filesystem(partition)
  scan_mount(/\/dev\/#{partition}\son\s\S+\stype\s(\S+)/)
end
label(partition) click to toggle source

On OpenBSD there are no labels for partitions

# File lib/facter/util/partitions/openbsd.rb, line 27
def self.label(partition)
  nil
end
list() click to toggle source
# File lib/facter/util/partitions/openbsd.rb, line 3
def self.list
  Facter::Core::Execution.exec('df').scan(/\/dev\/(\S+)/).flatten
end
mount(partition) click to toggle source
# File lib/facter/util/partitions/openbsd.rb, line 13
def self.mount(partition)
  scan_mount(/\/dev\/#{partition}\son\s(\S+)/)
end
size(partition) click to toggle source

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
uuid(partition) click to toggle source

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