Track if snapshot is active

This commit is contained in:
Jamie Cameron
2013-04-29 21:06:38 -07:00
parent 71dcaf3029
commit 4ca207c829

View File

@@ -331,6 +331,12 @@ else {
if (/destination\s+for\s+\/dev\/[^\/]+\/(\S+)/) {
$lv->{'snap_of'} = $1;
}
if (/active\s+destination/i) {
$lv->{'snap_active'} = 1;
}
elsif (/INACTIVE\s+destination/i) {
$lv->{'snap_active'} = 0;
}
}
elsif (/Read ahead sectors\s+(\d+|auto)/) {
$lv->{'readahead'} = $1;