-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimally convert transaction diskspace info to STL
Use an unordered map keyed by the device number for the storage, might be an overkill when there typically are just a handful of filesystems but shrug, that's how we access it. "Minimally" is in the subject because this leaves all these non-idiomatic pointer accesses around, but I think it makes the change clearer because there are a lot of dsi->foo references in the code and changing them to dsi.foo would just be a lot of churn. Changing mntPoint into a string is necessary though, otherwise we'd need manual copy-control and all that. This also ditches the silly rpmDiskSpaceInfo typedef and the trailing _s from diskspaceInfo, it's long enough to type as it is and the typedef breaks const correctness.
- Loading branch information
Showing
3 changed files
with
44 additions
and
59 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
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
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