]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agodoc: Fixes spelling and grammatical errors 4148/head
Vartika Rai [Mon, 23 Mar 2015 20:41:34 +0000 (02:11 +0530)]
doc: Fixes spelling and grammatical errors

Signed-off-by: Vartika Rai <vartikarai17@gmail.com>
10 years agoMerge pull request #4086 from tchaikov/fix-doxygen-warnings
Loic Dachary [Mon, 23 Mar 2015 19:35:52 +0000 (20:35 +0100)]
Merge pull request #4086 from tchaikov/fix-doxygen-warnings

doc: fix doxygen warnings

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4011 from ceph/wip-mds-damaged
Gregory Farnum [Mon, 23 Mar 2015 18:21:23 +0000 (11:21 -0700)]
Merge pull request #4011 from ceph/wip-mds-damaged

mds: Add 'damaged' state and handle errors during rank startup

Reviewed-by: Greg Farnum <gfarnum@rehdat.com>
10 years agomds: handle read/replay errors in MDLog with damaged() 4011/head
John Spray [Thu, 19 Mar 2015 20:42:59 +0000 (20:42 +0000)]
mds: handle read/replay errors in MDLog with damaged()

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: call damaged() on what were assertions in replay
John Spray [Thu, 19 Mar 2015 20:41:36 +0000 (20:41 +0000)]
mds: call damaged() on what were assertions in replay

i.e. categorize an unreplayable journal as a damaged rank.

NB there will be other cases where replay can assert out
while calling into other classes, but that's for another day.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoosdc/Journaler: improved error handling
John Spray [Thu, 19 Mar 2015 20:16:55 +0000 (20:16 +0000)]
osdc/Journaler: improved error handling

Exceptions from ::decode are caught and turned
into return codes that we can handle via
the contexts used for completions.

The assertion that entry_size != 0 is removed in
JournalStream::read so that if it is zero that
just becomes a normal deserialization error
later when someone tries to decode the
zerolength journal event.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: catch exceptions in ::decode
John Spray [Thu, 19 Mar 2015 20:15:47 +0000 (20:15 +0000)]
mds: catch exceptions in ::decode

...and translate them into more readily handlable -EINVALs

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #4102 from larkly/patch-docerror-usermgmt
Gregory Farnum [Mon, 23 Mar 2015 18:20:01 +0000 (11:20 -0700)]
Merge pull request #4102 from larkly/patch-docerror-usermgmt

Minor fix: bootstrap-mds in user-management.rst

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agomds: handle encoding errors on MDSTable load
John Spray [Thu, 19 Mar 2015 15:30:15 +0000 (15:30 +0000)]
mds: handle encoding errors on MDSTable load

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #3893 from ceph/wip-10390
Gregory Farnum [Mon, 23 Mar 2015 18:17:42 +0000 (11:17 -0700)]
Merge pull request #3893 from ceph/wip-10390

#10390: Refactor stray handling code and add throttling

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #3371 from nilamdyuti/wip-doc-ceph-object-gateway
Loic Dachary [Mon, 23 Mar 2015 17:25:41 +0000 (18:25 +0100)]
Merge pull request #3371 from nilamdyuti/wip-doc-ceph-object-gateway

Updates radosgw man page with configuration for mod_proxy_fcgi

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
10 years agoMerge pull request #4137 from majianpeng/assert-version
Sage Weil [Mon, 23 Mar 2015 16:21:43 +0000 (09:21 -0700)]
Merge pull request #4137 from majianpeng/assert-version

osd/ReplicatedPG: For CEPH_OSD_OP_ASSERT_VER, it should use

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4141 from tchaikov/sync-rst-with-manpages
Loic Dachary [Mon, 23 Mar 2015 15:45:21 +0000 (16:45 +0100)]
Merge pull request #4141 from tchaikov/sync-rst-with-manpages

doc: update .rst file with their .8 counterparts

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4117 from ceph/wip-libcephfs-flock
Gregory Farnum [Mon, 23 Mar 2015 14:14:36 +0000 (07:14 -0700)]
Merge pull request #4117 from ceph/wip-libcephfs-flock

