diff options
author | Alex Elder <elder@inktank.com> | 2012-08-31 18:29:51 -0400 |
---|---|---|
committer | Alex Elder <elder@inktank.com> | 2012-10-01 15:30:49 -0400 |
commit | 843a0d0879935742bb7270c9dc8d94abb8b39cee (patch) | |
tree | 0640effa058b406b9d4b52da41e811c97bd8d90c /drivers/block | |
parent | 7698f2f5e0d7b7a062213fa970b7c4e121adf38e (diff) |
rbd: rename block_name -> object_prefix
In the on-disk image header structure there is a field "block_name"
which represents what we now call the "object prefix" for an rbd
image. Rename this field "object_prefix" to be consistent with
modern usage.
This appears to be the only remaining vestige of the use of "block"
in symbols that represent objects in the rbd code.
This addresses http://tracker.newdream.net/issues/1761
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/rbd.c | 4 | ||||
-rw-r--r-- | drivers/block/rbd_types.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 8e6e29eacb1a..14bf83ba45d3 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c | |||
@@ -522,11 +522,11 @@ static int rbd_header_from_disk(struct rbd_image_header *header, | |||
522 | 522 | ||
523 | snap_count = le32_to_cpu(ondisk->snap_count); | 523 | snap_count = le32_to_cpu(ondisk->snap_count); |
524 | 524 | ||
525 | size = sizeof (ondisk->block_name) + 1; | 525 | size = sizeof (ondisk->object_prefix) + 1; |
526 | header->object_prefix = kmalloc(size, GFP_KERNEL); | 526 | header->object_prefix = kmalloc(size, GFP_KERNEL); |
527 | if (!header->object_prefix) | 527 | if (!header->object_prefix) |
528 | return -ENOMEM; | 528 | return -ENOMEM; |
529 | memcpy(header->object_prefix, ondisk->block_name, size - 1); | 529 | memcpy(header->object_prefix, ondisk->object_prefix, size - 1); |
530 | header->object_prefix[size - 1] = '\0'; | 530 | header->object_prefix[size - 1] = '\0'; |
531 | 531 | ||
532 | if (snap_count) { | 532 | if (snap_count) { |
diff --git a/drivers/block/rbd_types.h b/drivers/block/rbd_types.h index 0924e9e41a60..d9d8a77748bc 100644 --- a/drivers/block/rbd_types.h +++ b/drivers/block/rbd_types.h | |||
@@ -47,7 +47,7 @@ struct rbd_image_snap_ondisk { | |||
47 | 47 | ||
48 | struct rbd_image_header_ondisk { | 48 | struct rbd_image_header_ondisk { |
49 | char text[40]; | 49 | char text[40]; |
50 | char block_name[24]; | 50 | char object_prefix[24]; |
51 | char signature[4]; | 51 | char signature[4]; |
52 | char version[8]; | 52 | char version[8]; |
53 | struct { | 53 | struct { |