mirror of
https://github.com/webmin/webmin.git
synced 2026-02-11 09:34:29 +00:00
Track if snapshot is active
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user