]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agocmake: add common/fs_types.cc to libcommon 7898/head
Orit Wasserman [Thu, 3 Mar 2016 13:17:21 +0000 (14:17 +0100)]
cmake: add common/fs_types.cc to libcommon

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #7098 from liewegas/wip-file-layout
Gregory Farnum [Thu, 3 Mar 2016 03:15:18 +0000 (19:15 -0800)]
Merge pull request #7098 from liewegas/wip-file-layout

mds, client: add namespace to file_layout_t (previously ceph_file_layout)

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #7849 from ceph/wip-cmake
Casey Bodley [Wed, 2 Mar 2016 19:08:53 +0000 (14:08 -0500)]
Merge pull request #7849 from ceph/wip-cmake

Wip cmake

9 years agocmake: simplified heap_profiler_objs dependencies 7849/head
Ali Maredia [Mon, 29 Feb 2016 21:37:57 +0000 (16:37 -0500)]
cmake: simplified heap_profiler_objs dependencies

The heap_profiler object library only needs to be
added to mon,mds, and osd instead of the numerous
targets it is part of

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agoclient/Inode: fix has_dir_layout 7098/head
Sage Weil [Tue, 1 Mar 2016 15:40:41 +0000 (10:40 -0500)]
client/Inode: fix has_dir_layout

Compare to default file_layout_t() -- not zeroed memory.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7869 from rzarzynski/wip-rgw-aws4-puthash
Orit Wasserman [Wed, 2 Mar 2016 17:08:48 +0000 (18:08 +0100)]
Merge pull request #7869 from rzarzynski/wip-rgw-aws4-puthash

rgw: calculate payload hash in RGWPutObj_ObjStore only when necessary.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge remote-tracking branch 'gh/jewel'
Sage Weil [Wed, 2 Mar 2016 14:22:28 +0000 (09:22 -0500)]
Merge remote-tracking branch 'gh/jewel'

9 years agoMerge pull request #7612 from liewegas/wip-buffer-combined
Sage Weil [Wed, 2 Mar 2016 13:31:08 +0000 (08:31 -0500)]
Merge pull request #7612 from liewegas/wip-buffer-combined

buffer: raw_combined allocations buffer and ref count together

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #7690 from xiexingguo/xxg-wip-14804
Sage Weil [Wed, 2 Mar 2016 13:30:26 +0000 (08:30 -0500)]
Merge pull request #7690 from xiexingguo/xxg-wip-14804

common/TrackedOp: fix inaccurate counting for slow requests

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7704 from xiexingguo/xxg-wip-14814
Sage Weil [Wed, 2 Mar 2016 13:29:54 +0000 (08:29 -0500)]
Merge pull request #7704 from xiexingguo/xxg-wip-14814

osd: filestore: fix wrong scope of result code for error cases during mkfs

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7812 from xiexingguo/xxg-wip-14872
Sage Weil [Wed, 2 Mar 2016 13:29:09 +0000 (08:29 -0500)]
Merge pull request #7812 from xiexingguo/xxg-wip-14872

osd: fix wrong return type of find_osd_on_ip()

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7815 from branch-predictor/bp-conditional-crc
Haomai Wang [Wed, 2 Mar 2016 13:28:40 +0000 (21:28 +0800)]
Merge pull request #7815 from branch-predictor/bp-conditional-crc

msg/async: don't calculate msg header crc when not needed

Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agoMerge pull request #7711 from xiexingguo/xxg-wip-14817
Sage Weil [Wed, 2 Mar 2016 13:28:03 +0000 (08:28 -0500)]
Merge pull request #7711 from xiexingguo/xxg-wip-14817

osd: filestore: fix result code overwritten for clone

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7790 from tchaikov/wip-log-segv
Sage Weil [Wed, 2 Mar 2016 13:27:36 +0000 (08:27 -0500)]
Merge pull request #7790 from tchaikov/wip-log-segv

