forked from QubesOS/qubes-core-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage/lvm: do not activate unused LVM volumes
This prevents udev from accessing not currently used volumes, and also makes LVM snapshot operations faster (less locking to do). There is at least one unsolved problem here: inactive volumes do not have size listed on `lvs` output. There is a band-aid by caching the usage from the last time the volume was active, but it isn't enough for many cases (at the very least - reporting disk usage of a VM that wasn't started recently). There may be also other places that assume existing volumes always have relevant /dev/ node present. Fixes QubesOS/qubes-issues#6184
- Loading branch information
Showing
2 changed files
with
125 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.