Danny Al-Gaaf
44e028f9d5
HTMLFormatter: reuse m_header_done from parent class
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
fc44347428
cls/rbd/cls_rbd.cc: reuse existing variable with same name
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
8793921ce2
mds/Server.cc: replace inefficient string::find() w/ compare()
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
729117f90e
client/SyntheticClient.cc: reduce scope of some variables
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
cfd076537a
client/SyntheticClient.cc: remove unused code
...
Removed since 2007 unused code and fixed indentation.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
2b60306467
client/Client.cc: init owner_uid and owner_gid vars in ctor
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
d407faa274
rgw/rgw_rados.cc: remove unused variable locator
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
822eecf8d3
rgw/rgw_op.cc: remove unused variables
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
a5d78c22fb
rgw/rgw_admin.cc: remove unused variables
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
aef72abe7f
mds/mdstypes.h: init fnode_t::damage_flags in ctor
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
c08435cfe5
client/Client.cc: reduce scope of some variables
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Kefu Chai
f6692a42df
Merge pull request #7371 from theanalyst/mon/quota-msg-cleanup
...
mon: cleanup set-quota error msg
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-19 17:56:20 +08:00
Josh Durgin
49a7ef5001
Merge pull request #7708 from jdurgin/wip-cython-cleanup
...
pybind: replace __del__ with __dealloc__ for rbd
Reviewed-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Mehdi Abaakouk <sileht@sileht.net>
2016-02-19 00:34:50 -08:00
Abhishek Lekshmanan
a917ccfce5
mon: cleanup set-quota error msg
...
When we send in an unrecognized field for set-quota, specify that the
options should be `max_bytes` or `max_objects`. This doesn't affect the
ceph-cli as the choices are caught at an earlier stage, however the
error message is seen while reaching the cluster via rados api for eg.
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-02-19 09:29:04 +01:00
Josh Durgin
b556b24a31
Merge pull request #7668 from dillaman/wip-librbd-replay-locks
...
librbd: use async librados notifications
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-02-19 00:15:36 -08:00
Josh Durgin
3d391546f5
.gitignore: include recently added rgw programs
...
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2016-02-18 23:49:09 -08:00
Josh Durgin
0a988f95bc
pybind: replace __del__ with __dealloc__ for rbd
...
Cython extension types like these don't call __del__, but use
__dealloc__ instead:
http://docs.cython.org/src/userguide/special_methods.html#finalization-method-dealloc
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2016-02-18 23:47:24 -08:00
Josh Durgin
5489ad3a21
Merge pull request #7706 from sileht/sileht/rados-cython
...
pybind: remove next() on iterators
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-02-18 23:46:21 -08:00
Mehdi Abaakouk
f98b4855e4
pybind: remove next() on iterator
...
Cython recommends to implement only __next__() methods.
http://docs.cython.org/src/userguide/special_methods.html#the-next-method
Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
2016-02-19 07:59:08 +01:00
Loic Dachary
78b3c40cbc
Merge pull request #7641 from batrick/vstart-usage
...
Clarify usage on starting single osd/mds/mon.
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-02-19 13:25:46 +07:00
Josh Durgin
398c493fa9
Merge pull request #7692 from sileht/sileht/rados-cython
...
pybind/rados: use __dealloc__ since __del__ is ignored by cython
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-02-18 17:42:26 -08:00
Jason Dillaman
4f15332db3
librbd: don't hold owner lock while refreshing image synchronously
...
The write lock will be taken when the new state is applied.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 17:58:28 -05:00
Jason Dillaman
4ecdf066fd
librbd: need owner write lock when disabling exclusive lock
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 17:56:20 -05:00
Jason Dillaman
922072aeb5
librbd: correct memory leaks discovered via valgrind
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 17:46:35 -05:00
Jason Dillaman
7e09cb132b
librbd: notifications should be flushed between exclusive lock states
...
Avoid leaving in-flight notification messages when transitioning lock
states.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 17:46:34 -05:00
Jason Dillaman
3d8d9da348
librbd: update image name upon rename operations
...
Previously the image could not have been renamed twice without
re-opening the image.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 15:45:51 -05:00
Jason Dillaman
ad78558a66
librbd: missing owner lock on snap rollback cache invalidation
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 15:45:51 -05:00
Jason Dillaman
e01b406762
librbd: journal replay should execute ops in clean context
...
lockdep will complain about loop cycles that won't cause an
issue in reality as replay and record are two different
journal states.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 15:45:51 -05:00
Jason Dillaman
bc2ae0ef56
librbd: use AIO notifications to prevent blocking ops
...
If two or more images share the same CephContext, notifications
from one image can block the work queue which will potentially
block acknowledging the notification until after it times out.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 15:45:51 -05:00
Jason Dillaman
9d0b5b9e5e
librbd: cleanup header update notifications
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 15:45:51 -05:00
Jason Dillaman
2c656171e4
Revert "librbd: lock notifications should be executed outside librados thread"
...
This reverts commit d898995b0e
.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 15:45:50 -05:00
Jason Dillaman
dd5c9e5503
librbd: support for AIO notifications
...
The header update and lock notifications might be invoked
from the librados AIO thread. Update the close state
machine to flush any potential AIO notifications.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 15:45:50 -05:00
Greg Farnum
12a55d6b1a
rstats: enable by default on client; move test workunit to its own dir
...
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-02-18 12:44:22 -08:00
Gregory Farnum
957c77d570
Merge pull request #7323 from ukernel/wip-client-dirsize
...
client: add option to control how directory size is calculated
This lets you disable rstats if your workload is unhappy about directories
changing size (eg, tar of recently-moved/created/untarred files).
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-02-18 12:47:05 -08:00
Yehuda Sadeh
3687a0d9fd
Merge pull request #7457 from weiqiaomiao/w1
...
Rgw: check the return value when call fe->run()
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-18 08:16:23 -08:00
Yehuda Sadeh
210b075d02
Merge pull request #7666 from rzarzynski/wip-rgw-sysreq-over-swift
...
rgw: add support for system requests over Swift API
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-18 08:08:13 -08:00
Yehuda Sadeh
55689f9b4f
Merge pull request #7678 from linuxbox2/rgw-sigusr1
...
rgw: move signal.h dependency from rgw_front.h
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-18 08:04:19 -08:00
Greg Farnum
bf24e351d9
Merge branch 'greg-pr-7034'
2016-02-18 06:41:23 -08:00
Kefu Chai
138d771862
Merge pull request #7679 from linuxbox2/rgw-ssconst
...
sstring.hh: return type from str_len(...) need not be const
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-18 21:58:19 +08:00
Mehdi Abaakouk
0fb387faed
pybind: rados cleanup
...
This change uses:
* a pystring to store ioctx state like other state attributes and like
previous binding
* use __dealloc__ instead of __del__ to ensure Object are freed correctly
Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
2016-02-18 11:26:26 +01:00
Gregory Farnum
037852eab5
Merge pull request #7684 from ceph/wip-pybind-install
...
pybind: use correct subdir for rados install-exec rule
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-02-17 16:45:10 -08:00
Greg Farnum
493a073e99
Merge branch 'wip-sharded-scan' of git://github.com/jcsp/ceph into greg-pr-7034
...
Conflicts:
src/osdc/Objecter.cc
2016-02-17 15:49:51 -08:00
Josh Durgin
c8b9a79bbd
pybind: use correct subdir for rados install-exec rule
...
This fixes package builds and 'make install'
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2016-02-17 15:44:45 -08:00
Josh Durgin
196d324b09
Merge pull request #7621 from sileht/sileht/rados-cython
...
python binding of librados with cython
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-02-17 10:05:20 -08:00
Radoslaw Zarzynski
aa87becbeb
rgw: remove unnecessary overloads in RGWHTTPArgs.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-02-17 18:30:06 +01:00
Matt Benjamin
27b991a55d
sstring.hh: return type from str_len(...) need not be const
...
Removes a compile warning.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-02-17 11:17:22 -05:00
Matt Benjamin
ebfc6bfd10
rgw: move signal.h dependency from rgw_front.h
...
Missed in refactoring of rgw_main.cc.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-02-17 10:46:21 -05:00
Mehdi Abaakouk
67f95c8f66
Update the documentation
...
Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
2016-02-17 15:16:56 +01:00
Mehdi Abaakouk
c4162b5988
librbdpy: Use new rados lib
...
Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
2016-02-17 12:32:39 +01:00
Mehdi Abaakouk
7216b06bc5
ceph.in: Use new python rados module
...
This implements run_in_thread inside the ceph command itself.
And fixes the ceph command bootstrap when it run inside the
source tree to correctly load the new rados python module.
Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
2016-02-17 12:32:38 +01:00