]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agodpkg: libcephfs1 -> libcephfs2 package rename 11647/head
Jeff Layton [Mon, 24 Oct 2016 14:03:01 +0000 (10:03 -0400)]
dpkg: libcephfs1 -> libcephfs2 package rename

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agorpm: libcephfs1 -> libcephfs2 package rename
Jeff Layton [Mon, 24 Oct 2016 14:03:01 +0000 (10:03 -0400)]
rpm: libcephfs1 -> libcephfs2 package rename

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agolibcephfs: move to SOVERSION 2.0.0
Jeff Layton [Mon, 24 Oct 2016 14:03:01 +0000 (10:03 -0400)]
libcephfs: move to SOVERSION 2.0.0

The new libcephfs API is incompatible with the old. Move to SOVERSION
2.0.0 so that any programs built against the old headers will fail at
load time.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: better debugging for size changes
Jeff Layton [Mon, 24 Oct 2016 14:03:01 +0000 (10:03 -0400)]
client: better debugging for size changes

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: add an optional Inode ** parm to ceph_readdirplus_r
Jeff Layton [Mon, 24 Oct 2016 14:03:01 +0000 (10:03 -0400)]
client: add an optional Inode ** parm to ceph_readdirplus_r

Ganesha needs an inode reference in addition to the attributes when it
calls readdirplus. Other callers however don't need an inode reference.

We could just take one universally and pass it to the callback, but most
callers don't need that reference and would need to put it in the
callback. That's cumbersome and mutex-thrashy.

So, we need to fix the readdir engine to only conditionally take this
extra reference, when the callback will actually use it. Add a bool to
readdir_r_cb that defaults to false and indicates that the caller wants
an inode reference for each dentry returned. When that bool is true
we'll pass a pointer to the inode to the callback after taking a
reference. Otherwise, NULL is passed to the callback.

Next, add a return double pointer arg to ceph_readdirplus_r that
indicates whether the caller wants an inode reference and where to put
the pointer to the inode. Almost all callers will set that to NULL, but
ganesha can set it to a non-NULL value to get the inode reference that
it wants on each call.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: pass want and flags to readdir_r_cb
Jeff Layton [Mon, 24 Oct 2016 14:03:01 +0000 (10:03 -0400)]
client: pass want and flags to readdir_r_cb

...so we can ensure that we have the necessary caps when filling out
the ceph_statx for each dentry's inode. In order to only do this when
completely necessary, we have want default to 0 and the flags default
to AT_NO_ATTR_SYNC. The only codepath where we pass in a non-default
set of args there is ceph_readdirplus_r as it's the only codepath that
cares about fields in the ceph_statx that aren't immutable.

For now, since we have no support for requesting caps during a readdir
call, we simply issue getattrs prior to calling fill_statx. If we
already have the necessary caps, or are doing a lazy statx then this
becomes a no-op.

Note too that I _think_ the MDS will recall caps on the entries when
satisfying a readdir, so we avoid calling getattr when we're populating
the ceph_statx out of a just-acquired readdir response.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: change args to ceph_readdirplus_r
Jeff Layton [Mon, 24 Oct 2016 14:03:00 +0000 (10:03 -0400)]
client: change args to ceph_readdirplus_r

Make ceph_readdirplus_r take a ceph_statx, a want and a flags parm. With
this, we can allow applications to express an interest in subset of the
attributes, and can allow for a "lazy" readdirplus.

Drop the stmask. It ends up returning the caps that the client holds on
the inode. That's not well defined, and we can now express that in a
better way via the stx_mask, which applications can use to tell which
fields in the ceph_statx are actually valid.

For now, the want mask is ignored. I don't see a way to ask for a set
of caps in a ceph readdir request on the wire. Maybe we could add that?

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: plumb a "lazy" arg into _readdir_cache_cb and readdir_r_cb
Jeff Layton [Mon, 24 Oct 2016 14:03:00 +0000 (10:03 -0400)]
client: plumb a "lazy" arg into _readdir_cache_cb and readdir_r_cb

