Last Modified
2014-09-11 00:16:17 +0000
Requires
  • facter
  • facter/util/partitions

Description

Fact: partitions

Purpose:

Return the details of the disk partitions

Resolution:

Parse the contents of /sys/block/<device>/size to receive the size (multiplying by 512 to correct for blocks-to-bytes)

Caveats:

Only supports Linux 2.6+ at this time, due to the reliance on sysfs

Author: Chris Portman <chris@portman.net.au>