pub const drwrap_global_flags_t_DRWRAP_INVERT_CONTROL: drwrap_global_flags_t = 16;Expand description
This flag must only be set before calling drwrap_init(). If set, drwrap will not register for the drmgr insertion event. The user must instead explicitly invoke drwrap_invoke_insert() and drwrap_invoke_insert_cleanup_only() from its own handler for the insertion event. This “inverted control” mode is provided for better compatibility with drbbdup where the user wishes to only perform wrapping in a subset of the drbbdup cases. For cases where wrapping should occur, drwrap_invoke_insert() should be called; for cases where no wrapping should occcur, drwrap_invoke_insert_cleanup_only() should be called (required for cleanup of drwrap state).
Only wrapping is supported this way: drwrap_replace() and drwrap_replace_native() are not supported when this flag is set.
As this is a global change in how drwrap operates, be careful that its use does not conflict with drwrap uses in any libraries or joint clients: multiple calls to drwrap_invoke_insert() or drwrap_invoke_insert_cleanup_only() are not supported, and one use of inversion will not combine well with another use that requires drwrap_replace().