Skip to content

Commit

Permalink
Merge pull request #875 from yoe/patch-1
Browse files Browse the repository at this point in the history
Allow for _ in original dataset name
  • Loading branch information
sumpfralle committed Mar 9, 2018
2 parents ad5e7ad + 608a2a5 commit 413f7c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/zfs/zfs_usage_
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ sub do_collect {

foreach my $line (split(/\n/, `$fsget` )) {
my ($name, $key, $value, undef ) = (split(/\t/,$line));
($name =~ s/_/__/g);
($name =~ s/\//_/g);
$filesystems->{$name}->{$key}=$value;
}
Expand All @@ -170,6 +171,7 @@ sub do_config_fs {
my ($fs) = @_;
my $fs_slash = ($fs);
($fs_slash =~ s/_/\//g);
($fs_slash =~ s/\/\//_/g);

if ( $fs ne $zpool ) {
printf( "multigraph zfs_usage_%s.%s\n",
Expand Down

0 comments on commit 413f7c4

Please sign in to comment.