Fixes for libcephfs flock tests

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agodoc: Adds updated radosgw-admin man page under man/ 3371/head
Nilamdyuti Goswami [Thu, 22 Jan 2015 18:23:50 +0000 (23:53 +0530)]
doc: Adds updated radosgw-admin man page under man/

Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
10 years agodoc: Updates radosgw-admin man page.
Nilamdyuti Goswami [Thu, 22 Jan 2015 18:21:52 +0000 (23:51 +0530)]
doc: Updates radosgw-admin man page.

Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
10 years agodoc: Adds updated radosgw man page under man/
Nilamdyuti Goswami [Tue, 20 Jan 2015 16:28:00 +0000 (21:58 +0530)]
doc: Adds updated radosgw man page under man/

Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
10 years agodoc: Updates radosgw man page.
Nilamdyuti Goswami [Tue, 20 Jan 2015 16:26:14 +0000 (21:56 +0530)]
doc: Updates radosgw man page.

Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
10 years agodoc: Adds updated radosgw man page under man/
Nilamdyuti Goswami [Wed, 14 Jan 2015 18:55:28 +0000 (00:25 +0530)]
doc: Adds updated radosgw man page under man/

Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
10 years agodoc: Updates radosgw man page with configuration for mod_proxy_fcgi .
Nilamdyuti Goswami [Wed, 14 Jan 2015 18:53:17 +0000 (00:23 +0530)]
doc: Updates radosgw man page with configuration for mod_proxy_fcgi .

Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
10 years agomds: call damaged() on errors loading SessionMap
John Spray [Thu, 19 Mar 2015 13:24:11 +0000 (13:24 +0000)]
mds: call damaged() on errors loading SessionMap

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomon/MDSMonitor: add "mds repaired"
John Spray [Mon, 16 Mar 2015 01:02:03 +0000 (01:02 +0000)]
mon/MDSMonitor: add "mds repaired"

For clearing an MDS rank out of `damaged`

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: emit DAMAGED on MDSTable load error
John Spray [Mon, 16 Mar 2015 00:18:30 +0000 (00:18 +0000)]
mds: emit DAMAGED on MDSTable load error

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: add damaged() method
John Spray [Mon, 16 Mar 2015 00:04:36 +0000 (00:04 +0000)]
mds: add damaged() method

A hook to fire off one last DAMAGED beacon
to mon before respawning.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: implement Beacon::send_and_wait
John Spray [Wed, 18 Mar 2015 17:42:54 +0000 (17:42 +0000)]
mds: implement Beacon::send_and_wait

For callers that want to send a beacon, and then
wait up to some timeout for a response
from the mon.  Specifically, shutdown handlers.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: report damaged ranks in health
John Spray [Sun, 15 Mar 2015 23:46:26 +0000 (23:46 +0000)]
mds: report damaged ranks in health

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomon/MDSMonitor: handle DAMAGED in beacon
John Spray [Sun, 15 Mar 2015 23:18:52 +0000 (23:18 +0000)]
mon/MDSMonitor: handle DAMAGED in beacon

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: report damaged in MDSMap::print_summary
John Spray [Wed, 18 Mar 2015 17:54:46 +0000 (17:54 +0000)]
mds: report damaged in MDSMap::print_summary

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds/MDSMap: update print() for DAMAGED
John Spray [Wed, 18 Mar 2015 19:05:28 +0000 (19:05 +0000)]
mds/MDSMap: update print() for DAMAGED

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: add `damaged` set to MDSMap
John Spray [Fri, 13 Mar 2015 21:06:39 +0000 (17:06 -0400)]
mds: add `damaged` set to MDSMap

To track which ranks have been reported in state
DAMAGED by an MDS daemon.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: introduce DAMAGED state
John Spray [Fri, 13 Mar 2015 21:04:34 +0000 (17:04 -0400)]
mds: introduce DAMAGED state

