Enhance watchFile in Ganeti.Utils
The functionality is kept the same, but instead of comparing for equality, a more general version based on a predicate is added. This allows to base the condition on only a part of the output. In addition, 'bracket' is added so that inotify data structure is properly cleaned up even if the inner IO action throws an exception. Signed-off-by:Petr Pudlak <pudlak@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
Showing
Please register or sign in to comment