Skip to content
Permalink
Browse files

Plugin zfs-filesystem-graph: fix here-document

  • Loading branch information...
sumpfralle committed Aug 13, 2019
1 parent e68a030 commit 94434e4bd8fa739b60728bbf268241664d450a24
Showing with 6 additions and 4 deletions.
  1. +6 −4 plugins/zfs/zfs-filesystem-graph
@@ -41,7 +41,8 @@ read -r -a values <<<"$(zfs get -p usedbydataset,usedbychildren,usedbysnapshots,

if [ "$1" = "config" ]; then

echo <<EOF "graph_title zfs $myname
cat <<EOF
graph_title zfs $myname
graph_order usedbydataset usedbychildren usedbysnapshots usedbyrefreservation available total quota
graph_args --base 1024 -r -l 0 --vertical-label Bytes
graph_info This graph shows how is used a zfs filesystems.
@@ -76,16 +77,17 @@ quota.draw LINE1
quota.info Quota
quota.colour 555555"
EOF
exit 0
exit 0
fi

echo <<EOF "usedbydataset.value ${values[0]}
cat <<EOF
usedbydataset.value ${values[0]}
usedbysnapshots.value ${values[2]}
usedbychildren.value ${values[1]}
usedbyrefreservation.value ${values[3]}
available.value ${values[4]}
total.value ${values[6]}
quota.value ${values[5]}"
quota.value ${values[5]}
EOF

exit 0

0 comments on commit 94434e4

Please sign in to comment.
You can’t perform that action at this time.