...that defaults to true since that's what most of the callers want.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: convert ceph_ll_readlink and ceph_ll_rmdir to UserPerm
Jeff Layton [Mon, 24 Oct 2016 14:03:00 +0000 (10:03 -0400)]
client: convert ceph_ll_readlink and ceph_ll_rmdir to UserPerm

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: change ceph_ll_symlinkx to take a UserPerm and ceph_statx
Jeff Layton [Mon, 24 Oct 2016 14:03:00 +0000 (10:03 -0400)]
client: change ceph_ll_symlinkx to take a UserPerm and ceph_statx

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: convert ceph_ll_rename and ceph_ll_unlink to UserPerm
Jeff Layton [Mon, 24 Oct 2016 14:03:00 +0000 (10:03 -0400)]
client: convert ceph_ll_rename and ceph_ll_unlink to UserPerm

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: convert ceph_ll_opendir to UserPerm
Jeff Layton [Mon, 24 Oct 2016 14:03:00 +0000 (10:03 -0400)]
client: convert ceph_ll_opendir to UserPerm

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: convert ceph_ll_link to UserPerm and remove struct stat parameter
Jeff Layton [Mon, 24 Oct 2016 14:03:00 +0000 (10:03 -0400)]
client: convert ceph_ll_link to UserPerm and remove struct stat parameter

The main user of this API (ganesha) doesn't do anything with the
returned attributes, so there's no real point in returning them
there.

Also, we're not guaranteed to have any caps on the target inode
after the link operation, so in the case of FUSE (which does
require the post-op attributes) we should really do a getattr
to get the latest attributes.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: change ceph_ll_mkdir to ceph_statx and UserPerm args
Jeff Layton [Mon, 24 Oct 2016 14:03:00 +0000 (10:03 -0400)]
client: change ceph_ll_mkdir to ceph_statx and UserPerm args

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: convert args to ceph_ll_mknod to use ceph_statx and UserPerm
Jeff Layton [Mon, 24 Oct 2016 14:03:00 +0000 (10:03 -0400)]
client: convert args to ceph_ll_mknod to use ceph_statx and UserPerm

The underlying plumbing needs to remain the same for FUSE though.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: add ll_createx
Jeff Layton [Mon, 24 Oct 2016 14:02:59 +0000 (10:02 -0400)]
client: add ll_createx

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: abstract out the guts of ll_create into _ll_create
Jeff Layton [Mon, 24 Oct 2016 14:02:59 +0000 (10:02 -0400)]
client: abstract out the guts of ll_create into _ll_create

Make a common function that can be called and move the handling of the
out inode reference and attribute handling into the caller.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: convert ceph_ll_setxattr, listxattr, removexattr to take a UserPerms pointer
Jeff Layton [Mon, 24 Oct 2016 14:02:59 +0000 (10:02 -0400)]
client: convert ceph_ll_setxattr, listxattr, removexattr to take a UserPerms pointer

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: convert ceph_ll_getxattr to take a UserPerm pointer
Jeff Layton [Mon, 24 Oct 2016 14:02:59 +0000 (10:02 -0400)]
client: convert ceph_ll_getxattr to take a UserPerm pointer

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: convert ceph_ll_open to take a UserPerm pointer
Jeff Layton [Mon, 24 Oct 2016 14:02:59 +0000 (10:02 -0400)]
client: convert ceph_ll_open to take a UserPerm pointer

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: remove ceph_ll_truncate
Jeff Layton [Mon, 24 Oct 2016 14:02:59 +0000 (10:02 -0400)]
client: remove ceph_ll_truncate

It's just a wrapper around ceph_ll_setattr that is only called from the
ganesha SETATTR handler. There's no need for special casing truncate
handling.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoceph: fix arguments to ceph_ll_setattr and remove ceph_ll_setattrx
Jeff Layton [Mon, 24 Oct 2016 14:02:59 +0000 (10:02 -0400)]
ceph: fix arguments to ceph_ll_setattr and remove ceph_ll_setattrx

