Sage Weil
efb4a83f77
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>
2016-03-01 11:18:17 -05:00
Sage Weil
c31e94d3b5
qa/workunits/fs/misc/layout_vxattrs: test layout.pool_namespace
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:18:17 -05:00
Sage Weil
e0ad651744
client: expose layout.pool_namespace vxattr
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:18:16 -05:00
Sage Weil
386d7c6b02
mds: allow adjustment of layout.pool_namespace vxattr
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:18:16 -05:00
Sage Weil
99f1f6478d
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>
2016-03-01 11:18:16 -05:00
Sage Weil
2752eeefc3
mds: make inode_t, old_inode_t featureful
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:17:41 -05:00
Sage Weil
e750f48c03
messages/MClientCaps: avoid fixed struct for encoding
...
At least for new clients.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:17:41 -05:00
Sage Weil
ff606bf4c4
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>
2016-03-01 11:17:00 -05:00
Sage Weil
0b1f7f59b6
messages/MClientReply: stop using ceph_mds_reply_inode struct to unpack
...
Decode directly.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:17:00 -05:00
Sage Weil
7dcf39f7ca
mds: pass features to various CInode encoders and helpers
...
We'll need this shortly.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:17:00 -05:00
Sage Weil
826e8d01dc
mds/MDSMap: cache up_features; fix logic
...
& these, not | them.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:17:00 -05:00
Sage Weil
162ca5bcf9
libradosstriper: move default stripe parameters inline
...
The extern is going away.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:17:00 -05:00
Sage Weil
7b961ff129
include/encoding: featureful encoder for list of shared_ptrs
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:16:59 -05:00
Sage Weil
bdae5bf37c
include/compact_map: featureful encoders, too
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:16:59 -05:00
Sage Weil
4cf4f8dd13
ceph-dencoder: TYPE_FEATUREFUL_NOCOPY
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:16:59 -05:00
Sage Weil
358cce1e7f
mds: pass features to LogEvents, EMetaBlob
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:16:59 -05:00
Sage Weil
e08dd70d78
mds,mon: include features in beacon messages, MDSMap
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:16:59 -05:00
Sage Weil
4ad8f7254a
mds/MDSMap: add features to MDSMap's mds_info_t
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:16:59 -05:00
Sage Weil
982208135c
add fs_types.h, with file_layout_t
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:16:59 -05:00
Sage Weil
0cd1b94133
declare Formatter for everyone
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:16:59 -05:00
Sage Weil
58a00e01f5
qa/workunits/fs/misc/layout_vxattr.sh: detect data pool name
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:16:58 -05:00
Sage Weil
efd7625f38
Merge pull request #7837 from rldleblanc/wpq-documentation
...
doc: osd-config Add Configuration Options for op queue.
2016-03-01 09:27:21 -05:00
Sage Weil
805e37cf8b
Merge pull request #7851 from jupiturliu/obj-bencher-bug
...
rados: fix bug for write bench
Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-01 09:25:51 -05:00
Sage Weil
48e2a65b22
Merge pull request #7729 from yuyuyu101/wip-spdk2
...
osd: bluestore: Revert NVMEDevice task cstor and refresh interface changes
2016-03-01 09:18:15 -05:00
Sage Weil
149f01f3d8
Merge pull request #7739 from xiexingguo/xxg-wip-14387
...
osd: fix race condition for heartbeat_need_update
Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-01 08:46:08 -05:00
Sage Weil
ef5973324b
Merge pull request #7703 from xiexingguo/xxg-wip-statfs
...
osd: filestore: fast abort if statfs encounters ENOENT
Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-01 08:45:39 -05:00
Sage Weil
57b838f4b8
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>
2016-03-01 08:45:00 -05:00
Sage Weil
5f429178b5
Merge pull request #7799 from xiexingguo/xxg-wip-fixnvme
...
osd: bluestore: NVMEDevice: fix error handling
Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-01 08:44:21 -05:00
Sage Weil
46bd7bbb8b
Merge pull request #7804 from jjhuo/fixes
...
osd: kstore: fix a race condition in _txc_finish()
Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-01 08:43:49 -05:00
Sage Weil
0edaae6305
Merge pull request #7816 from marcan/build-fixes
...
configure.ac: boost_iostreams is required, not optional
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-03-01 08:43:25 -05:00
Loic Dachary
d5c9349ea8
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>
2016-03-01 17:58:25 +07:00
John Spray
3d8fc94381
Merge pull request #7745 from sileht/sileht/rados-cython
...
pybind: move cephfs to Cython
Reviewed-by: John Spray <john.spray@redhat.com>
2016-03-01 10:40:21 +00:00
Haomai Wang
4ea3d68368
Merge pull request #7831 from yuyuyu101/wip-14912
...
AsyncMessenger: fix several bugs
2016-03-01 17:54:03 +08:00
Haomai Wang
48a5f2d835
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>
2016-03-01 17:53:20 +08:00
xie xingguo
8ffc4e8001
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>
2016-03-01 22:45:14 +08:00
Josh Durgin
acc640542c
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>
2016-02-29 22:57:56 -08:00
Josh Durgin
4f98ba25d0
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>
2016-02-29 22:48:53 -08:00
Kefu Chai
cbe8dfbdbc
Merge pull request #7855 from tchaikov/wip-fix-ftbfs
...
test/TestPGLog: fix the FTBFS
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-03-01 14:39:29 +08:00
Kefu Chai
203987331e
test/TestPGLog: fix the FTBFS
...
the new pure virtual method was introduced by e7edf20
.
Fixes : #14930
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-03-01 13:20:29 +08:00
Josh Durgin
abd708d858
Merge pull request #7781 from ceph/wip-fix-rbd-cli-tests
...
rbd/run_cli_tests.sh: Reflect test failures
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-02-29 17:30:09 -08:00
James Liu
6cd5e2049e
fixed a bug for write bench with rados
...
Signed-off-by: James Liu <james.liu@ssi.samsung.com>
2016-02-29 16:25:42 -08:00
Samuel Just
440e9b5d56
Merge pull request #7769 from somnathr/wip-make-shared
...
Use make_shared while creating shared_ptr
Reviewed-by: Samuel Just <sjust@redhat.com>
2016-02-29 15:04:28 -08:00
Samuel Just
306c7bf40e
Merge pull request #7765 from athanatos/wip-lost-unfound-repop
...
Repop and lost-unfound overhaul
Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-29 10:42:01 -08:00
Haomai Wang
0c0e8a0fb6
AsyncConnection: log cleanup, remove redundant state display
...
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-03-01 01:52:05 +08:00
Haomai Wang
324145b702
Event: complete all pending events
...
Fix #14925
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-03-01 01:42:50 +08:00
Haomai Wang
bd592c0f88
AsyncConnection: dispatch write handler when accept done
...
Fix #12912
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-03-01 00:28:27 +08:00
Samuel Just
5f82cbe054
Merge pull request #7824 from dillaman/wip-aio-watch-notify
...
librados: fix test failure with new aio watch/unwatch API
Reviewed-by: Samuel Just <sjust@redhat.com>
2016-02-29 07:42:08 -08:00
Jason Dillaman
4b0ff1c792
Merge pull request #7832 from trociny/wip-journal-register-async
...
journal: async methods to (un)register and update client
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-02-29 08:53:17 -05:00
Kefu Chai
7bc42aaac5
Merge pull request #7829 from xiexingguo/xxg-wip-doc
...
doc: fix typo, indention etc.
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-29 21:13:10 +08:00
xiexingguo
bcc2866e0f
doc: fix typo, indention etc.
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-03-01 02:26:18 +08:00