This state is for MDS daemons to report to
the monitor that they encountered an unfixable
error during startup/replay.  The implication
is that this rank should not be assigned to
another MDS daemon until offline repair is
performed, thus avoiding it flapping around
between failing daemons.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: remove unused Beacon::last_send
John Spray [Wed, 18 Mar 2015 19:08:35 +0000 (19:08 +0000)]
mds: remove unused Beacon::last_send

This was just a typo in the header, although someone
dutifully also added initialization of it to the constructor
at some stage too!

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: remove a spurious #if 1
John Spray [Fri, 13 Mar 2015 20:58:09 +0000 (16:58 -0400)]
mds: remove a spurious #if 1

This crept in in f93bf385.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: be fairer in enqueuing purges 3893/head
John Spray [Fri, 20 Mar 2015 21:09:43 +0000 (21:09 +0000)]
mds: be fairer in enqueuing purges

Don't let purges that require fewer ops skip ahead of those
that require more ops.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agodoc: update .rst file with their .8 counterparts 4141/head
Kefu Chai [Mon, 23 Mar 2015 03:59:40 +0000 (11:59 +0800)]
doc: update .rst file with their .8 counterparts

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agoosd/ReplicatedPG: For CEPH_OSD_OP_ASSERT_VER, it should use 4137/head
Jianpeng Ma [Mon, 23 Mar 2015 07:12:23 +0000 (15:12 +0800)]
osd/ReplicatedPG: For CEPH_OSD_OP_ASSERT_VER, it should use
op.assert_ver rather than op.watch.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoMerge pull request #4135 from ceph/wip-11198
Haomai Wang [Sun, 22 Mar 2015 16:01:08 +0000 (00:01 +0800)]
Merge pull request #4135 from ceph/wip-11198

Fix ceph_test_async_driver failed

10 years agoFix ceph_test_async_driver failed 4135/head
Haomai Wang [Sun, 22 Mar 2015 15:59:19 +0000 (23:59 +0800)]
Fix ceph_test_async_driver failed

This test will create 10000 sockets which will failed because of limited system fd. Actually we only need to create several hundreds sockets and it's enough to get the test's goal.

Fix bug #11198

10 years agoMerge pull request #3873 from tchaikov/cli-human-readable-errno
Loic Dachary [Sun, 22 Mar 2015 08:19:58 +0000 (09:19 +0100)]
Merge pull request #3873 from tchaikov/cli-human-readable-errno

rados: translate errno to str in CLI

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3841 from ceph/wip-10217
Loic Dachary [Sun, 22 Mar 2015 08:08:21 +0000 (09:08 +0100)]
Merge pull request #3841 from ceph/wip-10217

qa/workunits/fs/misc: fix filelock_interrupt.py

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #3829 from liewegas/wip-recovery-sleep
Loic Dachary [Sun, 22 Mar 2015 08:03:57 +0000 (09:03 +0100)]
Merge pull request #3829 from liewegas/wip-recovery-sleep

osd: inject simple sleep in recovery

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3685 from XinzeChi/wip-mark-started
Sage Weil [Sat, 21 Mar 2015 22:23:47 +0000 (15:23 -0700)]
Merge pull request #3685 from XinzeChi/wip-mark-started

osd: clear extra mark_started

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #3282 from tchaikov/pq-test
Sage Weil [Sat, 21 Mar 2015 21:53:36 +0000 (14:53 -0700)]
Merge pull request #3282 from tchaikov/pq-test

common/PrioritizedQueue: add basic tests for it

Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #3177 from davidzhang84/wip-inject-eio-ec
Sage Weil [Sat, 21 Mar 2015 21:52:51 +0000 (14:52 -0700)]
Merge pull request #3177 from davidzhang84/wip-inject-eio-ec

Add EIO injection on EC pool for mdata and data error only for now

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #3889 from XinzeChi/wip-tier-stat
Sage Weil [Sat, 21 Mar 2015 21:39:54 +0000 (14:39 -0700)]
Merge pull request #3889 from XinzeChi/wip-tier-stat

osd: add l_osd_op_cache_hit perf counter for cache pool

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4010 from majianpeng/osdmap-nspace
Sage Weil [Sat, 21 Mar 2015 21:39:35 +0000 (14:39 -0700)]
Merge pull request #4010 from majianpeng/osdmap-nspace

