Skip to content
Permalink
Browse files

replace the / by __ anyway

To make it more clear that we had a subdevice it's better to use the __ for it's replacement anyway
  • Loading branch information...
Sephtex committed Feb 3, 2019
1 parent c35eee0 commit f72390cb130bb229da69ad105a17e37baea5c2f3
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/zfs/zfs_list
@@ -33,7 +33,7 @@ fi
if [ "$1" = "config" ]; then
for i in `zfs list -Hp | awk '{print $1}'`; do
values=( $(zfs get -p usedbydataset,usedbychildren,usedbysnapshots,usedbyrefreservation,available,quota $i | awk 'BEGIN {total=0;} { if( NR==1 ) next; } !/quota/ {total=total+$3;} {print $3} END{print total;}') )
fsname=$(clean_fieldname "$i")
fsname=$(clean_fieldname $(echo "$i" | sed 's/\//__/g'))

echo <<EOF "multigraph zfs_list_$fsname
graph_title $fsname usage

0 comments on commit f72390c

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