log: segv in a portable way

Reviewed-by: Nathan Cutler <ncutler@suse.com>
9 years agoMerge pull request #7842 from xiexingguo/xxg-wip-14921
Sage Weil [Wed, 2 Mar 2016 13:26:30 +0000 (08:26 -0500)]
Merge pull request #7842 from xiexingguo/xxg-wip-14921

osd: fix overload of '==' operator for pg_stat_t

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7390 from badone/wip-13829
Kefu Chai [Wed, 2 Mar 2016 03:22:24 +0000 (11:22 +0800)]
Merge pull request #7390 from badone/wip-13829

common: Allow OPT_INT settings with negative values

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
9 years agoMerge pull request #7854 from yehudasa/wip-authors-update
Kefu Chai [Wed, 2 Mar 2016 02:18:25 +0000 (10:18 +0800)]
Merge pull request #7854 from yehudasa/wip-authors-update

AUTHORS: update email

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7846 from dillaman/wip-14551
Josh Durgin [Wed, 2 Mar 2016 01:18:04 +0000 (17:18 -0800)]
Merge pull request #7846 from dillaman/wip-14551

rbd: update default image features

Conflicts:
PendingReleaseNotes (trivial)

9 years agoMerge pull request #7841 from dillaman/wip-14550
Josh Durgin [Wed, 2 Mar 2016 01:18:18 +0000 (17:18 -0800)]
Merge pull request #7841 from dillaman/wip-14550

rbd: deprecate image format 1

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7839 from dillaman/wip-14809
Josh Durgin [Wed, 2 Mar 2016 01:18:05 +0000 (17:18 -0800)]
Merge pull request #7839 from dillaman/wip-14809

librbd: remove last synchronous librados calls from open/close state machine

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7785 from dillaman/wip-14822
Josh Durgin [Wed, 2 Mar 2016 01:17:50 +0000 (17:17 -0800)]
Merge pull request #7785 from dillaman/wip-14822

librbd: journal replay needs to support re-executing maintenance ops

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7776 from dillaman/wip-librbd-journal-tweaks
Josh Durgin [Wed, 2 Mar 2016 01:17:31 +0000 (17:17 -0800)]
Merge pull request #7776 from dillaman/wip-librbd-journal-tweaks

journal: improve commit position tracking

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agocmake: Turned LTTng OFF
Ali Maredia [Mon, 29 Feb 2016 21:11:04 +0000 (16:11 -0500)]
cmake: Turned LTTng OFF

This is temporary, until a way to stop repetitive
unecessary generation of headerfiles is figured out.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agoAUTHORS: update email 7854/head
Yehuda Sadeh [Tue, 1 Mar 2016 04:13:11 +0000 (20:13 -0800)]
AUTHORS: update email

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: calculate payload hash in RGWPutObj_ObjStore only when necessary. 7869/head
Radoslaw Zarzynski [Tue, 1 Mar 2016 20:52:44 +0000 (21:52 +0100)]
rgw: calculate payload hash in RGWPutObj_ObjStore only when necessary.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoMerge pull request #7767 from athanatos/wip-sam-journal-throttle-4
Samuel Just [Tue, 1 Mar 2016 20:51:15 +0000 (12:51 -0800)]
Merge pull request #7767 from athanatos/wip-sam-journal-throttle-4

osd: filestore: restructure journal and op queue throttling

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agomds: deny access to file with pool_ns layout if feature is missing
Yan, Zheng [Sun, 14 Feb 2016 09:27:26 +0000 (17:27 +0800)]
mds: deny access to file with pool_ns layout if feature is missing

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agomds: fix inodestat size calculation
Yan, Zheng [Sun, 14 Feb 2016 08:59:31 +0000 (16:59 +0800)]
mds: fix inodestat size calculation

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agomds: properly purge backtrace object
Yan, Zheng [Sun, 14 Feb 2016 08:42:56 +0000 (16:42 +0800)]
mds: properly purge backtrace object

