Added missing anchor to backup pool name filter
authorAlan J. Pippin <ajp@pippins.net>
Thu, 29 Jan 2009 14:39:50 +0000 (07:39 -0700)
committerAlan J. Pippin <ajp@pippins.net>
Thu, 29 Jan 2009 14:39:50 +0000 (07:39 -0700)
zfs-log-parser

index 94e4490b500a581b623dc6daa681eabb4e1735ff..f13c2a01dfa2454940421c9aec909dcef3b5e38e 100755 (executable)
@@ -117,7 +117,7 @@ sub parse_snapshot_totals_logfile {
        elsif(($in_totals == 1) && ($line =~ /(\S+)\s+([\d\.]*)(\w+)\s+(\d+)/)) {
            $filesystem = $1; $data = $2; $size = $3; $num_snaps = $4;
            if($filesystem =~ /Snapshots/ || $filesystem =~ /Total/) { next; }
-           if($filesystem =~ /$backup_pool/) { next; }
+           if($filesystem =~ /^$backup_pool/) { next; }
            if(length($filesystem) > $maxlen) { $maxlen = length($filesystem); }
            if($size =~ /K/i) { $data = $data * $kilo; }
            if($size =~ /M/i) { $data = $data * $mega; }