Changeset 70fa1f169d2fec3321b7fa5733ab3ff3df76bbdc

Show
Ignore:
Timestamp:
04/28/10 15:31:34 (4 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1272468694 +0000
git-parent:

[5728f16816bc1a8ed99f37de367a4d818ef591f9]

git-author:
Mark Harrison <mark@omniti.com> 1272468694 +0000
Message:

Add some more error checking to the ZpoolFree? module

git-svn-id: https://labs.omniti.com/resmon/branches/resmon2@337 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Core/ZpoolFree.pm

    re94b190 r70fa1f1  
    9696        my ($name, $used, $uunit, $free, $funit) = $line =~ 
    9797            /(\S+)\s+([0-9.]+)([BKMGTPEZ]?)\s+([0-9.]+)([BKMGTPEZ]?)/; 
     98        # Make sure we were able to match the regex 
     99        die "Unable to parse zfs command output: $line\n" unless defined($name); 
    98100        next if ($name =~ /\//); # We're only interested in the root of a pool 
    99101