backtrace objects are always in default namespace

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agomessages/MClientCaps: fix decoding
Yan, Zheng [Mon, 15 Feb 2016 15:28:32 +0000 (23:28 +0800)]
messages/MClientCaps: fix decoding

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agomds/Server: fix whitespace
Sage Weil [Fri, 26 Feb 2016 15:32:20 +0000 (10:32 -0500)]
mds/Server: fix whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/Locker: fix Session leak on access denial
Sage Weil [Fri, 26 Feb 2016 15:32:15 +0000 (10:32 -0500)]
mds/Locker: fix Session leak on access denial

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agofix init of new fields in MCLientCaps
Sage Weil [Tue, 23 Feb 2016 15:26:15 +0000 (10:26 -0500)]
fix init of new fields in MCLientCaps

9 years agomds/MDSMap: add file layout v2 incompat feature
Sage Weil [Wed, 10 Feb 2016 14:43:32 +0000 (09:43 -0500)]
mds/MDSMap: add file layout v2 incompat feature

The existing MDSMonitor machinations already add this to the MDSMap to
boot out old MDS's.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: deny access to directories with pool_ns layouts if feature is missing
Sage Weil [Wed, 10 Feb 2016 14:38:33 +0000 (09:38 -0500)]
mds: deny access to directories with pool_ns layouts if feature is missing

If the client feature is missing, given them EIO.  Change check_access to
return an error code to distinguish this from EACCES.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomon/MDSMonitor: prevent pool 0 from being used as a data pool
Sage Weil [Mon, 1 Feb 2016 18:01:32 +0000 (13:01 -0500)]
mon/MDSMonitor: prevent pool 0 from being used as a data pool

Pool 0 means no change or default in the legacy ceph_file_layout in the
layout ioctl and file create arguments. Prevent it from being used to avoid
putting users in an awkward situation later.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: don't break compatibility of MClientCaps/MClientReply
Yan, Zheng [Mon, 1 Feb 2016 14:17:04 +0000 (22:17 +0800)]
mds: don't break compatibility of MClientCaps/MClientReply

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agofs_types: file_layout_t: convert pool -1 (undefined) to 0 in legacy encoding
Sage Weil [Tue, 12 Jan 2016 14:57:06 +0000 (09:57 -0500)]
fs_types: file_layout_t: convert pool -1 (undefined) to 0 in legacy encoding

Old code assumes that fl_pg_pool == 0 means the pool is not defined, while
file_layout_t uses -1.  Translate between the two.

Note that this means a valid file_layout_t with pool_id == 0 cannot be
accurately translated to a legacy file_layout_t.  That is somewhat
unavoidable, and should not be a problem since real clusters create 'rbd'
as pool 0 and it does not use any file layouts.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoqa/workunits/fs/misc/layout_vxattrs: test layout.pool_namespace
Sage Weil [Mon, 4 Jan 2016 15:51:36 +0000 (10:51 -0500)]
qa/workunits/fs/misc/layout_vxattrs: test layout.pool_namespace

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoclient: expose layout.pool_namespace vxattr
Sage Weil [Mon, 4 Jan 2016 14:15:34 +0000 (09:15 -0500)]
client: expose layout.pool_namespace vxattr

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: allow adjustment of layout.pool_namespace vxattr
Sage Weil [Mon, 4 Jan 2016 14:37:35 +0000 (09:37 -0500)]
mds: allow adjustment of layout.pool_namespace vxattr

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agostruct ceph_file_layout -> file_layout_t
Sage Weil [Mon, 4 Jan 2016 15:44:53 +0000 (10:44 -0500)]
struct ceph_file_layout -> file_layout_t

