diff options
author | Heinz Mauelshagen <hjm@redhat.com> | 2008-04-24 16:43:06 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2008-04-25 08:26:38 -0400 |
commit | b7fd54a70f99061721e604d72d940541e5b2b168 (patch) | |
tree | 177d9dfc5b0f2b9f79bf6708b41d904173712df4 /drivers/md/dm-log.c | |
parent | c12bfc923ee02de5611730ddec087c11b3947038 (diff) |
dm log: generalise name in messages
Change dm-log.c messages from "mirror log" to "dirty region log" as
a new dm target wants to share this code.
Signed-off-by: Heinz Mauelshagen <hjm@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-log.c')
-rw-r--r-- | drivers/md/dm-log.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/md/dm-log.c b/drivers/md/dm-log.c index 2a74b2142f50..34c25b0073ec 100644 --- a/drivers/md/dm-log.c +++ b/drivers/md/dm-log.c | |||
@@ -1,5 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2003 Sistina Software | 2 | * Copyright (C) 2003 Sistina Software |
3 | * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. | ||
3 | * | 4 | * |
4 | * This file is released under the LGPL. | 5 | * This file is released under the LGPL. |
5 | */ | 6 | */ |
@@ -12,7 +13,7 @@ | |||
12 | #include "dm-log.h" | 13 | #include "dm-log.h" |
13 | #include "dm-io.h" | 14 | #include "dm-io.h" |
14 | 15 | ||
15 | #define DM_MSG_PREFIX "mirror log" | 16 | #define DM_MSG_PREFIX "dirty region log" |
16 | 17 | ||
17 | static LIST_HEAD(_log_types); | 18 | static LIST_HEAD(_log_types); |
18 | static DEFINE_SPINLOCK(_lock); | 19 | static DEFINE_SPINLOCK(_lock); |
@@ -315,7 +316,7 @@ static int create_log_context(struct dirty_log *log, struct dm_target *ti, | |||
315 | int r; | 316 | int r; |
316 | 317 | ||
317 | if (argc < 1 || argc > 2) { | 318 | if (argc < 1 || argc > 2) { |
318 | DMWARN("wrong number of arguments to mirror log"); | 319 | DMWARN("wrong number of arguments to dirty region log"); |
319 | return -EINVAL; | 320 | return -EINVAL; |
320 | } | 321 | } |
321 | 322 | ||
@@ -325,8 +326,8 @@ static int create_log_context(struct dirty_log *log, struct dm_target *ti, | |||
325 | else if (!strcmp(argv[1], "nosync")) | 326 | else if (!strcmp(argv[1], "nosync")) |
326 | sync = NOSYNC; | 327 | sync = NOSYNC; |
327 | else { | 328 | else { |
328 | DMWARN("unrecognised sync argument to mirror log: %s", | 329 | DMWARN("unrecognised sync argument to " |
329 | argv[1]); | 330 | "dirty region log: %s", argv[1]); |
330 | return -EINVAL; | 331 | return -EINVAL; |
331 | } | 332 | } |
332 | } | 333 | } |
@@ -467,7 +468,7 @@ static int disk_ctr(struct dirty_log *log, struct dm_target *ti, | |||
467 | struct dm_dev *dev; | 468 | struct dm_dev *dev; |
468 | 469 | ||
469 | if (argc < 2 || argc > 3) { | 470 | if (argc < 2 || argc > 3) { |
470 | DMWARN("wrong number of arguments to disk mirror log"); | 471 | DMWARN("wrong number of arguments to disk dirty region log"); |
471 | return -EINVAL; | 472 | return -EINVAL; |
472 | } | 473 | } |
473 | 474 | ||
@@ -524,7 +525,7 @@ static int disk_resume(struct dirty_log *log) | |||
524 | /* read the disk header */ | 525 | /* read the disk header */ |
525 | r = read_header(lc); | 526 | r = read_header(lc); |
526 | if (r) { | 527 | if (r) { |
527 | DMWARN("%s: Failed to read header on mirror log device", | 528 | DMWARN("%s: Failed to read header on dirty region log device", |
528 | lc->log_dev->name); | 529 | lc->log_dev->name); |
529 | fail_log_device(lc); | 530 | fail_log_device(lc); |
530 | /* | 531 | /* |
@@ -562,7 +563,7 @@ static int disk_resume(struct dirty_log *log) | |||
562 | /* write the new header */ | 563 | /* write the new header */ |
563 | r = write_header(lc); | 564 | r = write_header(lc); |
564 | if (r) { | 565 | if (r) { |
565 | DMWARN("%s: Failed to write header on mirror log device", | 566 | DMWARN("%s: Failed to write header on dirty region log device", |
566 | lc->log_dev->name); | 567 | lc->log_dev->name); |
567 | fail_log_device(lc); | 568 | fail_log_device(lc); |
568 | } | 569 | } |