From e8226545869d10fdc7205de2890b6d582f201f7d Mon Sep 17 00:00:00 2001
From: "Alan J. Pippin" <ajp@pippins.net>
Date: Thu, 29 Jan 2009 07:39:50 -0700
Subject: [PATCH] Added missing anchor to backup pool name filter

---
 zfs-log-parser | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zfs-log-parser b/zfs-log-parser
index 94e4490..f13c2a0 100755
--- a/zfs-log-parser
+++ b/zfs-log-parser
@@ -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; }
-- 
2.34.1