-
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.
rbd-wnbd: optionally handle wnbd adapter restart events
The WNBD adapter may be reset in certain situations (e.g. driver upgrade, MS WHQL tests, etc). We're going to monitor the WNBD adapter using WMI[1] events, restarting the rbd-wnbd disk mappings whenever necessary. Adapter monitoring can be enabled by passing the --adapter-monitoring-enabled flag to the service. This feature is optional for the following reasons: * it's mainly used during development / driver certification * we had to use a relatively small polling interval, which might imply additional resource usage. WMI quotas also have to be considered. While at it, we're updating two lambdas that are submitted to thread pools, avoiding default reference capturing and explicitly specifying the variables that get copied. [1] https://learn.microsoft.com/en-us/windows/win32/wmisdk/wmi-start-page Signed-off-by: Lucian Petrut <[email protected]>
- Loading branch information
1 parent
a47caa1
commit 0c25ca6
Showing
7 changed files
with
543 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ | |
* | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "include/compat.h" | ||
|
||
void to_filetime(time_t t, LPFILETIME pft); | ||
|
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
Oops, something went wrong.