-
-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
virtio-fs: make DAX manager testable
This mainly includes changes allowing the actual DAX window operations to be replaced with stubs. To achieve that we: 1. Introduce a new class virtiofs::dax_window_impl, encapsulating the DAX window and its operations (previously those were members of dax_manager). 2. Introduce a stub version of the DAX window, virtiofs::dax_window_stub. 3. Turn the dax_manager class into a template, with the DAX window flavour (normal or stub) as its parameter. This was deemed cleaner than going with run-time polymorphism. 4. Make all previously private members of dax_manager protected, allowing them to be accessed by the test code. Signed-off-by: Fotis Xenakis <[email protected]> Message-Id: <VI1PR03MB3773E191D8AA7D58FAEE8FBEA6959@VI1PR03MB3773.eurprd03.prod.outlook.com>
- Loading branch information
Showing
4 changed files
with
108 additions
and
51 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
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