Merge pull request #875 from yoe/patch-1

Allow for _ in original dataset name
This commit is contained in:
sumpfralle 2018-03-09 03:48:16 +01:00 committed by GitHub
commit 413f7c444d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
@ -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",