]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agoclient/Client: added client_mount_uid and gid as parameters to getattr call
Nishtha Rai [Mon, 17 Aug 2015 14:50:46 +0000 (20:20 +0530)]
client/Client: added client_mount_uid and gid as parameters to getattr call

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
10 years agomds/MDSAuthCap: fix creation ownership check
Sage Weil [Mon, 17 Aug 2015 14:08:55 +0000 (10:08 -0400)]
mds/MDSAuthCap: fix creation ownership check

Check uid too.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/MDSAuthCaps: whitespace
Sage Weil [Mon, 17 Aug 2015 14:07:15 +0000 (10:07 -0400)]
mds/MDSAuthCaps: whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/MDSAuthCaps: only verify create git when not AUTH_UID_ANY
Sage Weil [Mon, 17 Aug 2015 14:07:07 +0000 (10:07 -0400)]
mds/MDSAuthCaps: only verify create git when not AUTH_UID_ANY

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds: send cap flush ack even when access check failed.
Yan, Zheng [Fri, 14 Aug 2015 07:33:27 +0000 (15:33 +0800)]
mds: send cap flush ack even when access check failed.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoclient: force setattr to MDS when caller's {uid,gid} are not the specified ones
Yan, Zheng [Fri, 14 Aug 2015 07:29:02 +0000 (15:29 +0800)]
client: force setattr to MDS when caller's {uid,gid} are not the specified ones

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoclient: allow specifying default caller_{uid,gid} of MClientRequest
Yan, Zheng [Fri, 14 Aug 2015 07:21:17 +0000 (15:21 +0800)]
client: allow specifying default caller_{uid,gid} of MClientRequest

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoclient: add options to specify caller_{uid,gid} of MClientCaps
Yan, Zheng [Fri, 14 Aug 2015 07:04:22 +0000 (15:04 +0800)]
client: add options to specify caller_{uid,gid} of MClientCaps

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agomessages: add caller_{uid,gid} to cap msgs
Yan, Zheng [Fri, 14 Aug 2015 06:49:08 +0000 (14:49 +0800)]
messages: add caller_{uid,gid} to cap msgs

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agotest/libcephfs/access: expand example test a bit
Sage Weil [Wed, 12 Aug 2015 18:36:54 +0000 (14:36 -0400)]
test/libcephfs/access: expand example test a bit

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/Server: fix check_access
Sage Weil [Wed, 12 Aug 2015 17:58:05 +0000 (13:58 -0400)]
mds/Server: fix check_access

Pass through correct mask.  Clean up formatting.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoclient: properly set caller_{uid,gid} of readdir request
Yan, Zheng [Wed, 12 Aug 2015 07:36:06 +0000 (15:36 +0800)]
client: properly set caller_{uid,gid} of readdir request

save uid/gid of ll_opendir caller in dir_result_t, use the saved
uid/gid for readdir request.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoceph_test_libcephfs: skeleton for access tests
Sage Weil [Mon, 10 Aug 2015 17:50:36 +0000 (13:50 -0400)]
ceph_test_libcephfs: skeleton for access tests

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds: fix Server::check_access
Yan, Zheng [Mon, 10 Aug 2015 08:31:53 +0000 (16:31 +0800)]
mds: fix Server::check_access

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agodoc/cephfs: path-based restriction
Jashan Kamboj [Tue, 4 Aug 2015 17:59:19 +0000 (23:29 +0530)]
doc/cephfs: path-based restriction

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agoadd check_access in _do_cap_update
Jashan Kamboj [Mon, 3 Aug 2015 19:11:15 +0000 (00:41 +0530)]
add check_access in _do_cap_update

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agomove _check_access to SessionMap
Jashan Kamboj [Mon, 3 Aug 2015 18:48:38 +0000 (00:18 +0530)]
move _check_access to SessionMap

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agoadd _check_access for async cap updates
Jashan Kamboj [Fri, 31 Jul 2015 20:47:05 +0000 (02:17 +0530)]
add _check_access for async cap updates

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agoadd stray_prior_path for is_stray
Jashan Kamboj [Thu, 30 Jul 2015 15:43:23 +0000 (21:13 +0530)]
add stray_prior_path for is_stray

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agoadd stray_prior_path to store path before rename
Jashan Kamboj [Tue, 28 Jul 2015 19:07:34 +0000 (00:37 +0530)]
add stray_prior_path to store path before rename

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agomds/MDSAuthCaps: add test cases for is_capable
Nishtha Rai [Fri, 31 Jul 2015 17:31:04 +0000 (23:01 +0530)]
mds/MDSAuthCaps: add test cases for is_capable

