G_MIRROR_DEBUG
G_MIRROR_DEBUG(4, "%s: Waking up %p.", __func__, sc);
G_MIRROR_DEBUG(1, "Kernel dump will go to %s.",
G_MIRROR_DEBUG(4, "%s: Waking up %p.", __func__, sc);
G_MIRROR_DEBUG(2, "Requeuing regular requests after collision.");
G_MIRROR_DEBUG(2, "No I/O requests for %s, it can be destroyed.",
G_MIRROR_DEBUG(1, "root_mount_rel[%u] %p", __LINE__,
G_MIRROR_DEBUG(4, "%s: Waking up %p.", __func__,
G_MIRROR_DEBUG(4, "%s: Sending event %p.", __func__, ep);
G_MIRROR_DEBUG(5, "%s: Let's see...", __func__);
G_MIRROR_DEBUG(3,
G_MIRROR_DEBUG(3, "Running event for disk %s.",
G_MIRROR_DEBUG(4, "%s: Waking up %p.", __func__,
G_MIRROR_DEBUG(1, "Thread exiting.");
G_MIRROR_DEBUG(5, "%s: I'm here 1.", __func__);
G_MIRROR_DEBUG(1, "Thread exiting.");
G_MIRROR_DEBUG(5, "%s: I'm here 4.", __func__);
G_MIRROR_DEBUG(5, "%s: I'm here 9.", __func__);
G_MIRROR_DEBUG(2, "Disk %s (device %s) marked as dirty.",
G_MIRROR_DEBUG(2, "Disk %s (device %s) marked as clean.",
G_MIRROR_DEBUG(4, "%s: Waking up %p.", __func__, sc);
G_MIRROR_DEBUG(0, "Device %s: rebuilding provider %s.", sc->sc_name,
G_MIRROR_DEBUG(4, "%s: Sleeping %p.", __func__, ep);
G_MIRROR_DEBUG(0, "Device %s: rebuilding provider %s finished.",
G_MIRROR_DEBUG(0, "Device %s: rebuilding provider %s stopped.",
G_MIRROR_DEBUG(0, "Cancelling unmapped "
G_MIRROR_DEBUG(0, "Device %s launched (%u/%u).", pp->name,
G_MIRROR_DEBUG(0, "Device %s: provider destroyed.", sc->sc_name);
G_MIRROR_DEBUG(0, "Force device %s start due to timeout.", sc->sc_name);
G_MIRROR_DEBUG(0, "Device %s was started before the freshest "
G_MIRROR_DEBUG(3, "State for %s disk: %s.",
G_MIRROR_DEBUG(0, "Stale 'genid' field on %s "
G_MIRROR_DEBUG(0, "Found a mismatching '%s' "
G_MIRROR_DEBUG(1, "root_mount_rel[%u] %p", __LINE__,
G_MIRROR_DEBUG(1, "root_mount_rel[%u] %p",
G_MIRROR_DEBUG(1, "Using disk %s (device %s) as a "
G_MIRROR_DEBUG(1, "Device %s state changed from %s to %s.",
G_MIRROR_DEBUG(1, "root_mount_rel[%u] %p",
#define DISK_STATE_CHANGED() G_MIRROR_DEBUG(1, \
G_MIRROR_DEBUG(3, "Changing disk %s state from %s to %s.",
G_MIRROR_DEBUG(1, "Device %s: provider %s detected.",
G_MIRROR_DEBUG(1, "Device %s: provider %s activated.",
G_MIRROR_DEBUG(0, "Device %s: provider %s is stale.",
G_MIRROR_DEBUG(0, "Device %s: provider %s disconnected.",
G_MIRROR_DEBUG(0,
G_MIRROR_DEBUG(0, "Device %s: provider %s destroyed.",
G_MIRROR_DEBUG(1, "Cannot read metadata from %s (error=%d).",
G_MIRROR_DEBUG(0,
G_MIRROR_DEBUG(1, "MD5 metadata hash mismatch for provider %s.",
G_MIRROR_DEBUG(2, "%s: md_did 0x%u disk %s device %s md_all 0x%x "
G_MIRROR_DEBUG(1, "Disk %s (id=%u) already exists, skipping.",
G_MIRROR_DEBUG(1,
G_MIRROR_DEBUG(1,
G_MIRROR_DEBUG(1,
G_MIRROR_DEBUG(1,
G_MIRROR_DEBUG(1,
G_MIRROR_DEBUG(2, "Adding disk %s.", pp->name);
G_MIRROR_DEBUG(0, "Component %s (device %s) broken, skipping.",
G_MIRROR_DEBUG(0, "Upgrading metadata on %s (v%d->v%d).",
G_MIRROR_DEBUG(1, "Destroying canceled.");
G_MIRROR_DEBUG(1, "Destroying %s (delayed).", sc->sc_name);
G_MIRROR_DEBUG(0, "Cannot destroy %s (error=%d).",
G_MIRROR_DEBUG(2, "Access request for %s: r%dw%de%d.", pp->name, acr,
G_MIRROR_DEBUG(1, "Creating device %s (id=%u).", md->md_name,
G_MIRROR_DEBUG(1, "Cannot create kernel thread for %s.",
G_MIRROR_DEBUG(1, "Device %s created (%u components, id=%u).",
G_MIRROR_DEBUG(1, "root_mount_hold %p", sc->sc_rootmount);
G_MIRROR_DEBUG(1,
G_MIRROR_DEBUG(1,
G_MIRROR_DEBUG(1, "Device %s is still open, so it "
G_MIRROR_DEBUG(4, "%s: Waking up %p.", __func__, sc);
G_MIRROR_DEBUG(4, "%s: Sleeping %p.", __func__, &sc->sc_worker);
G_MIRROR_DEBUG(4, "%s: Woken up %p.", __func__, &sc->sc_worker);
G_MIRROR_DEBUG(2, "Tasting %s.", pp->name);
G_MIRROR_DEBUG(0,
G_MIRROR_DEBUG(0, "Device %s already configured.",
G_MIRROR_DEBUG(0, "Cannot create device %s.",
G_MIRROR_DEBUG(1, "Adding disk %s to %s.", pp->name, gp->name);
G_MIRROR_DEBUG(0, "Cannot add disk %s to %s (error=%d).",
G_MIRROR_DEBUG(2,
G_MIRROR_DEBUG(2,
G_MIRROR_DEBUG(0, "Warning! Cannot register shutdown event.");
G_MIRROR_DEBUG(1, "Consumer %s destroyed.", cp->provider->name);
G_MIRROR_DEBUG(0, "Found newer version for device %s (genid: curr=%u "
G_MIRROR_DEBUG(0, "Cannot refresh metadata in %s state "
G_MIRROR_DEBUG(1, "Refresh device %s (id=%u, state=%s) from disk %s "
G_MIRROR_DEBUG(2, "Access %s r%dw%de%d = %d", pp->name, -cp->acr,
G_MIRROR_DEBUG(1, "Consumer %s destroyed.", pp->name);
G_MIRROR_DEBUG(0, "Cannot open consumer %s (error=%d).",
G_MIRROR_DEBUG(2, "Disk %s connected.", g_mirror_get_diskname(disk));
G_MIRROR_DEBUG(4, "%s: Waking up %p.", __func__, ep);
G_MIRROR_DEBUG(0, "Device %s destroyed.", gp->name);
G_MIRROR_DEBUG(0, "Cannot write metadata on %s "
G_MIRROR_DEBUG(1, "Cannot write metadata on %s "
G_MIRROR_DEBUG(2, "Metadata on %s cleared.",
G_MIRROR_DEBUG(0,
G_MIRROR_DEBUG(2, "Metadata on %s updated.",
G_MIRROR_DEBUG(0,
G_MIRROR_DEBUG(1, "Device %s: syncid bumped to %u.", sc->sc_name,
G_MIRROR_DEBUG(1, "Device %s: genid bumped to %u.", sc->sc_name,
G_MIRROR_DEBUG(4, "%s: Sleeping %p.", __func__, (ident)); \
G_MIRROR_DEBUG(4, "%s: Woken up %p.", __func__, (ident)); \
G_MIRROR_DEBUG(2, "Disk %s (device %s) marked as clean.",
G_MIRROR_DEBUG(2, "Disk %s (device %s) marked as dirty.",
G_MIRROR_DEBUG(1,
G_MIRROR_DEBUG(1, "Can't attach disk %s.", pp->name);
G_MIRROR_DEBUG(1, "Can't open disk %s.", pp->name);
G_MIRROR_DEBUG(1, "Disk %s has no media.", pp->name);
G_MIRROR_DEBUG(1, "Disk %u (%s) not attached to %s.",