From 922bfc5f3b333f576a1444773fff6db7100dd24a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 18 Jun 2018 16:56:58 -0500 Subject: [PATCH] common/options: convert many TYPE_[U]INT -> TYPE_SIZE Note that the _cost options are in fact in units of bytes. Signed-off-by: Sage Weil --- src/ceph_osd.cc | 2 +- src/client/fuse_ll.cc | 2 +- src/common/options.cc | 218 ++++++++++++++--------------- src/kv/RocksDBStore.cc | 4 +- src/librbd/image/CreateRequest.cc | 2 +- src/mds/MDCache.cc | 2 +- src/mds/Migrator.cc | 2 +- src/mon/Monitor.cc | 2 +- src/os/bluestore/BlueStore.cc | 8 +- src/os/bluestore/NVMEDevice.cc | 2 +- src/osd/OSD.h | 2 +- src/osd/PrimaryLogPG.cc | 24 ++-- src/rgw/rgw_op.h | 4 +- src/rgw/rgw_rest_swift.cc | 6 +- src/test/objectstore/store_test.cc | 2 +- 15 files changed, 143 insertions(+), 139 deletions(-) diff --git a/src/ceph_osd.cc b/src/ceph_osd.cc index 86c5e7aea4b..3974792382f 100644 --- a/src/ceph_osd.cc +++ b/src/ceph_osd.cc @@ -518,7 +518,7 @@ flushjournal_out: << std::endl; uint64_t message_size = - g_conf().get_val("osd_client_message_size_cap"); + g_conf().get_val("osd_client_message_size_cap"); boost::scoped_ptr client_byte_throttler( new Throttle(g_ceph_context, "osd_client_bytes", message_size)); diff --git a/src/client/fuse_ll.cc b/src/client/fuse_ll.cc index cc8c964330c..6251d7d4715 100644 --- a/src/client/fuse_ll.cc +++ b/src/client/fuse_ll.cc @@ -1103,7 +1103,7 @@ int CephFuse::Handle::init(int argc, const char *argv[]) "fuse_atomic_o_trunc"); auto fuse_debug = client->cct->_conf.get_val( "fuse_debug"); - auto fuse_max_write = client->cct->_conf.get_val( + auto fuse_max_write = client->cct->_conf.get_val( "fuse_max_write"); if (fuse_allow_other) { diff --git a/src/common/options.cc b/src/common/options.cc index 91f5c39a57c..9c9ef5b4cf2 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -760,23 +760,23 @@ std::vector