We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d086f9 commit eee7ad9Copy full SHA for eee7ad9
functions/bytes_to_size.pp
@@ -1,3 +1,10 @@
1
+# @summary Convert a number of bytes to a size format that LVM can understand
2
+#
3
+# @return LVM-formatted size
4
5
+# @example Return `200g`
6
7
+# lvm::bytes_to_size(214748364800)
8
function lvm::bytes_to_size (
9
Numeric $size,
10
) {
functions/size_to_bytes.pp
@@ -1,3 +1,6 @@
+# @summary Convert an LVM size to bytes, the opposite of `lvm::bytes_to_size`
+# @return byte value of LVM-formatted size
function lvm::size_to_bytes (
String $size,
0 commit comments