mon:make 'ceph osd map' accept namespace.

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4130 from dachary/wip-backports
Loic Dachary [Sat, 21 Mar 2015 10:22:49 +0000 (11:22 +0100)]
Merge pull request #4130 from dachary/wip-backports

doc: what does it mean for a release to be supported

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
10 years agodoc: what does it mean for a release to be supported 4130/head
Loic Dachary [Sat, 21 Mar 2015 10:06:28 +0000 (11:06 +0100)]
doc: what does it mean for a release to be supported

Signed-off-by: Loic Dachary <ldachary@redhat.com>
10 years agoMerge pull request #4122 from trhoden/rgw-quickstart
Sage Weil [Sat, 21 Mar 2015 00:45:38 +0000 (17:45 -0700)]
Merge pull request #4122 from trhoden/rgw-quickstart

doc: Add RGW quick start info

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4098 from ceph/wip-11128
Yehuda Sadeh [Sat, 21 Mar 2015 00:11:35 +0000 (17:11 -0700)]
Merge pull request #4098 from ceph/wip-11128

auth: reinitialize NSS modules after fork()

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoauth: use crypto_init_mutex to protect NSS_Shutdown() 4098/head
Yan, Zheng [Fri, 20 Mar 2015 23:13:51 +0000 (07:13 +0800)]
auth: use crypto_init_mutex to protect NSS_Shutdown()

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agodoc: Add RGW quick start info 4122/head
Travis Rhoden [Fri, 20 Mar 2015 21:07:36 +0000 (17:07 -0400)]
doc: Add RGW quick start info

Add details of how to use ceph-deploy to deploy the CivetWeb-based
RGW present in Hammer.

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
10 years agoMerge pull request #4120 from trhoden/quickstart-mon-create
Sage Weil [Fri, 20 Mar 2015 21:32:29 +0000 (14:32 -0700)]
Merge pull request #4120 from trhoden/quickstart-mon-create

doc: remove reference to old ceph-deploy steps

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agodoc: remove reference to old ceph-deploy steps 4120/head
Travis Rhoden [Fri, 20 Mar 2015 21:10:54 +0000 (17:10 -0400)]
doc: remove reference to old ceph-deploy steps

ceph-deploy 1.1.3 is ancient, and isn't easily found or installed.

No need to reference it and call out the steps necessary to use if
using it.

Signed-off-by: Travis Rhoden <trhoden@redhat.com>
10 years agoMerge pull request #4103 from ceph/wip-error-str
Gregory Farnum [Fri, 20 Mar 2015 17:59:26 +0000 (10:59 -0700)]
Merge pull request #4103 from ceph/wip-error-str

mds: fix error_str formatting in scrub output

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #4116 from ceph/wip-10368
Gregory Farnum [Fri, 20 Mar 2015 17:50:56 +0000 (10:50 -0700)]
Merge pull request #4116 from ceph/wip-10368

mds: call wait_for_safe twice in command_flush_journal

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agomds: call wait_for_safe twice in command_flush_journal 4116/head
John Spray [Fri, 20 Mar 2015 17:11:39 +0000 (17:11 +0000)]
mds: call wait_for_safe twice in command_flush_journal

...so that we wait until everyone who was waiting for the first
wait_for_safe has run their completion before we proceed, thus
avoiding the possibility that those completions will execute
during our trimming and cause problems.

Fixes: #10368
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoauth: reinitialize NSS modules after fork()
Yan, Zheng [Fri, 20 Mar 2015 17:02:42 +0000 (01:02 +0800)]
auth: reinitialize NSS modules after fork()

Fixes: #11128
Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoauth: properly return error of cephx_calc_client_server_challenge
Yan, Zheng [Fri, 20 Mar 2015 04:03:44 +0000 (12:03 +0800)]
auth: properly return error of cephx_calc_client_server_challenge

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMinor fix: Documentation referred to bootstrap-osd instead of bootstrap-mds 4102/head
Bosse Klykken [Thu, 19 Mar 2015 12:41:31 +0000 (13:41 +0100)]
Minor fix: Documentation referred to bootstrap-osd instead of bootstrap-mds