Again, for now we leave the underlying method called ll_setattrx, since
FUSE is wired to use struct stat.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: convert ceph_ll_walk to use ceph_statx
Jeff Layton [Mon, 24 Oct 2016 14:02:59 +0000 (10:02 -0400)]
client: convert ceph_ll_walk to use ceph_statx

In addition to acquiring the right caps for the requested attributes, we
can also do a path walk that terminates on an existing symlink without
following the link now.

Is that useful? No idea...

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: switch arguments on ceph_ll_lookup to use ceph_statx and UserPerm
Jeff Layton [Mon, 24 Oct 2016 14:02:59 +0000 (10:02 -0400)]
client: switch arguments on ceph_ll_lookup to use ceph_statx and UserPerm

For now, we leave the old ->ll_lookup method in place, as FUSE needs
it. We could do a ceph_statx -> stat conversion, but that's extra
copies and I don't think we want the perf hit in FUSE.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: rename ceph_ll_getattrx to ceph_ll_getattr, and drop the original
Jeff Layton [Mon, 24 Oct 2016 14:02:59 +0000 (10:02 -0400)]
client: rename ceph_ll_getattrx to ceph_ll_getattr, and drop the original

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: add a C accessor for the ceph_mount_info default_perms
Jeff Layton [Mon, 24 Oct 2016 14:02:58 +0000 (10:02 -0400)]
client: add a C accessor for the ceph_mount_info default_perms

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: add C bindings for UserPerm constructor and destructor
Jeff Layton [Mon, 24 Oct 2016 14:02:58 +0000 (10:02 -0400)]
client: add C bindings for UserPerm constructor and destructor

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: allow UserPerm constructor to populate gid list
Jeff Layton [Mon, 24 Oct 2016 14:02:58 +0000 (10:02 -0400)]
client: allow UserPerm constructor to populate gid list

Add args for the gids_count and gids list, and give them default
values so that callers can populate it correctly. We'll need this
for ganesha so it can populate the UserPerm from a RPC AUTH object.

Note that the gidlist pointer must be valid for the lifetime of
the created object!

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: remove ceph_stat, ceph_lstat, ceph_fstat, ceph_setattr, and ceph_fsetattr
Jeff Layton [Mon, 24 Oct 2016 14:02:58 +0000 (10:02 -0400)]
client: remove ceph_stat, ceph_lstat, ceph_fstat, ceph_setattr, and ceph_fsetattr

...there are no more callers.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: add a ceph_fsetattrx
Jeff Layton [Tue, 25 Oct 2016 13:14:20 +0000 (09:14 -0400)]
client: add a ceph_fsetattrx

...and convert ceph_fsetattr callers to use it instead.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: fix new pg_files command to use ceph_statx
Jeff Layton [Tue, 25 Oct 2016 12:53:48 +0000 (08:53 -0400)]
client: fix new pg_files command to use ceph_statx

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoMerge pull request #11517 from ukernel/wip-17562
John Spray [Tue, 25 Oct 2016 11:30:42 +0000 (12:30 +0100)]
Merge pull request #11517 from ukernel/wip-17562

Fix #17562 (backtrace check fails when scrubbing directory created by fsstress)

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #11593 from ukernel/wip-17275
John Spray [Tue, 25 Oct 2016 11:16:05 +0000 (12:16 +0100)]
Merge pull request #11593 from ukernel/wip-17275

osdc/ObjectCacher: wake up dirty stat waiters after removing buffers

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #11604 from stiopaa1/mds_inotable_addOverride
John Spray [Tue, 25 Oct 2016 11:15:30 +0000 (12:15 +0100)]
Merge pull request #11604 from stiopaa1/mds_inotable_addOverride