10 years agomds/Server: add chown and chgrp check access to setattr
Nishtha Rai [Wed, 29 Jul 2015 14:20:25 +0000 (19:50 +0530)]
mds/Server: add chown and chgrp check access to setattr

10 years agomds/Server: add create access check for openc
Nishtha Rai [Tue, 28 Jul 2015 17:56:19 +0000 (23:26 +0530)]
mds/Server: add create access check for openc

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
10 years agoServer: add create access check for mknod and symlink
Nishtha Rai [Tue, 28 Jul 2015 17:08:15 +0000 (22:38 +0530)]
Server: add create access check for mknod and symlink

10 years agotest_auth_caps: add mkdir check with mode 557
Nishtha Rai [Tue, 28 Jul 2015 17:05:54 +0000 (22:35 +0530)]
test_auth_caps: add mkdir check with mode 557

10 years agotest_auth_caps: resolve bug with other bits test case
Nishtha Rai [Mon, 27 Jul 2015 13:34:30 +0000 (19:04 +0530)]
test_auth_caps: resolve bug with other bits test case

10 years agotest_auth_caps: remove grp mount
Nishtha Rai [Mon, 27 Jul 2015 12:58:40 +0000 (18:28 +0530)]
test_auth_caps: remove grp mount

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
10 years agoMDSAuthCaps: validate create access
Nishtha Rai [Thu, 23 Jul 2015 15:20:18 +0000 (20:50 +0530)]
MDSAuthCaps: validate create access

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
10 years agoadd stray_prior_path to store path before unlink
Jashan Kamboj [Tue, 28 Jul 2015 16:54:36 +0000 (22:24 +0530)]
add stray_prior_path to store path before unlink

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agoadd open check_access
Jashan Kamboj [Fri, 24 Jul 2015 16:12:43 +0000 (21:42 +0530)]
add open check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agoadd link check_access
Jashan Kamboj [Tue, 21 Jul 2015 19:36:50 +0000 (01:06 +0530)]
add link check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agoadd rename check_access
Jashan Kamboj [Tue, 21 Jul 2015 19:35:37 +0000 (01:05 +0530)]
add rename check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agoadd snaps(ls,mk,rm,rename) check_access
Jashan Kamboj [Tue, 21 Jul 2015 19:33:27 +0000 (01:03 +0530)]
add snaps(ls,mk,rm,rename) check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agoadd setlayout, setdirlayout, setxattr check_access
Jashan Kamboj [Tue, 21 Jul 2015 17:10:00 +0000 (22:40 +0530)]
add setlayout, setdirlayout, setxattr check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agoadd readdir check_access
Jashan Kamboj [Tue, 21 Jul 2015 17:08:20 +0000 (22:38 +0530)]
add readdir check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agomds/Server: clean up check_access a bit
Sage Weil [Tue, 21 Jul 2015 16:50:24 +0000 (12:50 -0400)]
mds/Server: clean up check_access a bit

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMDSAuthCaps: add logic for group bits check
Nishtha Rai [Tue, 21 Jul 2015 15:09:40 +0000 (20:39 +0530)]
MDSAuthCaps: add logic for group bits check

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
10 years agotest_auth_caps: add test for user bits
Nishtha Rai [Mon, 20 Jul 2015 16:04:04 +0000 (21:34 +0530)]
test_auth_caps: add test for user bits

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
10 years agomds/MDSAuthCaps: add permissions for user bits
Nishtha Rai [Mon, 20 Jul 2015 14:01:25 +0000 (19:31 +0530)]
mds/MDSAuthCaps: add permissions for user bits

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
10 years agoMakefile: include ceph-fuse in base target
Sage Weil [Mon, 20 Jul 2015 17:58:23 +0000 (13:58 -0400)]
Makefile: include ceph-fuse in base target

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoclient: behave if we can't getattr parents of mount point
Sage Weil [Tue, 1 Sep 2015 20:48:17 +0000 (16:48 -0400)]
client: behave if we can't getattr parents of mount point