Signed-off-by: Bosse Klykken <larkly@gmail.com>
10 years agomds: improved doxygen comments in StrayManager
John Spray [Tue, 17 Mar 2015 12:29:31 +0000 (12:29 +0000)]
mds: improved doxygen comments in StrayManager

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: update StrayManager op limit on mds_max_purge_ops_per_pg
John Spray [Tue, 17 Mar 2015 12:34:59 +0000 (12:34 +0000)]
mds: update StrayManager op limit on mds_max_purge_ops_per_pg

Previously was only updating on mds_max_purge_ops

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: fix parent check in MDCache::eval_remote
John Spray [Wed, 25 Feb 2015 10:55:42 +0000 (10:55 +0000)]
mds: fix parent check in MDCache::eval_remote

This code path wasn't touched until the change
in "mds/Server: fix stray reintegration".  Now we
see that it will crash in fsstress in some circumstances
when the client is doing a link operation, where
we are checking the projected linkage on the DN
before going into this function, but not the projected
parenthood of the inode.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: make purge op limit dynamic based on PGs/MDSs
John Spray [Tue, 10 Feb 2015 14:16:34 +0000 (14:16 +0000)]
mds: make purge op limit dynamic based on PGs/MDSs

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: throttle purge stray operations
John Spray [Tue, 20 Jan 2015 12:17:56 +0000 (12:17 +0000)]
mds: throttle purge stray operations

Pull out the stray-handling code into a separate StrayManager
class.

There is an additional improvement to stray reintegration here,
by passing the DN that triggered the reintegration through,
we should make a better choice about *which* hardlink to
reintegrate the inode into, rather than just picking the first.

Fixes: #10390
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agocommon/config_opts: add purge throttle options
John Spray [Tue, 20 Jan 2015 11:15:03 +0000 (11:15 +0000)]
common/config_opts: add purge throttle options

These are to be respected by the MDS in the number
of concurrent RADOS delete operations and
number of files to be purged at once.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoosdc: make op count in Filer::purge configurable
John Spray [Tue, 20 Jan 2015 11:12:45 +0000 (11:12 +0000)]
osdc: make op count in Filer::purge configurable

Previously this was simply hardcoded to do up to
10 RADOS delete ops at a time.  Make this a config
option so that Filer consumers (like the MDS) can
know how many concurrent operations will be done
on their behalf.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: eval stray on remove dentry replica
John Spray [Mon, 16 Feb 2015 17:03:42 +0000 (17:03 +0000)]
mds: eval stray on remove dentry replica

This happens because when handling an MCacheExpire,
we expire inodes first and then dentries, so when
the inodes are put() their dentries still are replicated
so eval_stray fails.  Do an explicit call to maybe_eval_stray
when handling the expire for the dentry in order to catch
this.

One hits this path when migrating a stray away from
a stopping MDS rank.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: expire other ranks' mydirs during 'stopping'
John Spray [Mon, 16 Feb 2015 17:01:43 +0000 (17:01 +0000)]
mds: expire other ranks' mydirs during 'stopping'

Avoids the surviving MDSs thinking their base dir is still
replicated after a rank has been stopped.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds/Server: fix stray reintegration
John Spray [Thu, 29 Jan 2015 19:00:21 +0000 (19:00 +0000)]
mds/Server: fix stray reintegration

This was checking tracei's primary parent DN for remoteness
as a condition to calling eval_remote.  However, the *primary*
parent DN in this case is the stray, which is not remote.

The correct check is tracedn (the remote dentry that got us here)
rather than tracei->get_parent_dn() (the primary dentry for the
inode that we have looked up).

This leads to eval_remote being invoked, and reintegration
of stray hard-linked inodes working.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #4114 from apeters1971/wip-isa-lrucache
Loic Dachary [Fri, 20 Mar 2015 10:35:32 +0000 (11:35 +0100)]
Merge pull request #4114 from apeters1971/wip-isa-lrucache

