]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mdbox: Changed error messages to contain "mdbox" prefix instead of "dbox".
authorTimo Sirainen <tss@iki.fi>
Thu, 29 Apr 2010 15:43:51 +0000 (18:43 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 29 Apr 2010 15:43:51 +0000 (18:43 +0300)
--HG--
branch : HEAD

src/lib-storage/index/dbox-multi/mdbox-mail.c
src/lib-storage/index/dbox-multi/mdbox-map.c
src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c
src/lib-storage/index/dbox-multi/mdbox-storage.c
src/lib-storage/index/dbox-multi/mdbox-sync.c

index 2d5701985fd6adddc482a5edc7006d23ef7bb800..9048c79cb0cbbd8af9b41d13080d829c0faaac9f 100644 (file)
@@ -28,7 +28,7 @@ int mdbox_mail_lookup(struct mdbox_mailbox *mbox, struct mail_index_view *view,
        if (dbox_rec == NULL || dbox_rec->map_uid == 0) {
                mail_index_lookup_uid(view, seq, &uid);
                mail_storage_set_critical(&mbox->storage->storage.storage,
-                       "dbox %s: map uid lost for uid %u",
+                       "mdbox %s: map uid lost for uid %u",
                        mbox->box.path, uid);
                mdbox_storage_set_corrupted(mbox->storage);
                return -1;
@@ -47,7 +47,7 @@ int mdbox_mail_lookup(struct mdbox_mailbox *mbox, struct mail_index_view *view,
        cur_map_uid_validity = dbox_map_get_uid_validity(mbox->storage->map);
        if (cur_map_uid_validity != mbox->map_uid_validity) {
                mail_storage_set_critical(&mbox->storage->storage.storage,
-                       "dbox %s: map uidvalidity mismatch (%u vs %u)",
+                       "mdbox %s: map uidvalidity mismatch (%u vs %u)",
                        mbox->box.path, mbox->map_uid_validity,
                        cur_map_uid_validity);
                mdbox_storage_set_corrupted(mbox->storage);
index bcacd679e4d3b9b501559800dbcf932814c84710..bcf9b754b9a83de279aee2286a1fd368eb3c5cd5 100644 (file)
@@ -35,7 +35,7 @@ void dbox_map_set_corrupted(struct dbox_map *map, const char *format, ...)
 
        va_start(args, format);
        mail_storage_set_critical(MAP_STORAGE(map),
-                                 "dbox map %s corrupted: %s",
+                                 "mdbox map %s corrupted: %s",
                                  map->index->filepath,
                                  t_strdup_vprintf(format, args));
        va_end(args);
@@ -414,7 +414,7 @@ dbox_map_sync_handle(struct dbox_map *map, struct mail_index_sync_ctx *sync_ctx)
        mail_index_sync_get_offsets(sync_ctx, &seq1, &offset1, &seq2, &offset2);
        if (offset1 != offset2 || seq1 != seq2) {
                /* something had crashed. need a full resync. */
-               i_warning("dbox %s: Inconsistency in map index "
+               i_warning("mdbox %s: Inconsistency in map index "
                          "(%u,%"PRIuUOFF_T" != %u,%"PRIuUOFF_T")",
                          map->path, seq1, offset1, seq2, offset2);
                mdbox_storage_set_corrupted(map->storage);
index 9d71e8827344880ceb13de515a94f749cf9b0717..c9499d79ee40a3480a1a96b20009b72926eceb06 100644 (file)
@@ -229,7 +229,7 @@ static int rebuild_add_file(struct mdbox_storage_rebuild_context *ctx,
                ext = strrchr(fname, '.');
                if (ext == NULL || (strcmp(ext, ".broken") != 0 &&
                                    strcmp(ext, ".lock") != 0)) {
-                       i_warning("dbox rebuild: "
+                       i_warning("mdbox rebuild: "
                                  "Skipping file with missing ID: %s", path);
                }
                return 0;
@@ -245,7 +245,7 @@ static int rebuild_add_file(struct mdbox_storage_rebuild_context *ctx,
        if ((ret = dbox_file_open(file, &deleted)) > 0 && !deleted)
                ret = rebuild_file_mails(ctx, file);
        if (ret == 0)
-               i_error("dbox rebuild: Failed to fix file %s", path);
+               i_error("mdbox rebuild: Failed to fix file %s", path);
        dbox_file_unref(&file);
        return ret < 0 ? -1 : 0;
 }
@@ -831,7 +831,7 @@ static int mdbox_storage_rebuild_scan(struct mdbox_storage_rebuild_context *ctx)
                return 0;
        }
 
-       i_warning("dbox %s: rebuilding indexes", ctx->storage->storage_dir);
+       i_warning("mdbox %s: rebuilding indexes", ctx->storage->storage_dir);
 
        uid_validity = dbox_map_get_uid_validity(ctx->storage->map);
        hdr = mail_index_get_header(ctx->sync_view);
index 83540da78772232a1803ac7dc6242ac45b93ef70..a36bb72e9bc1ea4039e69e9b9a1e5d96525b4ff3 100644 (file)
@@ -43,7 +43,7 @@ mdbox_storage_create(struct mail_storage *_storage, struct mail_namespace *ns,
        storage->set = mail_storage_get_driver_settings(_storage);
 
        if (*ns->list->set.mailbox_dir_name == '\0') {
-               *error_r = "dbox: MAILBOXDIR must not be empty";
+               *error_r = "mdbox: MAILBOXDIR must not be empty";
                return -1;
        }
 
@@ -144,7 +144,7 @@ int mdbox_read_header(struct mdbox_mailbox *mbox,
        if (data_size < MDBOX_INDEX_HEADER_MIN_SIZE &&
            (!mbox->creating || data_size != 0)) {
                mail_storage_set_critical(&mbox->storage->storage.storage,
-                       "dbox %s: Invalid dbox header size: %"PRIuSIZE_T,
+                       "mdbox %s: Invalid dbox header size: %"PRIuSIZE_T,
                        mbox->box.path, data_size);
                mdbox_storage_set_corrupted(mbox->storage);
                return -1;
index 863afec69f6aa1264948ad440172db9c43536a31..69463eda52d7036069ded6b57f12e349d0e0ee39 100644 (file)
@@ -261,7 +261,7 @@ int mdbox_sync_begin(struct mdbox_mailbox *mbox, enum mdbox_sync_flags flags,
                                return mdbox_sync_begin(mbox, flags, ctx_r);
                        }
                        mail_storage_set_critical(storage,
-                               "dbox %s: Storage keeps breaking",
+                               "mdbox %s: Storage keeps breaking",
                                ctx->mbox->box.path);
                        ret = -1;
                }