mds/InoTable.h: add override to virtual functs

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #11613 from stiopaa1/mds_cdir_removeUnneededUseofCount
John Spray [Tue, 25 Oct 2016 11:14:42 +0000 (12:14 +0100)]
Merge pull request #11613 from stiopaa1/mds_cdir_removeUnneededUseofCount

mds/CDir.cc: remove unneeded use of count

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #11611 from batrick/i17670
John Spray [Tue, 25 Oct 2016 11:14:23 +0000 (12:14 +0100)]
Merge pull request #11611 from batrick/i17670

mds: check if down mds is known

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #11191 from renhwztetecs/renhw-wip-add-libcephfs
John Spray [Tue, 25 Oct 2016 10:59:11 +0000 (11:59 +0100)]
Merge pull request #11191 from renhwztetecs/renhw-wip-add-libcephfs

libcephfs: add ceph_fsetattr&&ceph_lchmod&&ceph_lutime

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #11560 from ukernel/wip-mds-context-wrapping
John Spray [Tue, 25 Oct 2016 10:58:42 +0000 (11:58 +0100)]
Merge pull request #11560 from ukernel/wip-mds-context-wrapping

MDS: reduce usage of context wrapper

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #11345 from jcsp/wip-mgr-assert
Kefu Chai [Tue, 25 Oct 2016 08:02:33 +0000 (16:02 +0800)]
Merge pull request #11345 from jcsp/wip-mgr-assert

messages: fix out of range assertion

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #11632 from VictorDenisov/group_pool_fix
Jason Dillaman [Tue, 25 Oct 2016 03:55:17 +0000 (23:55 -0400)]
Merge pull request #11632 from VictorDenisov/group_pool_fix

rbd: fix parsing of group and image specific pools

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agorbd: fix parsing of group and image specific pools 11632/head
Victor Denisov [Mon, 24 Oct 2016 23:50:19 +0000 (16:50 -0700)]
rbd: fix parsing of group and image specific pools

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
9 years agoMerge pull request #11036 from tomy-ac/wip-tc-rados_append
Yuri Weinstein [Mon, 24 Oct 2016 21:45:42 +0000 (14:45 -0700)]
Merge pull request #11036 from tomy-ac/wip-tc-rados_append

Added append functionality to rados tool.

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #11221 from stiopaa1/osd_osdmap_removeUseOfCount
Yuri Weinstein [Mon, 24 Oct 2016 21:45:00 +0000 (14:45 -0700)]
Merge pull request #11221 from stiopaa1/osd_osdmap_removeUseOfCount

osd/OSDMap.cc: remove unneeded use of count

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #11388 from ukernel/wip-17177
Yuri Weinstein [Mon, 24 Oct 2016 21:44:04 +0000 (14:44 -0700)]
Merge pull request #11388 from ukernel/wip-17177

os/ObjectStore: properly clear object map when replaying OP_REMOVE

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #11143 from kylinstorage/wip-fix-write-hang
Kefu Chai [Mon, 24 Oct 2016 16:16:17 +0000 (00:16 +0800)]
Merge pull request #11143 from kylinstorage/wip-fix-write-hang

osd: fix rados write op hang

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #11532 from javeme/run_in_thread-return
Kefu Chai [Mon, 24 Oct 2016 16:15:30 +0000 (00:15 +0800)]
Merge pull request #11532 from javeme/run_in_thread-return

pybind: avoid "exception 'int' object is not iterable"

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #11610 from liewegas/wip-mon-forward-features
Sage Weil [Mon, 24 Oct 2016 16:10:54 +0000 (11:10 -0500)]
Merge pull request #11610 from liewegas/wip-mon-forward-features

messages/MForward: reencode forwarded message if target has differing features

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agomsg/Message: fix set_middle vs throttler 11610/head
Sage Weil [Sun, 23 Oct 2016 23:10:00 +0000 (18:10 -0500)]
msg/Message: fix set_middle vs throttler

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg: adjust byte_throttler from Message::encode
Sage Weil [Sun, 23 Oct 2016 23:40:57 +0000 (18:40 -0500)]
msg: adjust byte_throttler from Message::encode

