diff options
author | Alex Elder <elder@inktank.com> | 2012-08-24 00:22:06 -0400 |
---|---|---|
committer | Alex Elder <elder@inktank.com> | 2012-10-01 15:30:49 -0400 |
commit | 58c17b0e1b2278824aedc5d1201f6a43a38d6a48 (patch) | |
tree | a924fc7450e712bec4ca519d6d8bf8314cb7b3f6 /tools/perf/scripts/python/futex-contention.py | |
parent | 1f7ba3311530993801d6877889efff0382bcd641 (diff) |
rbd: don't over-allocate space for object prefix
In rbd_header_from_disk() the object prefix buffer is sized based on
the maximum size it's block_name equivalent on disk could be.
Instead, only allocate enough to hold null-terminated string from
the on-disk header--or the maximum size of no NUL is found.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions