]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
xinxin shu [Sat, 11 Oct 2014 01:29:42 +0000 (09:29 +0800)]
return value of handle_message for MSG_OSD_SUBOP/MSG_OSD_SUBOPREPLY should be true
if the return value is true , it will skip unnecessary checks
Signed-off-by: xinxin shu <xinxin.shu@intel.com>
Josh Durgin [Sat, 11 Oct 2014 03:51:33 +0000 (20:51 -0700)]
Merge pull request #2701 from ceph/wip-9716
librados: Fix function prototypes in librados.h
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Josh Durgin [Sat, 11 Oct 2014 03:41:27 +0000 (20:41 -0700)]
Merge pull request #2678 from ceph/wip-8983
rados: Parse command-line arguments strictly
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
Sage Weil [Fri, 10 Oct 2014 23:56:11 +0000 (16:56 -0700)]
Merge pull request #2683 from ceph/wip-7796
rgw: set length for keystone token validation request
Reviewed-by: Sage Weil <sage@redhat.com>
Adam Crume [Fri, 10 Oct 2014 23:52:32 +0000 (16:52 -0700)]
rados: Use strict_strtoll instead of strtoll
Signed-off-by: Adam Crume <adamcrume@gmail.com>
Josh Durgin [Fri, 10 Oct 2014 22:06:33 +0000 (15:06 -0700)]
Merge pull request #2672 from ceph/wip-9513
Fix read performance regression in ObjectCacher
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Adam Crume [Fri, 10 Oct 2014 21:08:32 +0000 (14:08 -0700)]
librados: Fix function prototypes in librados.h
Fixes: 9716
Signed-off-by: Adam Crume <adamcrume@gmail.com>
Adam Crume [Fri, 10 Oct 2014 20:33:39 +0000 (13:33 -0700)]
rados: Add tests for CLI strict parsing
Fixes: 8983
Signed-off-by: Adam Crume <adamcrume@gmail.com>
Adam Crume [Fri, 10 Oct 2014 17:25:02 +0000 (10:25 -0700)]
test: Fix rmpool in test_rados_tool.sh
Signed-off-by: Adam Crume <adamcrume@gmail.com>
Sage Weil [Fri, 10 Oct 2014 16:13:02 +0000 (09:13 -0700)]
Merge pull request #2675 from ceph/wip-coverity-
20141003
Fix issues from SCA and Coverity
Reviewed-by: Sage Weil <sage@redhat.com>
Loic Dachary [Fri, 10 Oct 2014 12:56:27 +0000 (14:56 +0200)]
Merge pull request #2685 from hejiantao5/patch-1
Check the pointer before deleting
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Fri, 10 Oct 2014 12:50:35 +0000 (14:50 +0200)]
Merge pull request #2688 from leseb/fix-warning-message-img-format
Fix error message when stripping with format 1
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
Sébastien Han [Fri, 10 Oct 2014 12:14:22 +0000 (14:14 +0200)]
Fix error message when stripping with format 1
Since the option '--format' for specifying the rbd image format is
deprecated, we should recommend '--image-format' instead.
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
hejiantao5 [Fri, 10 Oct 2014 07:57:05 +0000 (15:57 +0800)]
Check pointer before deleting
Here I think should check the pointer, to avoid potential risk
Signed-off-by: Jiantao He <hejiantao5@gmail.com>
Danny Al-Gaaf [Thu, 9 Oct 2014 16:09:41 +0000 (18:09 +0200)]
ceph_erasure_code_benchmark: fix parameter handling
Make sure k and m paramter are valid to prevent crash. Fix typo.
Fix for the following CID and other possible invalid combinations
of k/m parameter:
CID
1219466 (#1 of 1): Division or modulo by zero (DIVIDE_BY_ZERO)
divide_by_zero: In expression rand() % (k + m), modulo by expression
k + m which may be zero has undefined behavior.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
John Spray [Fri, 10 Oct 2014 09:05:44 +0000 (10:05 +0100)]
Merge pull request #2686 from dachary/wip-client-dout
client: add missing dendl and s/dout/ldout/
Reviewed-by: John Spray <john.spray@redhat.com>
Loic Dachary [Fri, 10 Oct 2014 08:43:44 +0000 (10:43 +0200)]
client: add missing dendl and s/dout/ldout/
Introduced in
ce4436c9d4206ff4a4af7fdc16e571dcc77cd8b4
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Fri, 10 Oct 2014 05:57:19 +0000 (07:57 +0200)]
Merge pull request #2671 from ceph/wip-da-fix-make_check
Makefile.am: make sure everything was build before make check
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Fri, 10 Oct 2014 05:54:22 +0000 (07:54 +0200)]
Merge pull request #2669 from ceph/wip-9692
qa/workunits/fs/misc: fix syntax error
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
Yan, Zheng [Fri, 10 Oct 2014 01:36:59 +0000 (09:36 +0800)]
Merge pull request #2676 from ceph/wip-print-mode
client: print out mode, uid, gid if they are changed
Yan, Zheng [Wed, 8 Oct 2014 12:38:33 +0000 (20:38 +0800)]
qa/workunits/fs/misc: fix syntax error
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Yan, Zheng [Fri, 10 Oct 2014 01:16:58 +0000 (09:16 +0800)]
Merge pull request #2677 from ceph/wip-mds-coverity
Wip mds coverity
Yehuda Sadeh [Thu, 9 Oct 2014 17:20:27 +0000 (10:20 -0700)]
rgw: set length for keystone token validation request
Fixes: #7796
Backport: giany, firefly
Need to set content length to this request, as the server might not
handle a chunked request (even though we don't send anything).
Tested-by: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Adam Crume [Thu, 9 Oct 2014 21:04:34 +0000 (14:04 -0700)]
rados: Parse command-line arguments strictly
Many integers were parsed with functions that silently ignored junk at
the end of the string. Extra characters now cause errors.
Fixes: 8983
Signed-off-by: Adam Crume <adamcrume@gmail.com>
Greg Farnum [Thu, 9 Oct 2014 17:41:45 +0000 (10:41 -0700)]
mds: MDirUpdate: initialize discover count to 0 if we're not discovering
Otherwise it's left uninitialized and could do who-knows-what!
CID
1244229 : Uninitialized scalar field (UNINIT_CTOR)
/messages/MDirUpdate.h: 55 in MDirUpdate::MDirUpdate(mds_rank_t, dirfrag_t,
int, std::set<int, std::less<int>, std::allocator<int>> &, filepath &, bool)()
Signed-off-by: Greg Farnum <greg@inktank.com>
Greg Farnum [Thu, 9 Oct 2014 17:37:21 +0000 (10:37 -0700)]
mds: MDSAuthCaps: init "read" param in default constructor
CID
1244228 : Uninitialized scalar field (UNINIT_CTOR)
/mds/MDSAuthCaps.h: 29 in MDSCapSpec::MDSCapSpec()()
Signed-off-by: Greg Farnum <greg@inktank.com>
Greg Farnum [Thu, 9 Oct 2014 16:47:29 +0000 (09:47 -0700)]
client: print out mode, uid, gid if they are changed
These values can be printed by MClientRequest message output, but if
they're flushed out via cap updates we don't even get that. These
are important values that generally don't change often; so print
them out in debug logging.
Signed-off-by: Greg Farnum <greg@inktank.com>
Danny Al-Gaaf [Thu, 9 Oct 2014 15:14:37 +0000 (17:14 +0200)]
test_rgw_admin_log.cc: refactor to use calloc()
Refactor code to use calloc() instead of malloc() to make
sure the char* TEST_BUCKET_OBJECT_SIZE memory is set to
zero before call put_bucket_obj().
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 9 Oct 2014 13:55:30 +0000 (15:55 +0200)]
test_rgw_admin_log.cc: fix use-after-free
Fix for:
CID
1054876 (#1 of 1): Use after free (USE_AFTER_FREE)
pass_freed_arg: Passing freed pointer bucket_obj as an
argument to put_bucket_obj
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 9 Oct 2014 13:29:45 +0000 (15:29 +0200)]
test/librados/c_write_operations.cc: free ressources
Release completion as soon as no longer needed.
Fix for:
CID
1219593 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable completion going out of scope
leaks the storage it points to.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Loic Dachary [Thu, 9 Oct 2014 07:41:38 +0000 (09:41 +0200)]
Merge pull request #2511 from dachary/wip-catch-options-errors
test,tools: catch option parsing exceptions
Reviewed-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
Loic Dachary [Thu, 9 Oct 2014 06:17:12 +0000 (08:17 +0200)]
Merge pull request #2629 from dachary/wip-heap-profiler
perfglue: minors heap profiler updates and documentation
Reviewed-by: Jianpeng Ma <majianpeng@gmail.com>
Danny Al-Gaaf [Mon, 6 Oct 2014 10:43:59 +0000 (12:43 +0200)]
rados_list_parallel.cc: cleanup before return from run()
Fix for another case of:
CID 717112 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable io_ctx going out of scope leaks
the storage it points to.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Mon, 6 Oct 2014 10:20:09 +0000 (12:20 +0200)]
test/librbd/fsx.c: fix potential unterminated string handling
In case of strncpy() make sure string is '\0' terminated. Before
usage of strcat() check if the destination has enough free space
to concat the char and to terminate the string to prevent illegal
memory access.
Fix for:
CID
1219459 (2 of 2): Buffer not null terminated (BUFFER_SIZE_WARNING)
buffer_size_warning: Calling strncpy with a maximum size argument of
1024 bytes on destination array goodfile of size 1024 bytes might
leave the destination string unterminated.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Fri, 3 Oct 2014 16:16:56 +0000 (18:16 +0200)]
ErasureCodeIsa.cc: reduce scope of variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Fri, 3 Oct 2014 14:10:20 +0000 (16:10 +0200)]
SyntheticClient.cc: reduce scope of variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 2 Oct 2014 16:27:51 +0000 (18:27 +0200)]
mds/flock.cc: reduce scope of some variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 2 Oct 2014 16:18:55 +0000 (18:18 +0200)]
osd/ReplicatedBackend.cc: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 2 Oct 2014 16:17:15 +0000 (18:17 +0200)]
osd/OSDMap.cc: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Danny Al-Gaaf [Thu, 2 Oct 2014 08:48:25 +0000 (10:48 +0200)]
mount.ceph.c: ensure '\0' terminated string
Reserve last char in array for '\0' to ensure termination
of the string.
Fix for:
CID
1128383 (#1 of 1): Buffer not null terminated (BUFFER_SIZE_WARNING)
buffer_size_warning: Calling strncpy with a maximum size argument
of 1000 bytes on destination array secret of size 1000 bytes might
leave the destination string unterminated.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Sage Weil [Wed, 8 Oct 2014 19:39:01 +0000 (12:39 -0700)]
Merge pull request #2586 from ceph/wip-mon-status
mon: make health portion of ceph -s readable (multiple lines)
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
Loic Dachary [Wed, 8 Oct 2014 19:26:11 +0000 (21:26 +0200)]
Merge pull request #2673 from dachary/wip-ceph-erasure-code-corpus
build: add ceph-erasure-code-corpus to gitmodule_mirrors
Reviewed-by: Sandon Van Ness <sandon@inktank.com>
Loic Dachary [Wed, 8 Oct 2014 19:22:02 +0000 (21:22 +0200)]
build: add ceph-erasure-code-corpus to gitmodule_mirrors
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Danny Al-Gaaf [Wed, 8 Oct 2014 18:19:07 +0000 (20:19 +0200)]
Makefile.am: make sure everything was build before make check
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Samuel Just [Wed, 8 Oct 2014 18:18:13 +0000 (11:18 -0700)]
Merge remote-tracking branch 'upstream/giant'
Samuel Just [Wed, 8 Oct 2014 18:08:35 +0000 (11:08 -0700)]
Merge pull request #2616 from guangyy/wip-giant-9614
PG::actingset should be used when checking the number of acting OSDs for a given PG.
Backport: firefly
Reviewed-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Wed, 8 Oct 2014 18:07:06 +0000 (11:07 -0700)]
Merge pull request #2663 from ceph/wip-9496
mon: PGMonitor: populate scrub timestamps with 'now' on pg creation
Reviewed-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Wed, 8 Oct 2014 18:04:42 +0000 (11:04 -0700)]
Merge pull request #2650 from ceph/wip-9128
Add reset_tp_timeout in long loop in add_source_info for suicide timeout
Reviewed-by: Samuel Just <sam.just@inktank.com>
Samuel Just [Wed, 8 Oct 2014 18:01:26 +0000 (11:01 -0700)]
Merge pull request #2543 from ceph/wip-9419
Wip 9419
Reviewed-by: Samuel Just <sam.just@inktank.com>
John Spray [Wed, 8 Oct 2014 14:45:29 +0000 (15:45 +0100)]
Merge pull request #2670 from dachary/wip-9700-cephtool-mon-osd
qa: move mon_mds tests last
Reviewed-by: John Spray <john.spray@redhat.com>
Loic Dachary [Wed, 8 Oct 2014 14:27:47 +0000 (16:27 +0200)]
qa: move mon_mds tests last
Assuming they are more likely than others to leave OSD/MON in an
unstable state that could have undefined side effects on the tests
following it. A cleaner solution would be to run them in a separate
script that is run on an independent cluster.
http://tracker.ceph.com/issues/9700 Fixes: #9700
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
John Spray [Wed, 8 Oct 2014 14:28:01 +0000 (15:28 +0100)]
Merge pull request #2569 from ceph/wip-9437
Implement `tell` in MDS
Reviewed-by: Reviewed-by: Greg Farnum <greg@inktank.com>
John Spray [Tue, 30 Sep 2014 13:45:42 +0000 (14:45 +0100)]
qa: cephtool tests for `tell mds.X`
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 6 Oct 2014 18:06:20 +0000 (19:06 +0100)]
qa: fixup cephtool test when MDS exists
We added MDS resetting code here a while back,
but the order of operations was such that a
"cluster up" was being run between a fail_all_mds
and the point at which we needed the map not to
be interfered with (testing setmap).
Also the new fs create/destroy cycles for testing
EC pool handling were missing calls to stop the
daemons before fs rm.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 29 Sep 2014 12:43:16 +0000 (13:43 +0100)]
test: unit tests for MDSAuthCaps
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Fri, 26 Sep 2014 16:24:12 +0000 (17:24 +0100)]
vstart: create fewer pgs for fs pools
Just so that dev clusters come up more
quickly.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 25 Sep 2014 17:05:18 +0000 (18:05 +0100)]
vstart: mds * auth caps
...so that the default client.admin identity
can call 'tell mds' things.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Tue, 7 Oct 2014 20:39:52 +0000 (21:39 +0100)]
mds: fix MDSAuthCap when cephx is disabled
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 22 Sep 2014 09:40:19 +0000 (10:40 +0100)]
pybind/ceph_argparse: implement 'tell mds'
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 22 Sep 2014 09:39:52 +0000 (10:39 +0100)]
pybind/cephfs: implement mds_command
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Tue, 23 Sep 2014 11:20:42 +0000 (12:20 +0100)]
pybind/cephfs: implement conf_parse_argv
So that when using `ceph` we can pass through
--debug-x args etc.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 22 Sep 2014 09:38:53 +0000 (10:38 +0100)]
pybind/rados: add conf/conf_defaults attributes
Store these from initialization so that given a Rados
object, we can read back config to initialize a
LibCephFS object.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 18 Sep 2014 17:57:11 +0000 (18:57 +0100)]
libcephfs: add ceph_mds_command
Wraps the equivalent fn in Client.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 18 Sep 2014 17:56:42 +0000 (18:56 +0100)]
client: add mds_command operation
akin to Objecter::osd_command
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Fri, 19 Sep 2014 18:34:17 +0000 (19:34 +0100)]
osdc/Objecter: don't consume non-osd cmd replies
...so that Client can get command replies from MDSs.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Wed, 24 Sep 2014 10:37:34 +0000 (11:37 +0100)]
mds: introduce MDS auth caps
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 22 Sep 2014 09:37:36 +0000 (10:37 +0100)]
mds: handle MCommand (mds tell)
Separate path to legacy MMonCommand, because MCommand
from the CLI sends JSON-style commands.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Mon, 6 Oct 2014 10:18:51 +0000 (11:18 +0100)]
mds: deprecation-warn on numeric mds names
To be turned into strict check in post-hammer
release, so that we can always unambiguously
discriminate a string into one of name, rank, gid.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Tue, 23 Sep 2014 11:21:14 +0000 (12:21 +0100)]
common: fix cmd_getval constness
...so that one can pass in a const cmdmap.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 18 Sep 2014 16:58:48 +0000 (17:58 +0100)]
messages: fix constness in MCommand constructor
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 18 Sep 2014 18:31:43 +0000 (19:31 +0100)]
mds: typedefs for rank and gid in MDSMap
Make it clearer what these numbers are where they appear.
Signed-off-by: John Spray <john.spray@redhat.com>
Loic Dachary [Wed, 8 Oct 2014 10:11:02 +0000 (12:11 +0200)]
Merge pull request #2668 from theanalyst/fix/mailmap-again
Fix/mailmap again
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
Abhishek Lekshmanan [Wed, 8 Oct 2014 08:53:30 +0000 (14:23 +0530)]
mailmap: João Eduardo Luís name normalization
Reported-by: Loic Dachary <loic@dachary.org>
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Abhishek Lekshmanan [Wed, 8 Oct 2014 08:52:08 +0000 (14:22 +0530)]
mailmap: Yongyue sun affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Abhishek Lekshmanan [Wed, 8 Oct 2014 08:50:34 +0000 (14:20 +0530)]
mailmap: Andreas Peters name normalization
Reported-by: Loic Dachary <loic@dachary.org>
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Loic Dachary [Wed, 8 Oct 2014 08:18:54 +0000 (10:18 +0200)]
Merge pull request #2665 from yuyuyu101/update-mailmap
mailmap: add yuandong to organizationmap
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Thu, 2 Oct 2014 13:16:28 +0000 (15:16 +0200)]
doc: update memory-profiling with examples
* Update the ceph tell from ceph daemon tell id to the new
ceph tell deamon.id form
* Add usages examples for easier copy / paste
* Add MON to the list of daemons that can be profiled
* Document CEPH_HEAP_PROFILER_INIT=true
* Remove trailing empty lines
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Thu, 2 Oct 2014 13:14:21 +0000 (15:14 +0200)]
mon,mds: call ceph_heap_profiler_init() at boot time
So that the CEPH_HEAP_PROFILER_INIT environment variable can be used to
start profiling.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Thu, 2 Oct 2014 13:12:30 +0000 (15:12 +0200)]
perfglue: profiler stats need more than 1024 bytes
With a 1024 bytes buffer to display the stats, the end is truncated.
Use an array on the stack instead of leaking the buffer.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Haomai Wang [Wed, 8 Oct 2014 07:23:47 +0000 (15:23 +0800)]
mailmap: add yuandong to organizationmap
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
Loic Dachary [Wed, 17 Sep 2014 13:57:25 +0000 (15:57 +0200)]
test,tools: indentation, whitespace only
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Wed, 17 Sep 2014 13:47:41 +0000 (15:47 +0200)]
tools: allow_unregistered() options
So that --debug-mon etc. can be parsed afterwards.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Wed, 17 Sep 2014 13:46:54 +0000 (15:46 +0200)]
tools: move po::collect_unrecognized in the try block
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Wed, 17 Sep 2014 13:43:17 +0000 (15:43 +0200)]
tools: display boost::program_options errors
Instead of silently discarding them. Do not display the usage on error
as it will probably hide the error message that shows before it.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Wed, 17 Sep 2014 13:37:01 +0000 (15:37 +0200)]
test: catch boost::program_options errors
And display it before returning on error.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Wed, 17 Sep 2014 13:34:01 +0000 (15:34 +0200)]
test,tools: capture boost::program_options in a try
When something fails boost::program_options throws an exception that
needs to be caught.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
Loic Dachary [Wed, 8 Oct 2014 06:44:08 +0000 (08:44 +0200)]
Merge pull request #2661 from dachary/wip-9677-ioprio-class-giant
common: ceph_ioprio_string_to_class always returns -EINVAL
Gregory Farnum [Wed, 8 Oct 2014 02:26:20 +0000 (19:26 -0700)]
Merge pull request #2617 from ceph/wip-9628
mds: Add session to sessionmap when its state becomes opening
Reviewed-by: Greg Farnum <greg@inktank.com>
Adam Crume [Wed, 8 Oct 2014 00:45:53 +0000 (17:45 -0700)]
Fix read performance regression in ObjectCacher
The regression was introduced in commit
4fc9fffc494abedac0a9b1ce44706343f18466f1 . The problem is that the cache
thinks it's full (when it's not), so it defers the read. This change
frees up cache space if necessary and only defers the read if enough
space cannot be freed.
Fixes: 9513
Signed-off-by: Adam Crume <adamcrume@gmail.com>
Joao Eduardo Luis [Tue, 7 Oct 2014 23:13:49 +0000 (00:13 +0100)]
mon: PGMonitor: populate scrub timestamps with 'now' on pg creation
Fixes: #9496
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
Joao Eduardo Luis [Tue, 7 Oct 2014 23:12:29 +0000 (00:12 +0100)]
mon: PGMonitor: prettify access to pg_stats_t in register_pg
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
Sage Weil [Tue, 7 Oct 2014 21:08:39 +0000 (14:08 -0700)]
Merge pull request #2660 from athanatos/wip-9203
test/osd/Object: don't generate length of 0
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 7 Oct 2014 21:06:38 +0000 (14:06 -0700)]
Merge pull request #2659 from athanatos/wip-9113
Wip 9113
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 7 Oct 2014 21:03:55 +0000 (14:03 -0700)]
Merge pull request #2658 from athanatos/wip-9625
PG: release backfill reservations if a backfill peer rejects
Reviewed-by: Sage Weil <sage@redhat.com>
David Zafman [Wed, 24 Sep 2014 23:02:21 +0000 (16:02 -0700)]
osd: Return EOPNOTSUPP if a set-alloc-hint occurs with OSDs that don't support
Add CEPH_FEATURE_OSD_SET_ALLOC_HINT feature bit
Collect the intersection of all peer feature bits during peering
When handling CEPH_OSD_OP_SETALLOCHINT check that all OSDs support it
by checking for CEPH_FEATURE_OSD_SET_ALLOC_HINT feature bit.
Fixes: #9419
Backport: firefly
Signed-off-by: David Zafman <dzafman@redhat.com>
David Zafman [Fri, 19 Sep 2014 22:12:55 +0000 (15:12 -0700)]
osd: Remove unused PG functions queue_notify(), queue_info(), queue_log()
Signed-off-by: David Zafman <dzafman@redhat.com>
Sage Weil [Tue, 7 Oct 2014 19:40:45 +0000 (12:40 -0700)]
Merge remote-tracking branch 'gh/giant'
Conflicts:
src/osdc/Objecter.cc
Sage Weil [Tue, 7 Oct 2014 19:34:10 +0000 (12:34 -0700)]
Merge tag 'v0.86' into giant
v0.86
Jenkins [Tue, 7 Oct 2014 13:20:21 +0000 (06:20 -0700)]
0.86
Samuel Just [Tue, 7 Oct 2014 18:42:14 +0000 (11:42 -0700)]
Merge remote-tracking branch 'guangyy/wip-9008' into giant