Normally we never call encode on a message that has a byte_throttler set
because we only use it for messages we received.  However, for forwarded
messages that we clear_payload() before resending, we *do* reencode, and in
that case we need to retake the appropriate number of bytes from the
throttler--just like we release them in clear_payload().

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomessages/MForward: reencode forwarded message if target has differing features
Sage Weil [Sat, 22 Oct 2016 18:01:34 +0000 (14:01 -0400)]
messages/MForward: reencode forwarded message if target has differing features

This ensures we reencode the payload with the
appropriate set of features if the client, us, or the
target do not have identical features.  Otherwise we
may forward an encoding with more features than the
target can handle.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #11595 from liewegas/wip-move-ranges
Sage Weil [Mon, 24 Oct 2016 16:08:06 +0000 (11:08 -0500)]
Merge pull request #11595 from liewegas/wip-move-ranges

os: fix offsets for move_ranges operation

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoMerge pull request #11160 from VictorDenisov/consistency_groups_namespaces
Jason Dillaman [Mon, 24 Oct 2016 15:55:48 +0000 (11:55 -0400)]
Merge pull request #11160 from VictorDenisov/consistency_groups_namespaces

librbd: add support for snapshot namespaces

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agomds: fix compile error from merges
John Spray [Mon, 24 Oct 2016 12:36:32 +0000 (13:36 +0100)]
mds: fix compile error from merges

Two patches both added these definitions
in slightly different places, so git let them
merge without a conflict.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoMerge remote-tracking branch 'ukernel/wip-mdstypes-split'
John Spray [Mon, 24 Oct 2016 11:02:48 +0000 (12:02 +0100)]
Merge remote-tracking branch 'ukernel/wip-mdstypes-split'

9 years agoMerge pull request #11576 from ukernel/wip-17636-debug
John Spray [Mon, 24 Oct 2016 11:00:48 +0000 (12:00 +0100)]
Merge pull request #11576 from ukernel/wip-17636-debug

mds: add debug assertion for issue #17636

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #11578 from jcsp/wip-backtrace-repair
John Spray [Mon, 24 Oct 2016 10:53:47 +0000 (11:53 +0100)]
Merge pull request #11578 from jcsp/wip-backtrace-repair

mds: repair backtraces during scrub

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #11596 from liewegas/wip-osdmap-features
Sage Weil [Mon, 24 Oct 2016 10:28:44 +0000 (05:28 -0500)]
Merge pull request #11596 from liewegas/wip-osdmap-features

mon/OSDMonitor: encode OSDMap::Incremental with same features as OSDMap

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agounittest_bluestore_types: fix csum const name
Sage Weil [Fri, 21 Oct 2016 16:46:11 +0000 (12:46 -0400)]
unittest_bluestore_types: fix csum const name

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge branch 'wip-bluestore-per-pool-compress2' of https://github.com/ifed01/ceph
Sage Weil [Mon, 24 Oct 2016 09:57:34 +0000 (04:57 -0500)]
Merge branch 'wip-bluestore-per-pool-compress2' of https://github.com/ifed01/ceph

9 years agoMerge pull request #8751 from flyd1005/wip-fix-typo
Kefu Chai [Mon, 24 Oct 2016 03:15:12 +0000 (11:15 +0800)]
Merge pull request #8751 from flyd1005/wip-fix-typo

doc: fix typos

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
9 years agoMerge pull request #10955 from objoo/YD-mailmap-updates-Sept
Loic Dachary [Sun, 23 Oct 2016 21:32:34 +0000 (23:32 +0200)]
Merge pull request #10955 from objoo/YD-mailmap-updates-Sept