- drop the global
- do not memset!
- encode with features
- field names are different
- use get_period() method where appropriate
- fix is layout empty checks

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: make inode_t, old_inode_t featureful
Sage Weil [Thu, 31 Dec 2015 22:24:44 +0000 (17:24 -0500)]
mds: make inode_t, old_inode_t featureful

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomessages/MClientCaps: avoid fixed struct for encoding
Sage Weil [Thu, 31 Dec 2015 19:05:03 +0000 (14:05 -0500)]
messages/MClientCaps: avoid fixed struct for encoding

At least for new clients.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: encode inode reply information directly
Sage Weil [Thu, 31 Dec 2015 18:21:09 +0000 (13:21 -0500)]
mds: encode inode reply information directly

Drop the ceph_mds_reply_inode struct and encode directly.  Note
that we already decode directly to InodeStat in MClientReply.h.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomessages/MClientReply: stop using ceph_mds_reply_inode struct to unpack
Sage Weil [Thu, 31 Dec 2015 18:49:05 +0000 (13:49 -0500)]
messages/MClientReply: stop using ceph_mds_reply_inode struct to unpack

Decode directly.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: pass features to various CInode encoders and helpers
Sage Weil [Wed, 30 Dec 2015 20:13:36 +0000 (15:13 -0500)]
mds: pass features to various CInode encoders and helpers

We'll need this shortly.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/MDSMap: cache up_features; fix logic
Sage Weil [Wed, 30 Dec 2015 20:07:39 +0000 (15:07 -0500)]
mds/MDSMap: cache up_features; fix logic

& these, not | them.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agolibradosstriper: move default stripe parameters inline
Sage Weil [Wed, 30 Dec 2015 20:05:53 +0000 (15:05 -0500)]
libradosstriper: move default stripe parameters inline

The extern is going away.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoinclude/encoding: featureful encoder for list of shared_ptrs
Sage Weil [Wed, 30 Dec 2015 20:04:28 +0000 (15:04 -0500)]
include/encoding: featureful encoder for list of shared_ptrs

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoinclude/compact_map: featureful encoders, too
Sage Weil [Wed, 30 Dec 2015 20:04:08 +0000 (15:04 -0500)]
include/compact_map: featureful encoders, too

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-dencoder: TYPE_FEATUREFUL_NOCOPY
Sage Weil [Wed, 30 Dec 2015 20:03:42 +0000 (15:03 -0500)]
ceph-dencoder: TYPE_FEATUREFUL_NOCOPY

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: pass features to LogEvents, EMetaBlob
Sage Weil [Tue, 10 Nov 2015 22:06:44 +0000 (17:06 -0500)]
mds: pass features to LogEvents, EMetaBlob

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds,mon: include features in beacon messages, MDSMap
Sage Weil [Tue, 10 Nov 2015 21:47:11 +0000 (16:47 -0500)]
mds,mon: include features in beacon messages, MDSMap

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/MDSMap: add features to MDSMap's mds_info_t
Sage Weil [Tue, 10 Nov 2015 21:45:32 +0000 (16:45 -0500)]
mds/MDSMap: add features to MDSMap's mds_info_t

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoadd fs_types.h, with file_layout_t
Sage Weil [Tue, 10 Nov 2015 11:40:09 +0000 (06:40 -0500)]
add fs_types.h, with file_layout_t

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodeclare Formatter for everyone
Sage Weil [Wed, 30 Dec 2015 20:35:01 +0000 (15:35 -0500)]
declare Formatter for everyone

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoqa/workunits/fs/misc/layout_vxattr.sh: detect data pool name
Sage Weil [Mon, 4 Jan 2016 14:46:47 +0000 (09:46 -0500)]
qa/workunits/fs/misc/layout_vxattr.sh: detect data pool name

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7823 from SUSE/wip-14906
branto1 [Tue, 1 Mar 2016 15:35:21 +0000 (16:35 +0100)]
Merge pull request #7823 from SUSE/wip-14906

packaging: add lsb-release dependency for SUSE and Debian