If our cap locks us into a subdirectory (e.g., /foo), we will fail to
getattr on its parents (e.g., /).  This is expected.  Tolerate this case,
and warn that quotas may misbehave in that case (if they are set on one of
those parents).

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agotest_auth_caps: Move trap and cleanup to the top
Nishtha Rai [Mon, 20 Jul 2015 13:32:03 +0000 (19:02 +0530)]
test_auth_caps: Move trap and cleanup to the top

10 years agotest_auth_caps: Added test logic for world bits
Nishtha Rai [Thu, 16 Jul 2015 20:22:16 +0000 (01:52 +0530)]
test_auth_caps: Added test logic for world bits

10 years agoMDSAuthCaps: add world bits check logic
Nishtha Rai [Mon, 20 Jul 2015 13:35:01 +0000 (09:35 -0400)]
MDSAuthCaps: add world bits check logic

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
10 years agoclient: pass uid, gid to lookup
Sage Weil [Thu, 16 Jul 2015 20:00:55 +0000 (16:00 -0400)]
client: pass uid, gid to lookup

The MDS cares about who is performing lookup, too!

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoadd unlink, rmdir check_access test
Jashan Kamboj [Wed, 15 Jul 2015 13:56:40 +0000 (19:26 +0530)]
add unlink, rmdir check_access test

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agoadd unlink, rmdir check_access
Jashan Kamboj [Wed, 15 Jul 2015 13:43:19 +0000 (19:13 +0530)]
add unlink, rmdir check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agoadd symlink test
Jashan Kamboj [Tue, 14 Jul 2015 21:32:49 +0000 (03:02 +0530)]
add symlink test

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agoadd symlink check_access
Jashan Kamboj [Tue, 14 Jul 2015 21:30:38 +0000 (03:00 +0530)]
add symlink check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agoAdd mknod check_access
Jashan Kamboj [Tue, 14 Jul 2015 21:29:43 +0000 (02:59 +0530)]
Add mknod check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agoqa/workunits/fs/test_path_caps: tolerate existing directories
Sage Weil [Fri, 10 Jul 2015 18:42:59 +0000 (14:42 -0400)]
qa/workunits/fs/test_path_caps: tolerate existing directories

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agofunctional test of mds cap path restriction
Jashan Kamboj [Fri, 10 Jul 2015 18:30:28 +0000 (00:00 +0530)]
functional test of mds cap path restriction

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agomds/Server.cc: drop leading / from path in is_capable check
Jashan Kamboj [Fri, 10 Jul 2015 14:20:15 +0000 (19:50 +0530)]
mds/Server.cc: drop leading / from path in is_capable check

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agounittest_mds_authcap: test lists of allow grants
Sage Weil [Thu, 9 Jul 2015 16:13:55 +0000 (12:13 -0400)]
unittest_mds_authcap: test lists of allow grants

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds: mkdir check_access
Jashan Kamboj [Thu, 9 Jul 2015 13:41:12 +0000 (19:11 +0530)]
mds: mkdir check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agomds/MDSAuthCaps: fix parse error message
Sage Weil [Thu, 9 Jul 2015 15:18:42 +0000 (11:18 -0400)]
mds/MDSAuthCaps: fix parse error message

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds: whitespace
Sage Weil [Thu, 9 Jul 2015 15:18:08 +0000 (11:18 -0400)]
mds: whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds: log to cluster log if mds cap parse fails
Sage Weil [Thu, 9 Jul 2015 15:18:04 +0000 (11:18 -0400)]
mds: log to cluster log if mds cap parse fails

