Lines Matching refs:sync
234 enum sync {
236 NOSYNC, /* Devices known to be already in sync */
237 FORCESYNC, /* Force a sync to happen */
238 } sync;
327 if (log->sync != DEFAULTSYNC || log->header.magic != MIRROR_MAGIC) {
360 * argv contains region_size followed optionally by [no]sync
367 enum sync sync = DEFAULTSYNC;
382 if (!strcmp(argv[1], "sync"))
383 sync = FORCESYNC;
385 sync = NOSYNC;
387 DMWARN("unrecognised sync argument to "
413 lc->sync = sync;
485 DMWARN("couldn't allocate sync bitset");
494 memset(lc->sync_bits, (sync == NOSYNC) ? -1 : 0, bitset_size);
495 lc->sync_count = (sync == NOSYNC) ? region_count : 0;
499 DMWARN("couldn't allocate sync bitset");
539 * argv contains log_device region_size followed optionally by [no]sync
599 * all regions are out-of-sync. If we simply return
601 * lead us to return 'in-sync' status for regions
602 * that are actually 'out-of-sync'.
608 if (lc->sync == NOSYNC)
621 /* copy clean across to sync */
777 if (lc->sync != DEFAULTSYNC) \
778 DMEMIT("%ssync ", lc->sync == NOSYNC ? "no" : "")
793 lc->sync == DEFAULTSYNC ? 1 : 2, lc->region_size);
816 lc->sync == DEFAULTSYNC ? 2 : 3, lc->log_dev->name,