mailmap updates sept

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agomds/CDir.cc: remove unneeded use of count 11613/head
Michal Jarzabek [Sun, 23 Oct 2016 10:24:14 +0000 (11:24 +0100)]
mds/CDir.cc: remove unneeded use of count

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
9 years agomds: check if down mds is known 11611/head
Patrick Donnelly [Sat, 22 Oct 2016 22:47:03 +0000 (18:47 -0400)]
mds: check if down mds is known

This avoids an assertion failure where an MDS receives an mdsmap that
causes it to enter up:replay and also see another MDS go down.

Fixes: http://tracker.ceph.com/issues/17670
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
9 years agoMerge pull request #11607 from xiexingguo/xxg-wip-bluestore-1022
Sage Weil [Sat, 22 Oct 2016 14:54:54 +0000 (09:54 -0500)]
Merge pull request #11607 from xiexingguo/xxg-wip-bluestore-1022

os/bluestore: simplify can_split_at()

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: literal changes 11607/head
xie xingguo [Sat, 22 Oct 2016 06:14:41 +0000 (14:14 +0800)]
os/bluestore: literal changes
1. drop redundant semicolon
2. fix wrong output message

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agotest/libcephfs: add ceph_fsetattr() test 11191/head
huanwen ren [Tue, 18 Oct 2016 08:24:16 +0000 (16:24 +0800)]
test/libcephfs: add ceph_fsetattr() test

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
9 years agocls_rbd: Allow snapshots with the same name in different namespaces 11160/head
Victor Denisov [Thu, 20 Oct 2016 00:31:31 +0000 (17:31 -0700)]
cls_rbd: Allow snapshots with the same name in different namespaces

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
9 years agorbd: Use user snapshot namespace in rbd_mirror for now
Victor Denisov [Wed, 21 Sep 2016 04:36:26 +0000 (21:36 -0700)]
rbd: Use user snapshot namespace in rbd_mirror for now

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
9 years agolibrbd: By default create snapshots in UserNamespace
Victor Denisov [Wed, 21 Sep 2016 04:35:30 +0000 (21:35 -0700)]
librbd: By default create snapshots in UserNamespace

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
9 years agocls_rbd: Add snapshot namespaces data structures
Victor Denisov [Wed, 21 Sep 2016 04:30:56 +0000 (21:30 -0700)]
cls_rbd: Add snapshot namespaces data structures

Signed-off-by: Victor Denisov <denisovenator@gmail.com>
9 years agoos/bluestore: simplify can_split_at()
xie xingguo [Sat, 22 Oct 2016 02:33:20 +0000 (10:33 +0800)]
os/bluestore: simplify can_split_at()

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #11026 from jcsp/wip-pg-files
Gregory Farnum [Fri, 21 Oct 2016 21:48:31 +0000 (14:48 -0700)]
Merge pull request #11026 from jcsp/wip-pg-files

tools/cephfs: add pg_files command

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #11456 from tchaikov/wip-17558
Gregory Farnum [Fri, 21 Oct 2016 21:40:46 +0000 (14:40 -0700)]
Merge pull request #11456 from tchaikov/wip-17558

mon: send updated monmap to its subscribers

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agomds/InoTable.h: add override to virtual functs 11604/head
Michal Jarzabek [Fri, 21 Oct 2016 21:32:15 +0000 (22:32 +0100)]
mds/InoTable.h: add override to virtual functs

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
9 years agoMerge pull request #11599 from tanghaodong25/wip-2q-cache
Sage Weil [Fri, 21 Oct 2016 20:14:45 +0000 (15:14 -0500)]
Merge pull request #11599 from tanghaodong25/wip-2q-cache

os/bluestore: make 2q cache kin/kout size tunable

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #11603 from liewegas/wip-bluestore-obj-remove
Sage Weil [Fri, 21 Oct 2016 19:45:08 +0000 (14:45 -0500)]
Merge pull request #11603 from liewegas/wip-bluestore-obj-remove

os/bluestore: clear extent map on object removal