Reviewed-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
9 years agoMerge pull request #7837 from rldleblanc/wpq-documentation
Sage Weil [Tue, 1 Mar 2016 14:27:21 +0000 (09:27 -0500)]
Merge pull request #7837 from rldleblanc/wpq-documentation

doc: osd-config Add Configuration Options for op queue.

9 years agoMerge pull request #7851 from jupiturliu/obj-bencher-bug
Sage Weil [Tue, 1 Mar 2016 14:25:51 +0000 (09:25 -0500)]
Merge pull request #7851 from jupiturliu/obj-bencher-bug

rados: fix bug for write bench

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7729 from yuyuyu101/wip-spdk2
Sage Weil [Tue, 1 Mar 2016 14:18:15 +0000 (09:18 -0500)]
Merge pull request #7729 from yuyuyu101/wip-spdk2

osd: bluestore: Revert NVMEDevice task cstor and refresh interface changes

9 years agopackaging: lsb_release build and runtime dependency 7823/head
Nathan Cutler [Fri, 26 Feb 2016 17:30:49 +0000 (18:30 +0100)]
packaging: lsb_release build and runtime dependency

The lsb_release executable is being run in multiple places, not least in
src/common/util.cc, which calls it via shell in the collect_sys_info() code
path.

This patch addresses this issue on SUSE- and Debian-derivatives, as well
as reinstating the dependency for RHEL/Fedora after it was dropped in
15600572265bed397fbd80bdd2b7d83a0e9bd918.

http://tracker.ceph.com/issues/14906 Fixes: #14906

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agobuffer: use alignof for raw_combined allocation arithmetic 7612/head
Sage Weil [Thu, 11 Feb 2016 19:59:43 +0000 (14:59 -0500)]
buffer: use alignof for raw_combined allocation arithmetic

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agobuffer: clean up raw_combined construction
Sage Weil [Thu, 11 Feb 2016 17:52:56 +0000 (12:52 -0500)]
buffer: clean up raw_combined construction

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agobuffer: size append_buffer so that it fits into page-multiple allocations
Sage Weil [Wed, 10 Feb 2016 23:01:00 +0000 (18:01 -0500)]
buffer: size append_buffer so that it fits into page-multiple allocations

We drop some unittest assertions about alloc buffer size.  Sorry!

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agorbd-replay: s/CEPH_BUFFER_APPEND_SIZE/CEPH_PAGE_SIZE/
Sage Weil [Tue, 1 Mar 2016 14:09:01 +0000 (09:09 -0500)]
rbd-replay: s/CEPH_BUFFER_APPEND_SIZE/CEPH_PAGE_SIZE/

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agobuffer: alloc right-sized buffer from read_fd
Sage Weil [Wed, 10 Feb 2016 22:51:18 +0000 (17:51 -0500)]
buffer: alloc right-sized buffer from read_fd

This may as well fit the input; this doesn't relate to the
append buffer.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agobuffer: use raw_combined for certain allocations
Sage Weil [Thu, 11 Feb 2016 16:48:44 +0000 (11:48 -0500)]
buffer: use raw_combined for certain allocations

If the alignment is on a page boundary, or the allocation is big,
a separate buffer::raw goes faster.  The rest of the time,
a raw_combined does.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agobuffer: align unspecified allocations to a word
Sage Weil [Thu, 11 Feb 2016 16:46:35 +0000 (11:46 -0500)]
buffer: align unspecified allocations to a word

This will let us put policy create_aligned.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agobuffer: combine data and buffer::raw into single allocation
Sage Weil [Wed, 10 Feb 2016 22:42:07 +0000 (17:42 -0500)]
buffer: combine data and buffer::raw into single allocation

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agobuffer: add front(), back(), get_num_buffers() methods
Sage Weil [Tue, 11 Aug 2015 14:49:07 +0000 (10:49 -0400)]
buffer: add front(), back(), get_num_buffers() methods

