-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove open/close calls to read/write disk
*** http-disk-server: - Add a fd attached to the server instead of using open/close calls. - Don't throw in case of failure if we can't open the device on another server using a DRBD volume and if EROFS is returned. Just retry later. - Handle SIGTERM to clean properly the resources. - If a DRBD volume is used, the HTTP server never runs without a valid fd, so only one server is reachable. The other daemons remain blocked in the `open` call as long as the volume is not closed. - Use a prefix before each log to simplify the maintenance. *** nbd-http-server: - The timeout of the nbd-client is modified. Should normally be never reached now. - In case of failure during the NBD connection, we try to force detach the NBD device. Otherwise we may have resource leaks. - Use a prefix before each log to simplify the maintenance. *** nbdkit plugin: - Use a timeout now during the server selection. Signed-off-by: Ronan Abhamon <[email protected]>
- Loading branch information
Showing
5 changed files
with
274 additions
and
110 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
Oops, something went wrong.