It's an admin error; tell an admin.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/MDSAuthCaps: debug is_capable
Sage Weil [Wed, 8 Jul 2015 20:20:46 +0000 (16:20 -0400)]
mds/MDSAuthCaps: debug is_capable

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/MDSAuthCap: fix debug prefix
Sage Weil [Wed, 8 Jul 2015 20:15:05 +0000 (16:15 -0400)]
mds/MDSAuthCap: fix debug prefix

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/MDSAuthCap: drop leading / in paths
Sage Weil [Wed, 8 Jul 2015 20:01:07 +0000 (16:01 -0400)]
mds/MDSAuthCap: drop leading / in paths

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/MDSAuthCaps: fix allow_all
Sage Weil [Wed, 8 Jul 2015 19:58:51 +0000 (15:58 -0400)]
mds/MDSAuthCaps: fix allow_all

Empty path is '', not '/'.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/MDSAuthCaps: add cct for debug context
Sage Weil [Wed, 8 Jul 2015 19:47:00 +0000 (15:47 -0400)]
mds/MDSAuthCaps: add cct for debug context

signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds: calculate path in check_access()
Jashan Kamboj [Mon, 15 Jun 2015 21:20:55 +0000 (02:50 +0530)]
mds: calculate path in check_access()

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
10 years agomds/MDSAuthCaps: normalize path, drop useless constant.
Sage Weil [Thu, 4 Jun 2015 21:40:21 +0000 (14:40 -0700)]
mds/MDSAuthCaps: normalize path, drop useless constant.

Use an empty string for no path--this is more efficient.  This generalizes
to losing any leading '/' character.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/MDSAuthCaps: pass down inode uid.gid and mode
Sage Weil [Thu, 4 Jun 2015 20:52:05 +0000 (13:52 -0700)]
mds/MDSAuthCaps: pass down inode uid.gid and mode

We will need this to evaluate the unix permissions.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/Server: add a few access checks
Sage Weil [Sat, 30 May 2015 01:36:00 +0000 (21:36 -0400)]
mds/Server: add a few access checks

(incomplete coverage!)

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/Server: add check_access() hook
Sage Weil [Thu, 4 Jun 2015 20:35:23 +0000 (13:35 -0700)]
mds/Server: add check_access() hook

For now, we are doing a very basic permission check.  No callers yet.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/MDSAuthCap: fix uid and gid types
Sage Weil [Thu, 4 Jun 2015 20:45:59 +0000 (13:45 -0700)]
mds/MDSAuthCap: fix uid and gid types

int64_t for uid, so we can do a negative "none" value.
gid_t (uint32_t) for gid.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/MDSAuthCaps: cosmetic
Sage Weil [Thu, 4 Jun 2015 20:37:26 +0000 (13:37 -0700)]
mds/MDSAuthCaps: cosmetic

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/MDSAuthCaps: use bitmask for is_capable()
Sage Weil [Thu, 4 Jun 2015 20:37:56 +0000 (13:37 -0700)]
mds/MDSAuthCaps: use bitmask for is_capable()

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/MDSAuthCap: fix path match
Sage Weil [Thu, 28 May 2015 20:48:36 +0000 (16:48 -0400)]
mds/MDSAuthCap: fix path match

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/MDSAuthCaps: move allows() into MDSCapSpec
Sage Weil [Thu, 28 May 2015 04:52:27 +0000 (00:52 -0400)]
mds/MDSAuthCaps: move allows() into MDSCapSpec