erasure-code: make ErasureCodeIsaTableCache drop entries according to LRU

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agoerasure-code: make ErasureCodeIsaTableCache drop entries according to LRU 4114/head
Andreas Peters [Fri, 20 Mar 2015 09:21:26 +0000 (10:21 +0100)]
erasure-code: make ErasureCodeIsaTableCache drop entries according to LRU

There was a bug in the arguments used by the splice function to move elements from the LRU list to the head of the list.
To simplify the implementation the direction of the LRU list has been changed e.g. newest entries are pushed in front.

Signed-off-by: Andreas-Joachim Peters <andreas.joachim.peters@cern.ch>
10 years agoMerge pull request #4084 from ceph/wip-switch-to-breathe
Loic Dachary [Fri, 20 Mar 2015 09:33:10 +0000 (10:33 +0100)]
Merge pull request #4084 from ceph/wip-switch-to-breathe

Wip switch to breathe

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc: s/Asphyxiate/Breathe/ in documenting.rst 4084/head
Kefu Chai [Wed, 18 Mar 2015 03:52:18 +0000 (11:52 +0800)]
doc: s/Asphyxiate/Breathe/ in documenting.rst

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agodoc: enable doxygen for enum
Kefu Chai [Wed, 18 Mar 2015 03:51:10 +0000 (11:51 +0800)]
doc: enable doxygen for enum

* since we switched to breathe, which supports rendering enum
  types

Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agodoc: Switch doxygen integration back to breathe
Kefu Chai [Tue, 17 Mar 2015 15:40:00 +0000 (23:40 +0800)]
doc: Switch doxygen integration back to breathe

* asphyxiate needs more toolings, see
  https://github.com/ceph/asphyxiate/issues/1
* this commit basically reverts c96064
* use `autodoxygen` directive to doxygen referenced source files
* do not call `doxygen` explicitly in `build-doc`, `autodoxygen`
  will take care of it.

Fixes: #6115
Fixes: #6115
Signed-off-by: Kefu Chai <kchai@redhat.com>
10 years agotest/libcephfs/flock.cc: don't release lock before EWOULDBLOCK check 4117/head
Yan, Zheng [Thu, 19 Mar 2015 09:58:28 +0000 (17:58 +0800)]
test/libcephfs/flock.cc: don't release lock before EWOULDBLOCK check

make sure the main thread/process not release the file lock before
workers execute the operation that supposes to return EWOULDBLOCK.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agotest/libcephfs/flock.cc: fix synchronization points
Yan, Zheng [Thu, 19 Mar 2015 09:34:47 +0000 (17:34 +0800)]
test/libcephfs/flock.cc: fix synchronization points

In the threesome test cases, the main thread/process call PING_WORKER()
twice at each synchronization point. It's possible that one worker gets
both notifications and takes two steps forward, another worker gets no
notification.

The fix is use seperate semaphores for odd/even number synchronization
points.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge pull request #3983 from yuyuyu101/wip-async-fix-3
Haomai Wang [Fri, 20 Mar 2015 03:23:18 +0000 (11:23 +0800)]
Merge pull request #3983 from yuyuyu101/wip-async-fix-3

Wip async fix 3

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoThread.cc: Make set_affinity private and correct behavior 3983/head
Haomai Wang [Thu, 19 Mar 2015 06:56:23 +0000 (14:56 +0800)]
Thread.cc: Make set_affinity private and correct behavior

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agodoc/release-notes: more hammer release notes
Sage Weil [Fri, 20 Mar 2015 00:24:33 +0000 (17:24 -0700)]
doc/release-notes: more hammer release notes

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4085 from ceph/wip-11160
Sage Weil [Fri, 20 Mar 2015 00:19:59 +0000 (17:19 -0700)]
Merge pull request #4085 from ceph/wip-11160

rgw: don't use rgw_socket_path if frontend is configured

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agodoc/release-notes: make hammer note about filestore format upgrade
Sage Weil [Fri, 20 Mar 2015 00:16:15 +0000 (17:16 -0700)]
doc/release-notes: make hammer note about filestore format upgrade

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #3885 from Ved-vampir/master
John Spray [Thu, 19 Mar 2015 22:05:31 +0000 (22:05 +0000)]
Merge pull request #3885 from Ved-vampir/master

