Lines Matching defs:keep_log
34 #define keep_log(p) ((p)->features & DM_RAID1_KEEP_LOG)
239 if (!ms->in_sync && !keep_log(ms)) {
783 if (unlikely(ms->leg_failure) && errors_handled(ms) && !keep_log(ms)) {
827 * If the device has failed and keep_log is enabled,
830 * If we have been told to handle errors, and keep_log
838 if (unlikely(!get_valid_mirror(ms) || (keep_log(ms) && ms->log_failure)))
840 else if (errors_handled(ms) && !keep_log(ms))
1044 else if (!strcmp("keep_log", argv[0]))
1055 if (!errors_handled(ms) && keep_log(ms)) {
1056 ti->error = "keep_log feature requires the handle_errors feature";
1073 * If present, supported features are "handle_errors" and "keep_log".
1440 num_feature_args += !!keep_log(ms);
1445 if (keep_log(ms))
1446 DMEMIT(" keep_log");
1461 DMEMIT(",keep_log=%c", keep_log(ms) ? 'y' : 'n');