Sage Weil
52cfc505fb
os/bluestore/BlueFS: drop get_fs_usage(); add get_used()
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:43 -05:00
Sage Weil
c6da00b418
kv: add per-prefix space estimation
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:43 -05:00
Sage Weil
71d8fe7faf
osd: decouple statfs update from hb peers, pg count
...
These don't need to be updated in synchrony. (In fact, the statfs update
could be much more infrequent.)
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:43 -05:00
Sage Weil
a66f8bfe7d
osd: drop useless OSDService::update_osd_stat()
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:43 -05:00
Sage Weil
fa120cec38
osd/osd_types: separate accounting for data, omap, and metadata
...
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:43 -05:00
Sage Weil
b116d21408
osd: re-add get_num_pgs()
...
We removed this but it's a useful accessor.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-08-15 17:18:42 -05:00
Patrick Donnelly
583e7976cc
msg: add msgref cast method
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-15 13:36:38 -07:00
Patrick Donnelly
e0d3db8904
msg: cleanup factory/ref definition in messages
...
This eliminates duplicate code definitions.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-15 13:36:38 -07:00
Patrick Donnelly
6632131da1
mds: use message factory to avoid leaks
...
Fixes: http://tracker.ceph.com/issues/24306
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-15 13:36:36 -07:00
Patrick Donnelly
89cb1adeeb
msg: add factory method to correctly construct smart_ptr
...
This is to avoid easy leaks of the form:
boost::intrusive_ptr(new M*(...));
where a ref is leaked because constructing the intrusive_ptr adds a ref.
It is expected that eventually all constructors move to protected/private so
that the message's factory is the only way to build a new message (safely).
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-15 13:36:18 -07:00
Patrick Donnelly
52fac5eb75
mds: remove dead MDS-MDS forwarding code
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-15 13:36:16 -07:00
Patrick Donnelly
d2a202af39
mds: manage Message lifetime with intrusive_ptr
...
This change turned out to be far more extensive than I hoped but the end result
should prevent all Message-related memory leaks. I believe I fixed several
incidentally.
Fixes: http://tracker.ceph.com/issues/24306
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-15 13:35:30 -07:00
Patrick Donnelly
de86952aca
Merge PR #23592 into master
...
* refs/pull/23592/head:
tools/cephfs-shell:used cmd2 inbuilt colorize method instead of colorama
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-15 12:17:11 -07:00
Jeff Layton
fe0f3e9a38
librados: add a rados_omap_iter_size function
...
Sometimes we need to know how many elements are represented by an omap
iterator. Add a new rados_omap_iter_size to return the number of
elements in the returned iterator.
Also add some sanity checks for this to existing tests.
Tracker: http://tracker.ceph.com/issues/26948
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2018-08-15 12:24:45 -04:00
Pavani Rajula
5eac53c659
tools/cephfs-shell:used cmd2 inbuilt colorize method instead of colorama
...
Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
2018-08-15 20:47:20 +05:30
Yan, Zheng
6eb6712be6
mds: more description for failed authpin
...
Fixes: http://tracker.ceph.com/issues/24840
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2018-08-15 20:46:23 +08:00
Yan, Zheng
4ecf91deb2
mds: cleanup CDir freezing/frozen tree check
...
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2018-08-15 20:19:48 +08:00
Yanhu Cao
8757652c11
mon/PGMap: command 'ceph df -f json' output add total_percent_used
...
Signed-off-by: Yanhu Cao <gmayyyha@gmail.com>
2018-08-15 17:49:51 +08:00
Kefu Chai
760e4718db
Merge pull request #23580 from tchaikov/wip-man-page-parse-desc
...
man: skip directive starting with ".."
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2018-08-15 16:48:46 +08:00
Kefu Chai
ad93d71c8f
man: skip directive starting with ".."
...
the target definition of hyper link looks like:
.. _a-reference-label:
there is chance that we need to add `:ref:` referencing man pages,
and add target definition at the beginning of the manapges for the
references. in that case, we need to skip the ref directives when
looking for the title of the manpage.
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-15 13:28:54 +08:00
Patrick Donnelly
954e6596af
common: add templated Context factory
...
For use to create Contexts only when needed.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-14 21:20:56 -07:00
Patrick Donnelly
44f5e4e1ab
msg: add const version of get_payload
...
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-14 21:20:56 -07:00
Patrick Donnelly
ab60ae44c6
msg: use queue of messages for dispatch
...
This avoids an allocation for each new message (amortized via deque).
Additionally, use std::move to avoid atomic update to the Message ref.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-14 21:20:56 -07:00
Patrick Donnelly
1aeb2f7eab
msg: dispatch intrusive_ptr Messages
...
This codifies the giving of a reference to the Dispatcher and helps avoid
memory leaks. Old-style dispatch is kept to allow older code to continue
working.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-14 21:20:55 -07:00
Patrick Donnelly
460cbdcf55
msg: use deque for dispatcher pointers
...
To improve cache locality.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-14 21:20:55 -07:00
Kefu Chai
4cf9e35cf5
Merge pull request #23564 from falcon78921/wip-docs-links-1
...
doc: fixed broken urls
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-08-15 11:46:28 +08:00
Sage Weil
b0b616df7b
Merge PR #23240 into master
...
* refs/pull/23240/head:
qa/suites/rados, qa/workunits/rados: Add suite/workunit for ceph-crash
add ceph-crash service
common/options: enable mgr 'crash' module by default
global/signal_handler: add 'done' file to signal crashdump is ready
Reviewed-by: Sage Weil <sage@redhat.com>
2018-08-14 20:31:29 -05:00
songweibin
49b6c56e4c
tools/rbd: minor fixes for rbd du display
...
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-08-15 09:09:22 +08:00
Jesse Williamson
5513a90c62
build: add top-level libraddosstriper conditional
...
Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
2018-08-14 16:47:32 -07:00
Jason Dillaman
7b5dce63c4
Merge pull request #15831 from trociny/wip-18430-1
...
librbd: support migrating images with minimal downtime
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-08-14 19:05:13 -04:00
Mykola Golub
dbc32361ef
librbd: drop snap lock before sending copyup request
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
d3d3b51b8d
librbd: restart object deep copy with flatten
...
if copyup request was appended with non empty writes when the deep
copy was in flight.
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
fccaa4838f
librbd: update in-memory migration snap map after creating snap
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
57ee7e1491
librbd: AsyncOperation may not be reused
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
59336a5dea
librbd: migrate: skip update object map for snaps that don't overlap
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
96e6639b13
librbd: don't update object map if object deep copy returned ENOENT
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
1cfbf1ec65
librbd: open migration image parent and store its pointer in ImageCtx
...
Use the pointer in copyup and migrate requests, when deep copying an
object.
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
894ffca543
librbd: use 'open snap by id' in clone request
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
09d2f2265f
librbd: use 'open snap by id' in deep copy image copy request
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
c04bd3df46
librbd: use 'open snap by id' in refresh parent request
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
5065dd8fa0
librbd: allow to open snapshot by id
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Jason Dillaman
4c8731fe3c
librbd: separate read vs write migration parent overlaps
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Jason Dillaman
178aaa03b1
librbd: corrected usage of ImageState::open flag parameter
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-08-14 18:29:45 -04:00
Jason Dillaman
210ea0cb76
librbd: migration should keep parent linkage by default
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-08-14 18:29:45 -04:00
Jason Dillaman
b498aa0380
librbd: move shared common clone parent logic to state machine
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-08-14 18:29:45 -04:00
Jason Dillaman
91d6ac1121
librbd: normalize clone state machine method names and debug logs
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
b13784ed9e
librbd: update executing state description with migration % complete
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
72df087dbd
rbd: make status show migration details if it is in progress
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
0ddc684b6c
rbd: show when parent is migration source in info output
...
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
977969730d
librbd: get_parent_info: don't try to find parent snap name for CEPH_NOSNAP
...
(it is possible now when the parent is a migration source)
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00