common: add perf counters description

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #3840 from ceph/wip-libcephfs-fsetxattr
John Spray [Thu, 19 Mar 2015 22:03:04 +0000 (22:03 +0000)]
Merge pull request #3840 from ceph/wip-libcephfs-fsetxattr

libcephfs: add ceph_f{get,set,list,remove)_xattr

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #3750 from ceph/wip-dump-cache
John Spray [Thu, 19 Mar 2015 22:00:48 +0000 (22:00 +0000)]
Merge pull request #3750 from ceph/wip-dump-cache

mds: Add 'dump cache' asok

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agomds: implement 'dump cache' asok command 3750/head
John Spray [Tue, 17 Mar 2015 18:38:41 +0000 (18:38 +0000)]
mds: implement 'dump cache' asok command

Retains old text format output when user specifies
a filename, else returns JSON.  JSON output will
cope less well with large caches, but will be more
useful for automated tests.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: use MDSCacheObject::dump in CDir::dump
John Spray [Wed, 18 Mar 2015 11:20:31 +0000 (11:20 +0000)]
mds: use MDSCacheObject::dump in CDir::dump

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: add CDentry::dump
John Spray [Tue, 17 Mar 2015 18:43:42 +0000 (18:43 +0000)]
mds: add CDentry::dump

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: extended dump() for CInode
John Spray [Tue, 17 Mar 2015 18:42:09 +0000 (18:42 +0000)]
mds: extended dump() for CInode

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: add dump() to MDSCacheObject
John Spray [Tue, 17 Mar 2015 18:41:30 +0000 (18:41 +0000)]
mds: add dump() to MDSCacheObject

Subclasses extend this with their own attributes.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: add SimpleLock::dump
John Spray [Wed, 18 Mar 2015 10:39:10 +0000 (10:39 +0000)]
mds: add SimpleLock::dump

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: add a dump() method to MutationImpl
John Spray [Tue, 17 Mar 2015 18:36:13 +0000 (18:36 +0000)]
mds: add a dump() method to MutationImpl

This is just an externally callable wrapper
to _dump that doesn't require caller
to pass in a time.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoinclude/frag: add a dump() method to fragtree_t
John Spray [Tue, 17 Mar 2015 17:47:50 +0000 (17:47 +0000)]
include/frag: add a dump() method to fragtree_t

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agomds: move auth_pins attrs into MDSCacheObject
John Spray [Thu, 26 Feb 2015 14:47:02 +0000 (14:47 +0000)]
mds: move auth_pins attrs into MDSCacheObject

These were common between CInode, CDir, CDentry.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge branch 'master' of github.com:ceph/ceph
Sage Weil [Thu, 19 Mar 2015 20:05:01 +0000 (13:05 -0700)]
Merge branch 'master' of github.com:ceph/ceph

10 years agoMerge remote-tracking branch 'gh/hammer'
Sage Weil [Thu, 19 Mar 2015 19:41:04 +0000 (12:41 -0700)]
Merge remote-tracking branch 'gh/hammer'

Conflicts:
PendingReleaseNotes
src/Makefile.am
src/gmock
src/test/Makefile.am

10 years agoMerge pull request #4035 from ceph/wip-11113
Josh Durgin [Thu, 19 Mar 2015 18:47:55 +0000 (11:47 -0700)]
Merge pull request #4035 from ceph/wip-11113

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #3988 from ceph/wip-refine-build-configuration-hammer
Sage Weil [Thu, 19 Mar 2015 18:31:31 +0000 (11:31 -0700)]
Merge pull request #3988 from ceph/wip-refine-build-configuration-hammer

Refine build configuration for hammer

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4104 from rzarzynski/wip-11148
Yehuda Sadeh [Thu, 19 Mar 2015 16:57:30 +0000 (09:57 -0700)]
Merge pull request #4104 from rzarzynski/wip-11148

rgw: rectify 202 Accepted in response for PUT on already existing bucket

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>