Commit Graph

50322 Commits

Author SHA1 Message Date
Yan, Zheng
72ff3421b8 mds: deny access to file with pool_ns layout if feature is missing
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-03-01 11:18:18 -05:00
Yan, Zheng
00a1394247 mds: fix inodestat size calculation
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-03-01 11:18:18 -05:00
Yan, Zheng
a524df2fc8 mds: properly purge backtrace object
backtrace objects are always in default namespace

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-03-01 11:18:18 -05:00
Yan, Zheng
8e728fca84 messages/MClientCaps: fix decoding
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-03-01 11:18:18 -05:00
Sage Weil
1de6e940d0 mds/Server: fix whitespace
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:18:17 -05:00
Sage Weil
e7ead6a535 mds/Locker: fix Session leak on access denial
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 11:18:17 -05:00
Sage Weil
fafb14212d fix init of new fields in MCLientCaps 2016-03-01 11:18:17 -05:00
Sage Weil
7f47cd76d2 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>
2016-03-01 11:18:17 -05:00
Sage Weil
00850a67ca 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>
2016-03-01 11:18:17 -05:00
Sage Weil
9c7669b95a 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>
2016-03-01 11:18:17 -05:00
Yan, Zheng
a2d42d5572 mds: don't break compatibility of MClientCaps/MClientReply
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-03-01 11:18:17 -05:00
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