9 years agoMerge pull request #11597 from ifed01/wip-bluestore-reshard-fix
Sage Weil [Fri, 21 Oct 2016 19:43:16 +0000 (14:43 -0500)]
Merge pull request #11597 from ifed01/wip-bluestore-reshard-fix

os/bluestore: fix lack of resharding

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: clear extent map on object removal 11603/head
Sage Weil [Fri, 21 Oct 2016 19:42:19 +0000 (15:42 -0400)]
os/bluestore: clear extent map on object removal

Clear ExtentMap (esp shards, etc.) when an object is removed.  Otherwise
if we recreate it we will have stale state (like the shards vector or
inline_bl) that are bogus.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #11230 from yehudasa/wip-rgw-resharding
Orit Wasserman [Fri, 21 Oct 2016 17:49:41 +0000 (19:49 +0200)]
Merge pull request #11230 from yehudasa/wip-rgw-resharding

rgw: bucket resharding
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoos/bluestore: make 2q cache kin/kout size tunable 11599/head
haodong [Fri, 21 Oct 2016 06:05:56 +0000 (14:05 +0800)]
os/bluestore: make 2q cache kin/kout size tunable

default kin/hot queue size is 50% of max buffer size.
50% is a better choice for the number of page slot in kout.
we make it tunable.

Signed-off-by: Haodong Tang <haodong.tang@intel.com>
9 years agoos/bluestore: fix black of resharding 11597/head
Igor Fedotov [Fri, 21 Oct 2016 16:30:36 +0000 (16:30 +0000)]
os/bluestore: fix black of resharding

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agomon/OSDMonitor: encode OSDMap::Incremental with same features as OSDMap 11596/head
Sage Weil [Fri, 21 Oct 2016 16:25:08 +0000 (12:25 -0400)]
mon/OSDMonitor: encode OSDMap::Incremental with same features as OSDMap

The Incremental encode stashes encode_features, which is
what we use later to reencode the updated OSDMap.  Use
the same features so that the encoding will match!

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos: fix offsets in move_ranges 11595/head
Sage Weil [Fri, 21 Oct 2016 16:07:05 +0000 (12:07 -0400)]
os: fix offsets in move_ranges

This simplifies the interface, and avoids problems in
bluestore with alignment.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #11566 from oritwas/wip-rgw-put-acl-underscore
Casey Bodley [Fri, 21 Oct 2016 16:00:53 +0000 (12:00 -0400)]
Merge pull request #11566 from oritwas/wip-rgw-put-acl-underscore

rgw: fix put_acls for objects starting and ending with underscore

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #11591 from liewegas/wip-bluestore-test-dev
Sage Weil [Fri, 21 Oct 2016 15:57:26 +0000 (10:57 -0500)]
Merge pull request #11591 from liewegas/wip-bluestore-test-dev

ceph_test_objectstore: smaller device

9 years agoMerge pull request #11444 from cbodley/wip-rgw-get-system-obj
Orit Wasserman [Fri, 21 Oct 2016 15:25:17 +0000 (17:25 +0200)]
Merge pull request #11444 from cbodley/wip-rgw-get-system-obj

rgw: get_system_obj does not use result of get_system_obj_state
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #11588 from xiexingguo/wip-fix-fastinfo-id
Sage Weil [Fri, 21 Oct 2016 13:56:08 +0000 (08:56 -0500)]
Merge pull request #11588 from xiexingguo/wip-fix-fastinfo-id

osd: fix duplicated id of incompat feature "fastinfo"

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoosdc/ObjectCacher: wake up dirty stat waiters after removing buffers 11593/head
Yan, Zheng [Fri, 21 Oct 2016 13:24:15 +0000 (21:24 +0800)]
osdc/ObjectCacher: wake up dirty stat waiters after removing buffers

Fixes: http://tracker.ceph.com/issues/17275
Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agoceph_test_objectstore: smaller device 11591/head
Sage Weil [Fri, 21 Oct 2016 13:17:30 +0000 (09:17 -0400)]
ceph_test_objectstore: smaller device

