summaryrefslogtreecommitdiff
path: root/drivers/block/rbd_types.h
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2012-11-09 15:05:54 -0600
committerAlex Elder <elder@inktank.com>2012-12-17 08:37:29 -0600
commit2fd82b9e92c2a718ae81fc987b4468ceeee6979b (patch)
treee41b1c8522f4f0e63d72b180131e59ee980c9ad5 /drivers/block/rbd_types.h
parent685a7555ca69030739ddb57a47f0ea8ea80196a4 (diff)
rbd: get rid of RBD_MAX_SEG_NAME_LEN
RBD_MAX_SEG_NAME_LEN represents the maximum length of an rbd object name (i.e., one of the objects providing storage backing an rbd image). Another symbol, MAX_OBJ_NAME_SIZE, is used in the osd client code to define the maximum length of any object name in an osd request. Right now they disagree, with RBD_MAX_SEG_NAME_LEN being too big. There's no real benefit at this point to defining the rbd object name length limit separate from any other object name, so just get rid of RBD_MAX_SEG_NAME_LEN and use MAX_OBJ_NAME_SIZE in its place. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'drivers/block/rbd_types.h')
-rw-r--r--drivers/block/rbd_types.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/rbd_types.h b/drivers/block/rbd_types.h
index cbe77fa105ba..49d77cbcf8bd 100644
--- a/drivers/block/rbd_types.h
+++ b/drivers/block/rbd_types.h
@@ -46,8 +46,6 @@
#define RBD_MIN_OBJ_ORDER 16
#define RBD_MAX_OBJ_ORDER 30
-#define RBD_MAX_SEG_NAME_LEN 128
-
#define RBD_COMP_NONE 0
#define RBD_CRYPT_NONE 0