These eliminate most callers of buffers(), which exposes the
internal list<ptr>.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agounittest_bufferlist: benchmark some allocations
Sage Weil [Mon, 10 Aug 2015 20:39:06 +0000 (16:39 -0400)]
unittest_bufferlist: benchmark some allocations

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agounittest_bufferlist: fix append_bench
Sage Weil [Thu, 11 Feb 2016 16:08:42 +0000 (11:08 -0500)]
unittest_bufferlist: fix append_bench

- fix source
- include larger sizes

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agounittest_bufferlist: fix ptr move test
Sage Weil [Thu, 11 Feb 2016 14:25:15 +0000 (09:25 -0500)]
unittest_bufferlist: fix ptr move test

Do not assume there is a trailing null the terminate the string.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7739 from xiexingguo/xxg-wip-14387
Sage Weil [Tue, 1 Mar 2016 13:46:08 +0000 (08:46 -0500)]
Merge pull request #7739 from xiexingguo/xxg-wip-14387

osd: fix race condition for heartbeat_need_update

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7703 from xiexingguo/xxg-wip-statfs
Sage Weil [Tue, 1 Mar 2016 13:45:39 +0000 (08:45 -0500)]
Merge pull request #7703 from xiexingguo/xxg-wip-statfs

osd: filestore: fast abort if statfs encounters ENOENT

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7766 from adamemerson/wip-portable-mutex
Sage Weil [Tue, 1 Mar 2016 13:45:00 +0000 (08:45 -0500)]
Merge pull request #7766 from adamemerson/wip-portable-mutex

common: Do not use non-portable constants in mutex_debug

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
9 years agoMerge pull request #7799 from xiexingguo/xxg-wip-fixnvme
Sage Weil [Tue, 1 Mar 2016 13:44:21 +0000 (08:44 -0500)]
Merge pull request #7799 from xiexingguo/xxg-wip-fixnvme

osd: bluestore: NVMEDevice: fix error handling

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7804 from jjhuo/fixes
Sage Weil [Tue, 1 Mar 2016 13:43:49 +0000 (08:43 -0500)]
Merge pull request #7804 from jjhuo/fixes

osd: kstore: fix a race condition in _txc_finish()

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7816 from marcan/build-fixes
Sage Weil [Tue, 1 Mar 2016 13:43:25 +0000 (08:43 -0500)]
Merge pull request #7816 from marcan/build-fixes

configure.ac: boost_iostreams is required, not optional

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agolibrbd: use aio watch/unwatch during open/close state machines 7839/head
Jason Dillaman [Sun, 28 Feb 2016 20:22:09 +0000 (15:22 -0500)]
librbd: use aio watch/unwatch during open/close state machines

Removed the place holders in the open/close async state machines with
the newly added aio watch/unwatch methods.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrados_test_stub: added aio_watch/aio_unwatch/aio_watch_flush
Jason Dillaman [Sun, 28 Feb 2016 20:21:36 +0000 (15:21 -0500)]
librados_test_stub: added aio_watch/aio_unwatch/aio_watch_flush

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agotest: adjust rbd test case guards to handle new defaults 7846/head
Jason Dillaman [Tue, 1 Mar 2016 13:32:39 +0000 (08:32 -0500)]
test: adjust rbd test case guards to handle new defaults

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agotest: use default RBD features in test cases
Jason Dillaman [Mon, 29 Feb 2016 18:17:02 +0000 (13:17 -0500)]
test: use default RBD features in test cases

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: permit deep-flatten to be dynamically disabled
Jason Dillaman [Mon, 29 Feb 2016 18:16:42 +0000 (13:16 -0500)]
librbd: permit deep-flatten to be dynamically disabled

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorbd: update default image features
Jason Dillaman [Mon, 29 Feb 2016 16:31:55 +0000 (11:31 -0500)]
rbd: update default image features

Exclusive lock, object map, fast-diff, and deep-flatten have been
enabled by default for all new images.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: apply orphaned maintenance ops after journal replay 7785/head
Jason Dillaman [Wed, 24 Feb 2016 23:07:45 +0000 (18:07 -0500)]
librbd: apply orphaned maintenance ops after journal replay

