Changeset 70fa1f169d2fec3321b7fa5733ab3ff3df76bbdc
- Timestamp:
- 04/28/10 15:31:34
(3 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
| re94b190 |
r70fa1f1 |
|
| 96 | 96 | my ($name, $used, $uunit, $free, $funit) = $line =~ |
|---|
| 97 | 97 | /(\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); |
|---|
| 98 | 100 | next if ($name =~ /\//); # We're only interested in the root of a pool |
|---|
| 99 | 101 | |
|---|