Also, fix this so that 'any' implies that we can read or write.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/MDSAuthCaps: parse optional gid list
Sage Weil [Thu, 28 May 2015 04:33:07 +0000 (00:33 -0400)]
mds/MDSAuthCaps: parse optional gid list

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/MDSAuthCaps: whitespace
Sage Weil [Thu, 28 May 2015 04:00:39 +0000 (00:00 -0400)]
mds/MDSAuthCaps: whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #5951 from guangyy/doc-pool
Kefu Chai [Thu, 1 Oct 2015 10:03:19 +0000 (18:03 +0800)]
Merge pull request #5951 from guangyy/doc-pool

doc: update doc for with new pool settings

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5853 from branch-predictor/bp-rados-fix-noverify
Loic Dachary [Wed, 30 Sep 2015 19:14:32 +0000 (21:14 +0200)]
Merge pull request #5853 from branch-predictor/bp-rados-fix-noverify

common/obj_bencher.cc: fix verification crashing when there's no objects

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #6009 from theanalyst/scripts/orig-issue
Loic Dachary [Wed, 30 Sep 2015 15:38:26 +0000 (17:38 +0200)]
Merge pull request #6009 from theanalyst/scripts/orig-issue

scripts: release_notes can track original issue

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #5211 from 0003ydlom/smc3
Sage Weil [Wed, 30 Sep 2015 15:09:08 +0000 (11:09 -0400)]
Merge pull request #5211 from 0003ydlom/smc3

MOSDOp/do_op/handle_op: Simple Messenger optimization

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Tested-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #6127 from wido/mirror-docs-fixes
Sage Weil [Wed, 30 Sep 2015 12:41:59 +0000 (08:41 -0400)]
Merge pull request #6127 from wido/mirror-docs-fixes

docs: Fix styling of newly added mirror docs

10 years agoMerge pull request #6109 from liewegas/wip-13214
Sage Weil [Wed, 30 Sep 2015 12:31:48 +0000 (08:31 -0400)]
Merge pull request #6109 from liewegas/wip-13214

init-rbdmap: fix CMDPARAMS

Reviewed-by: Nathan Cutler <ncutler@suse.com>
10 years agoinit-rbdmap: fix CMDPARAMS 6109/head
Sage Weil [Wed, 30 Sep 2015 12:29:05 +0000 (08:29 -0400)]
init-rbdmap: fix CMDPARAMS

Fixes: #13214
Reported-by: Wyllys Ingersoll <wyllys.ingersoll@keepertech.com>
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agodocs: Fix styling of newly added mirror docs 6127/head
Wido den Hollander [Wed, 30 Sep 2015 11:45:28 +0000 (13:45 +0200)]
docs: Fix styling of newly added mirror docs

10 years agocleanup: make the pool setting GET decription point to SET description 5951/head
Guang Yang [Wed, 30 Sep 2015 00:27:07 +0000 (00:27 +0000)]
cleanup: make the pool setting GET decription point to SET description

Signed-off-by: Guang Yang yguang@yahoo-inc.com
10 years agodoc: update doc for with new pool settings
Guang Yang [Wed, 16 Sep 2015 17:46:41 +0000 (17:46 +0000)]
doc: update doc for with new pool settings

Signed-off-by: Guang Yang yguang@yahoo-inc.com
10 years agoMerge remote-tracking branch 'gh/infernalis'
Sage Weil [Wed, 30 Sep 2015 00:15:31 +0000 (20:15 -0400)]
Merge remote-tracking branch 'gh/infernalis'

10 years agoMerge pull request #6101 from liewegas/wip-fs
Sage Weil [Tue, 29 Sep 2015 21:42:08 +0000 (17:42 -0400)]
Merge pull request #6101 from liewegas/wip-fs

os/fs: fix do loop

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #6103 from SUSE/wip-re-redrop-fdupes
branto1 [Tue, 29 Sep 2015 10:57:32 +0000 (12:57 +0200)]
Merge pull request #6103 from SUSE/wip-re-redrop-fdupes

ceph.spec.in: re-re-drop fdupes

Reviewed-by: Boris Ranto <branto@redhat.com>
10 years agotest/test_rados_tool.sh: implement regression test for bench verify crash 5853/head
Piotr Dałek [Tue, 29 Sep 2015 07:12:03 +0000 (09:12 +0200)]
test/test_rados_tool.sh: implement regression test for bench verify crash

