Commit Graph

50439 Commits

Author SHA1 Message Date
Boris Ranto
5cd4ce517c selinux: Allow to manage locks
We currently create the ceph lock by an unconfined process (ceph-disk).
Unconfined processes inherit the context from the parrent directory.
This allows ceph daemons to access the files with context inherrited
from the parent directory (/var/lock | /run/lock).

Signed-off-by: Boris Ranto <branto@redhat.com>
2016-03-08 10:59:38 +01:00
Boris Ranto
519b03f4b0 selinux: allow dac_override capability
Fixes: #14870
Signed-off-by: Boris Ranto <branto@redhat.com>
2016-03-08 10:57:59 +01:00
Gregory Farnum
22417925fe 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>
2016-03-02 19:15:18 -08:00
Casey Bodley
045ad3d2a5 Merge pull request #7849 from ceph/wip-cmake
Wip cmake
2016-03-02 14:08:53 -05:00
Ali Maredia
d8cfef9d30 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>
2016-03-02 13:37:40 -05:00
Sage Weil
3e41cfde77 client/Inode: fix has_dir_layout
Compare to default file_layout_t() -- not zeroed memory.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-02 12:29:12 -05:00
Orit Wasserman
e09863b494 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>
2016-03-02 18:08:48 +01:00
Sage Weil
2786f0bf11 Merge remote-tracking branch 'gh/jewel' 2016-03-02 09:22:28 -05:00
Sage Weil
67696f0bec 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>
2016-03-02 08:31:08 -05:00
Sage Weil
c4f68ade15 Merge pull request #7690 from xiexingguo/xxg-wip-14804
common/TrackedOp: fix inaccurate counting for slow requests

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-03-02 08:30:26 -05:00
Sage Weil
b7a3217b45 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>
2016-03-02 08:29:54 -05:00
Sage Weil
c25a8a22a7 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>
2016-03-02 08:29:09 -05:00
Haomai Wang
8889d0c7da 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>
2016-03-02 21:28:40 +08:00
Sage Weil
1137c4ea8c Merge pull request #7711 from xiexingguo/xxg-wip-14817
osd: filestore: fix result code overwritten for clone

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-02 08:28:03 -05:00
Sage Weil
9576b0c22b Merge pull request #7790 from tchaikov/wip-log-segv
log: segv in a portable way

Reviewed-by: Nathan Cutler <ncutler@suse.com>
2016-03-02 08:27:36 -05:00
Sage Weil
e6fed056e8 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>
2016-03-02 08:26:30 -05:00
Kefu Chai
389ecbbc2a Merge pull request #7390 from badone/wip-13829
common: Allow OPT_INT settings with negative values

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
2016-03-02 11:22:24 +08:00
Kefu Chai
6e9f049bba 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>
2016-03-02 10:18:25 +08:00
Josh Durgin
a7470c80ec Merge pull request #7846 from dillaman/wip-14551
rbd: update default image features

Conflicts:
	PendingReleaseNotes (trivial)
2016-03-01 17:18:04 -08:00
Josh Durgin
0c965e76d8 Merge pull request #7841 from dillaman/wip-14550
rbd: deprecate image format 1

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-01 17:18:18 -08:00
Josh Durgin
2da7196b49 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>
2016-03-01 17:18:05 -08:00
Josh Durgin
928c2e4d08 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>
2016-03-01 17:17:50 -08:00
Josh Durgin
939984f798 Merge pull request #7776 from dillaman/wip-librbd-journal-tweaks
journal: improve commit position tracking

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-03-01 17:17:31 -08:00
Ali Maredia
61026c872b 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>
2016-03-01 18:11:39 -05:00
Yehuda Sadeh
c6f317b4fa AUTHORS: update email
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-03-01 13:07:46 -08:00
Radoslaw Zarzynski
55eeee93c5 rgw: calculate payload hash in RGWPutObj_ObjStore only when necessary.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-03-01 21:55:44 +01:00
Samuel Just
c1e41afb84 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>
2016-03-01 12:51:15 -08:00
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