Branch: refs/heads/master
Home: https://github.com/sheepdog/sheepdog
Commit: 5647976158ff459cc97a688dd42d7a7cd87a2a39
https://github.com/sheepdog/sheepdog/commit/5647976158ff459cc97a688dd42d7a7cd87a2a39
Author: Hitoshi Mitake <[email protected]>
Date: 2015-08-15 (Sat, 15 Aug 2015)
Changed paths:
M sheep/gateway.c
Log Message:
-----------
sheep: avoid panic in COW when sheep fails to allocate memory
Current code for COW requests can call panic() because it uses
xzalloc() and xcalloc() for processing the requests. This commit lets
the code avoid use the functions and return SD_RES_NO_MEM because COW
is a very common and frequent request. It is better to return error
code to VMs than killing sheep.
Even if the memory allocations fail, it just causes object leaks. This
behavior is not changed from the existing strategy which calls
panic().
Signed-off-by: Hitoshi Mitake <[email protected]>
Commit: 748b2dcc0461a42ec6363c376dab4a7b72f2db3a
https://github.com/sheepdog/sheepdog/commit/748b2dcc0461a42ec6363c376dab4a7b72f2db3a
Author: Hitoshi Mitake <[email protected]>
Date: 2015-08-16 (Sun, 16 Aug 2015)
Changed paths:
M sheep/gateway.c
Log Message:
-----------
Merge pull request #121 from sheepdog/enomem
sheep: avoid panic in COW when sheep fails to allocate memory
Compare:
https://github.com/sheepdog/sheepdog/compare/a4db5e30b006...748b2dcc0461--
sheepdog mailing list
[email protected]
https://lists.wpkg.org/mailman/listinfo/sheepdog