Truncate all objects after format test, then check whether rados bench rand/seq
still works, or just crashes.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
10 years agocommon/obj_bencher.cc: fix verification crashing when there's no objects
Piotr Dałek [Wed, 9 Sep 2015 08:57:00 +0000 (10:57 +0200)]
common/obj_bencher.cc: fix verification crashing when there's no objects

When specified pool is empty or doesn't contain valid bench objects, rados
can crash because it attempts to memcmp through NULL pointer. Added check
for valid object size (which also fixes the case when objects are there, but
they're truncated), and made object_size being size_t instead of int.
In seq_read_bench, there's a missing lock.Lock() which causes rados to trigger
assert when object reading fails. Moved lock.Lock() before completion_ret()
call.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
10 years agoceph.spec.in: re-re-drop fdupes 6103/head
Nathan Cutler [Tue, 29 Sep 2015 06:57:16 +0000 (08:57 +0200)]
ceph.spec.in: re-re-drop fdupes

The %fdupes call was dropped by 53072b9019caf72e0313b2804ea174237ed7da33
Later, it got accidentally reinstated by ceb93e8e69e125c9358f63b0099e7509b6624bcf

Signed-off-by: Nathan Cutler <ncutler@suse.com>
10 years agoMerge pull request #6025 from ukernel/wip-13167
Gregory Farnum [Tue, 29 Sep 2015 05:21:34 +0000 (22:21 -0700)]
Merge pull request #6025 from ukernel/wip-13167

journaler: detect unexpected holes in journal objects

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #5849 from ukernel/wip-32bits-ceph-fuse
Gregory Farnum [Tue, 29 Sep 2015 05:19:11 +0000 (22:19 -0700)]
Merge pull request #5849 from ukernel/wip-32bits-ceph-fuse

Wip 32bits ceph fuse

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #4791 from ceph/wip-11783
Gregory Farnum [Tue, 29 Sep 2015 05:14:52 +0000 (22:14 -0700)]
Merge pull request #4791 from ceph/wip-11783

cephfs: detect completed cap flushes

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #6070 from jcsp/wip-reformat-subtreemaptest
Yan, Zheng [Tue, 29 Sep 2015 02:12:39 +0000 (10:12 +0800)]
Merge pull request #6070 from jcsp/wip-reformat-subtreemaptest

Fix reformatting journals containing SUBTREEMAP_TEST events

10 years agoMerge pull request #6082 from jcsp/wip-client-quota-roots
Yan, Zheng [Tue, 29 Sep 2015 02:02:28 +0000 (10:02 +0800)]
Merge pull request #6082 from jcsp/wip-client-quota-roots

Fix quota enforcement on subdir mounts

10 years agoos/fs: fix aio submit method 6101/head
Sage Weil [Tue, 29 Sep 2015 01:31:23 +0000 (21:31 -0400)]
os/fs: fix aio submit method

continue in a do while(false) will always eval false and break
out.  To repeat, we need while (true) and an explicit break.

Reported-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #6078 from H3C/wip-13208
Sage Weil [Mon, 28 Sep 2015 20:42:01 +0000 (16:42 -0400)]
Merge pull request #6078 from H3C/wip-13208

Objecter: maybe access wild pointer(op) in _op_submit_with_budget.

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #6064 from H3C/wip-rbd-bugfix1
Sage Weil [Mon, 28 Sep 2015 20:41:44 +0000 (16:41 -0400)]
Merge pull request #6064 from H3C/wip-rbd-bugfix1

Objecter: misc fix for segmentation fault.

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #6084 from liewegas/wip-revert-scrub
Sage Weil [Mon, 28 Sep 2015 20:40:31 +0000 (16:40 -0400)]
Merge pull request #6084 from liewegas/wip-revert-scrub

Revert "osd: new pool settings: scrub intervals"

Reviewed-by: Mykola Golub <mgolub@mirantis.com>