If a client recorded a maintenance op to the journal but crashed
before writing the op finish event, the image will be in an
inconsistent state.  Therefore, once the end of the journal is
reached, attempt to apply all queued ops.

Fixes: #14822
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: only cancel replay of journal op events upon error
Jason Dillaman [Wed, 24 Feb 2016 22:00:13 +0000 (17:00 -0500)]
librbd: only cancel replay of journal op events upon error

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: delay commit of op start event
Jason Dillaman [Wed, 24 Feb 2016 21:35:58 +0000 (16:35 -0500)]
librbd: delay commit of op start event

If the start event is flagged as committed before the op is
actually executed, librbd won't be able to replay the event
should a crash occur.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agojournal: permit fire-and-forget aio commit position flush
Jason Dillaman [Wed, 24 Feb 2016 21:20:02 +0000 (16:20 -0500)]
journal: permit fire-and-forget aio commit position flush

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: support replay of maintenance ops
Jason Dillaman [Wed, 24 Feb 2016 20:51:08 +0000 (15:51 -0500)]
librbd: support replay of maintenance ops

Ignore errors that are to be expected when replaying
a maintenance op two or more times.

Fixes: #14822
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #7858 from jdurgin/wip-rbd-formatted-output-progress
Loic Dachary [Tue, 1 Mar 2016 10:58:25 +0000 (17:58 +0700)]
Merge pull request #7858 from jdurgin/wip-rbd-formatted-output-progress

test/cli-integration/rbd: disable progress output

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #7745 from sileht/sileht/rados-cython
John Spray [Tue, 1 Mar 2016 10:40:21 +0000 (10:40 +0000)]
Merge pull request #7745 from sileht/sileht/rados-cython

pybind: move cephfs to Cython

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #7831 from yuyuyu101/wip-14912
Haomai Wang [Tue, 1 Mar 2016 09:54:03 +0000 (17:54 +0800)]
Merge pull request #7831 from yuyuyu101/wip-14912

AsyncMessenger: fix several bugs

9 years agoMerge pull request #7852 from xiexingguo/xxg-wip-14928
Haomai Wang [Tue, 1 Mar 2016 09:53:20 +0000 (17:53 +0800)]
Merge pull request #7852 from xiexingguo/xxg-wip-14928

msg: async: start over after failing to bind a port in specified range

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Kefu Chai <kefu@redhat.com>
9 years agomsg: async: start over after failing to bind a port in specified range 7852/head
xie xingguo [Tue, 1 Mar 2016 11:03:00 +0000 (19:03 +0800)]
msg: async: start over after failing to bind a port in specified range

The original report associated with this fix can be found at
http://tracker.ceph.com/issues/13002. I reopen one in case it
needs to be backported or something alike.

Fixes: #14928
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agotest/cli-integration/rbd: disable progress output 7858/head
Josh Durgin [Tue, 1 Mar 2016 06:57:00 +0000 (22:57 -0800)]
test/cli-integration/rbd: disable progress output

This test is intended to check machine-readable output and usage, not
human-readable output.

Fixes: #14931
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7778 from marcan/pybind-fixes
Josh Durgin [Tue, 1 Mar 2016 06:48:53 +0000 (22:48 -0800)]
Merge pull request #7778 from marcan/pybind-fixes

pybind/rados: fix object lifetime issues and other bugs in aio

Reviewed-by: Mehdi Abaakouk <sileht@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7855 from tchaikov/wip-fix-ftbfs
Kefu Chai [Tue, 1 Mar 2016 06:39:29 +0000 (14:39 +0800)]
Merge pull request #7855 from tchaikov/wip-fix-ftbfs

test/TestPGLog: fix the FTBFS

Reviewed-by: Loic Dachary <ldachary@redhat.com>