This is faster.  The bitmap has to be scanned during
startup and fsck and that's slow.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomessages: fix out of range assertion 11345/head
John Spray [Thu, 6 Oct 2016 10:20:47 +0000 (12:20 +0200)]
messages: fix out of range assertion

When clang uses an 8 bit type for the enum, it
complains (out of range) if comparing <256,
and complains (tautological) if comparing <=256.

Avoid this by explicitly making the enum an
uint8_t, and just asserting that that it has
that size at the point that we assume so for
the encoding (in case someone modified the
type definition without checking how it was used).

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agomds: repair backtraces during scrub 11578/head
John Spray [Thu, 20 Oct 2016 10:49:42 +0000 (11:49 +0100)]
mds: repair backtraces during scrub

Fixes: http://tracker.ceph.com/issues/17639
Signed-off-by: John Spray <john.spray@redhat.com>
9 years agomds: fix CDir::log_mark_dirty() 11560/head
Yan, Zheng [Fri, 21 Oct 2016 03:38:44 +0000 (11:38 +0800)]
mds: fix CDir::log_mark_dirty()

CDir::log_mark_dirty() moves dirfrag to current log segment's dirty
dirfrag list, but it does not submit any log event. Old log segments
(that include events which dirty the dirfrag) may get expired before
the dirfrag gets committed. If MDS crashes, the changes in expired
log segments get lost.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agomds: avoid wrapping contexts during logging
Yan, Zheng [Wed, 19 Oct 2016 15:41:43 +0000 (23:41 +0800)]
mds: avoid wrapping contexts during logging

For each log event, mds allocate two extra contexts, one for
marking op tracker event, one for updating log's safe_pos after
executing the finish context. This is sub-optimization.

This patch defines MDSLogContextBase for log event context.
MDSLogContextBase::complete() function can do the extra jobs.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agomds: avoid wrapping C_IO_Wrapper with C_OnFinisher
Yan, Zheng [Wed, 19 Oct 2016 12:42:25 +0000 (20:42 +0800)]
mds: avoid wrapping C_IO_Wrapper with C_OnFinisher

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agoMerge pull request #11575 from ceph/wip-17260
Kefu Chai [Fri, 21 Oct 2016 03:54:53 +0000 (11:54 +0800)]
Merge pull request #11575 from ceph/wip-17260

cmake: link tests against static librados

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Ali Maredia <amaredia@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #10490 from Yan-waller/yj-wip-msgtest-0729
xiexingguo [Fri, 21 Oct 2016 03:01:32 +0000 (11:01 +0800)]
Merge pull request #10490 from Yan-waller/yj-wip-msgtest-0729

msg/test: fix the guided compile-command to ceph_test_msgr

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoosd: fix duplicated id of incompat feature "fastinfo" 11588/head
xie xingguo [Fri, 21 Oct 2016 02:38:23 +0000 (10:38 +0800)]
osd: fix duplicated id of incompat feature "fastinfo"

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #11436 from chhabaramesh/master
Sage Weil [Fri, 21 Oct 2016 01:26:16 +0000 (20:26 -0500)]
Merge pull request #11436 from chhabaramesh/master

kv/MemDB: making memdb code adapt to generic maps

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #11455 from stiopaa1/mds_mutation_simplifyConstructors
John Spray [Thu, 20 Oct 2016 21:55:17 +0000 (23:55 +0200)]
Merge pull request #11455 from stiopaa1/mds_mutation_simplifyConstructors

mds/Mutation.h: simplify constructors

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #11509 from stiopaa1/mds_fsmapuser_makeAssignCopyDefault
John Spray [Thu, 20 Oct 2016 21:43:58 +0000 (23:43 +0200)]
Merge pull request #11509 from stiopaa1/mds_fsmapuser_makeAssignCopyDefault

mds/FSMapUser.h: remove copy ctr and assign op

Reviewed-by: John Spray <john.spray@redhat.com>