Lines Matching refs:sync
237 enum sync {
239 NOSYNC, /* Devices known to be already in sync */
240 FORCESYNC, /* Force a sync to happen */
241 } sync;
330 if (log->sync != DEFAULTSYNC || log->header.magic != MIRROR_MAGIC) {
364 * argv contains region_size followed optionally by [no]sync
372 enum sync sync = DEFAULTSYNC;
387 if (!strcmp(argv[1], "sync"))
388 sync = FORCESYNC;
390 sync = NOSYNC;
392 DMWARN("unrecognised sync argument to dirty region log: %s", argv[1]);
417 lc->sync = sync;
488 DMWARN("couldn't allocate sync bitset");
497 memset(lc->sync_bits, (sync == NOSYNC) ? -1 : 0, bitset_size);
498 lc->sync_count = (sync == NOSYNC) ? region_count : 0;
502 DMWARN("couldn't allocate sync bitset");
543 * argv contains log_device region_size followed optionally by [no]sync
604 * all regions are out-of-sync. If we simply return
606 * lead us to return 'in-sync' status for regions
607 * that are actually 'out-of-sync'.
613 if (lc->sync == NOSYNC)
626 /* copy clean across to sync */
789 if (lc->sync != DEFAULTSYNC) \
790 DMEMIT("%ssync ", lc->sync == NOSYNC ? "no" : ""); \
806 lc->sync == DEFAULTSYNC ? 1 : 2, lc->region_size);
834 lc->sync == DEFAULTSYNC ? 2 : 3, lc->log_dev->name,