]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
12 years agolibrbd: invalidate cache when flattening
Josh Durgin [Sat, 9 Mar 2013 02:57:24 +0000 (18:57 -0800)]
librbd: invalidate cache when flattening

The cache stores which objects don't exist. Flatten bypasses the cache
when doing its copyups, so when it is done the -ENOENT from the cache
is treated as zeroes instead of 'need to read from parent'.

Clients that have the image open need to forgot about the cached
non-existent objects as well. Do this during ictx_refresh, while the
parent_lock is held exclusively so no new reads from the parent can
happen until the updated parent metadata is visible, so no new reads
from the parent will occur.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoObjectCacher: add a method to clear -ENOENT caching
Josh Durgin [Sat, 9 Mar 2013 01:53:31 +0000 (17:53 -0800)]
ObjectCacher: add a method to clear -ENOENT caching

Clear the exists and complete flags for any objects that have exists
set to false, and force any in-flight reads to retry if they get
-ENOENT instead of generating zeros.

This is useful for getting the cache into a consistent state for rbd
after an image has been flattened, since many objects which previously
did not exist and went up to the parent to retrieve data may now exist
in the child.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoObjectCacher: keep track of outstanding reads on an object
Josh Durgin [Sat, 9 Mar 2013 01:49:27 +0000 (17:49 -0800)]
ObjectCacher: keep track of outstanding reads on an object

Reads always use C_ReadFinish as a callback (and they are the only
user of this callback). Keep an xlist of these for each object, so
they can remove themselves as they finish. To prevent racing requests
and with discard removing objects from the cache, clear the xlist in
the object destructor, so if the Object is still valid the set_item
will still be on the list.

Make the ObjectCacher constructor take an Object* instead of the pool
and object id, which are derived from the Object* anyway.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoconfig: note which options are overridden by common_preinit()
Josh Durgin [Thu, 7 Mar 2013 01:49:51 +0000 (17:49 -0800)]
config: note which options are overridden by common_preinit()

Defaults for these differ based on the context in which they're used.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agocommon: reduce default in-memory logs for non-daemons
Josh Durgin [Thu, 7 Mar 2013 01:42:03 +0000 (17:42 -0800)]
common: reduce default in-memory logs for non-daemons

The default of 100000 can result in hundreds of MBs of extra memory
used. This was most obvious when using librbd with caching enabled,
since there was a dout(0) accidentally left in the ObjectCacher.

refs: #4352
backport: bobtail
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoObjectCacher: fix debug log level in split
Josh Durgin [Thu, 28 Feb 2013 20:13:45 +0000 (12:13 -0800)]
ObjectCacher: fix debug log level in split

Level 0 should never be used for this kind of debugging.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
12 years agoMerge pull request #90 from grosskur/fix-debian-libsnappy
Sage Weil [Wed, 6 Mar 2013 15:54:13 +0000 (07:54 -0800)]
Merge pull request #90 from grosskur/fix-debian-libsnappy

debian: require libsnappy-dev for ceph

12 years agodebian: require libsnappy-dev for ceph 90/head
Alan Grosskurth [Wed, 6 Mar 2013 10:21:12 +0000 (02:21 -0800)]
debian: require libsnappy-dev for ceph

Debian builds are currently broken without this requirement.

12 years agorelease-process.rst: Fix typos
Gary Lowell [Wed, 6 Mar 2013 06:08:15 +0000 (22:08 -0800)]
release-process.rst:  Fix typos

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
12 years agoMerge branch 'wip-prepare'
Sage Weil [Tue, 5 Mar 2013 21:33:05 +0000 (13:33 -0800)]
Merge branch 'wip-prepare'

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Alexandre Marangone <alexandre.marangone@inktank.com>
Tested-by: Tamil Muthamizhan <tamil.muthamizhan@inktank.com>
12 years agoceph-disk-prepare: move in-use checks to the top, before zap
Sage Weil [Tue, 5 Mar 2013 21:08:26 +0000 (13:08 -0800)]
ceph-disk-prepare: move in-use checks to the top, before zap

Move the in-use checks to the very top, before we (say) zap!

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc/release-notes: v0.58
Sage Weil [Tue, 5 Mar 2013 19:02:19 +0000 (11:02 -0800)]
doc/release-notes: v0.58

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoUpdate doc/radosgw/s3/python.rst
carsonoid [Thu, 21 Feb 2013 22:49:17 +0000 (15:49 -0700)]
Update doc/radosgw/s3/python.rst

Note about creating conn object for non-ssl implementations.

12 years agoMerge branch 'wip-4207'
David Zafman [Tue, 5 Mar 2013 18:25:49 +0000 (10:25 -0800)]
Merge branch 'wip-4207'

Feature: #4207: osd/librados: add ops to list snaps for an object

Signed-off-by: David Zafman <david.zafman@inktank.com>
Reported-by: Sam Just <sam.just@inktank.com>
12 years agoMerge branch 'master' of https://github.com/ceph/ceph
Gary Lowell [Tue, 5 Mar 2013 17:06:24 +0000 (09:06 -0800)]
Merge branch 'master' of https://github.com/ceph/ceph

12 years agoMerge branch 'next'
Gary Lowell [Tue, 5 Mar 2013 17:05:21 +0000 (09:05 -0800)]
Merge branch 'next'

12 years agoAdd list_snaps() calls to snapshots test cases
David Zafman [Sat, 2 Mar 2013 02:27:03 +0000 (18:27 -0800)]
Add list_snaps() calls to snapshots test cases

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoAdd rados listsnaps command
David Zafman [Sat, 23 Feb 2013 04:36:28 +0000 (20:36 -0800)]
Add rados listsnaps command

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoosd/librados: add op to list clones/snaps for an object
David Zafman [Fri, 22 Feb 2013 23:15:06 +0000 (15:15 -0800)]
osd/librados: add op to list clones/snaps for an object

Returning snap_set_t with clone info
and snapshots in ascending order
Add clones with snapshots to obj_list_snap_response_t
New rados_types.hpp with snap_set_t/clone_info_t
Move snap_t to rados_types.hpp
Add generate_test_instances() and TYPE() to encoding/types.h

Feature: #4207

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoRemove unused SnapContext in librados.hpp
David Zafman [Thu, 28 Feb 2013 01:49:17 +0000 (17:49 -0800)]
Remove unused SnapContext in librados.hpp

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoosd: Improve snapshot test
David Zafman [Wed, 27 Feb 2013 04:54:48 +0000 (20:54 -0800)]
osd: Improve snapshot test

In SelfManagedSnapRollbackPP add some overlapping writes
New SelfManagedSnapOverlap creates overlapping writes

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoosd: correct comment
David Zafman [Wed, 27 Feb 2013 01:09:14 +0000 (17:09 -0800)]
osd: correct comment

SnapSet snaps are in descending order

Signed-off-by: David Zafman <david.zafman@inktank.com>
12 years agoceph-disk-prepare: verify device is not in use by device-mapper
Sage Weil [Tue, 5 Mar 2013 04:57:52 +0000 (20:57 -0800)]
ceph-disk-prepare: verify device is not in use by device-mapper

Be nice and tell the user which devices/mappings are consuming the device,
too.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph-disk-prepare: verify device is not mounted before using
Sage Weil [Tue, 5 Mar 2013 00:38:57 +0000 (16:38 -0800)]
ceph-disk-prepare: verify device is not mounted before using

Make sure the data and/or journal device(s) are not in use (mounted)
before using them.  Make room for additional "in-use" checks in the future.

Closes: #3256
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodebian: require >= python2.6 for ceph as well
Josh Durgin [Tue, 5 Mar 2013 00:47:49 +0000 (16:47 -0800)]
debian: require >= python2.6 for ceph as well

ceph-disk-prepare and ceph-disk-activate use the with statement,
str.format, and possibly other new features from python 2.6.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoceph-disk-prepare: clean up stupid check for a digit
Sage Weil [Tue, 5 Mar 2013 00:29:57 +0000 (16:29 -0800)]
ceph-disk-prepare: clean up stupid check for a digit

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoceph-disk-prepare: use os.path.realpath()
Sage Weil [Tue, 5 Mar 2013 00:08:15 +0000 (16:08 -0800)]
ceph-disk-prepare: use os.path.realpath()

My janky symlink resolution is broken in various ways.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agov0.58 v0.58
Gary Lowell [Mon, 4 Mar 2013 23:18:24 +0000 (15:18 -0800)]
v0.58

12 years agoAdd X-Python-Version >=2.6 to debian control file.
Filippos Giannakos [Wed, 27 Feb 2013 11:56:08 +0000 (13:56 +0200)]
Add X-Python-Version >=2.6 to debian control file.

python-ceph complains when installed to debian squeeze about the 'with'
statement. Apparently installation tries to install the python-ceph package for
python 2.5, which does not support the 'with' statement natively.

Signed-off-by: Filippos Giannakos <philipgian@grnet.gr>
12 years agoPG,ReplicatedPG: use pg_has_reset_since to discard old async events
Samuel Just [Mon, 25 Feb 2013 21:28:31 +0000 (13:28 -0800)]
PG,ReplicatedPG: use pg_has_reset_since to discard old async events

Local async events are obsolete if the pg is deleting or if the
epoch at which they were created is prior to last_peering_reset.

Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit 62999ea2d362b32dfc86a15dcb03b06fb5cb0572)

12 years agoPG::build_scrub_map: detect race with peering via last_peering_reset
Samuel Just [Mon, 25 Feb 2013 20:40:06 +0000 (12:40 -0800)]
PG::build_scrub_map: detect race with peering via last_peering_reset

Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit 67225339dc3d62d7fe5a32eec65d51e53e8d35bb)

12 years agoReplicatedPG::C_OSD_CommittedPushedObject: use intrusive_ptr for pg
Samuel Just [Mon, 25 Feb 2013 20:36:29 +0000 (12:36 -0800)]
ReplicatedPG::C_OSD_CommittedPushedObject: use intrusive_ptr for pg

Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit 04ee8f478bbd587a711d0668c471cfc5c1cab06c)

12 years agoReplicatedPG::C_OSD_CommittedPushedObject take epoch submitted
Samuel Just [Mon, 25 Feb 2013 20:35:26 +0000 (12:35 -0800)]
ReplicatedPG::C_OSD_CommittedPushedObject take epoch submitted

What we really care about is that the epoch in which the Context
was submitted is at complete() time >= last_peering_reset.

Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit a01dea6af9aacf0614570ebb5fa161d9dde9b6b6)

12 years agoinit-ceph: fix --restart option
Sage Weil [Mon, 4 Mar 2013 20:34:40 +0000 (12:34 -0800)]
init-ceph: fix --restart option

Reported-by: Bryan K. Wright <bkw1a@ayesha.phys.virginia.edu>
Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc: Updated year in footer.
John Wilkins [Mon, 4 Mar 2013 19:48:14 +0000 (11:48 -0800)]
doc: Updated year in footer.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoMerge branch 'master' of https://github.com/ceph/ceph
John Wilkins [Mon, 4 Mar 2013 18:59:50 +0000 (10:59 -0800)]
Merge branch 'master' of https://github.com/ceph/ceph

12 years agodoc: Added instructions for ensuring ceph config file and keyring prior to mounting...
John Wilkins [Mon, 4 Mar 2013 18:59:18 +0000 (10:59 -0800)]
doc: Added instructions for ensuring ceph config file and keyring prior to mounting ceph fuse.

fixes: #3796

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoMerge pull request #89 from Elbandi/master
Sage Weil [Mon, 4 Mar 2013 18:33:15 +0000 (10:33 -0800)]
Merge pull request #89 from Elbandi/master

remove unused variable from makefile

12 years agojounal: disable aio
Sage Weil [Mon, 4 Mar 2013 18:08:49 +0000 (10:08 -0800)]
jounal: disable aio

There is a deadlock issue in the aio code, see #4079.  Disable for the time
being.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge remote-tracking branch 'gh/wip-3484'
Sage Weil [Mon, 4 Mar 2013 17:18:28 +0000 (09:18 -0800)]
Merge remote-tracking branch 'gh/wip-3484'

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoBuild: no longer need to use LEVELDB_INCLUDE 89/head
Andras Elso [Fri, 1 Mar 2013 15:34:01 +0000 (16:34 +0100)]
Build: no longer need to use LEVELDB_INCLUDE

Signed-off-by: Andras Elso <elso.andras@gmail.com>
12 years agotools: ceph: add 'ceph df' usage
Joao Eduardo Luis [Sat, 2 Mar 2013 18:36:37 +0000 (18:36 +0000)]
tools: ceph: add 'ceph df' usage

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agomon: Monitor: 'ceph df'
Joao Eduardo Luis [Fri, 1 Mar 2013 16:32:24 +0000 (16:32 +0000)]
mon: Monitor: 'ceph df'

Fixes: #3484
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agoREADME: Add libsnappy-dev to build requirements.
Gary Lowell [Sat, 2 Mar 2013 07:32:54 +0000 (23:32 -0800)]
README:  Add libsnappy-dev to build requirements.

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
12 years agodoc: missing blank line in radosgw/config-ref
Dan Mick [Sat, 2 Mar 2013 03:53:33 +0000 (19:53 -0800)]
doc: missing blank line in radosgw/config-ref

12 years agoMerge pull request #85 from dalgaaf/wip-da-spec-1
Gary Lowell [Sat, 2 Mar 2013 03:09:04 +0000 (19:09 -0800)]
Merge pull request #85 from dalgaaf/wip-da-spec-1

Fix package requirements to get sgdisk and merge some changes back from SUSE spec file.

Reviewed-by: Gary Lowell <gary.lowell@inktank.com>
12 years agoMerge pull request #88 from nmtadam/master
Sage Weil [Sat, 2 Mar 2013 01:50:00 +0000 (17:50 -0800)]
Merge pull request #88 from nmtadam/master

librados.hpp typo

12 years agolibrados.hpp: replace paris with pairs 88/head
Adam Manzanares [Fri, 1 Mar 2013 23:49:26 +0000 (15:49 -0800)]
librados.hpp: replace paris with pairs

Signed-off-by: Adam Manzanares <nmtadam@gmail.com>
Working on a lua-rados library I noticed that paris was used
in the place of pairs in some comments.

12 years agodoc: Instruction should have been noout, not nodown.
John Wilkins [Fri, 1 Mar 2013 23:09:31 +0000 (15:09 -0800)]
doc: Instruction should have been noout, not nodown.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Fixed OSD pool config settings. Should be in [global], not [osd].
John Wilkins [Fri, 1 Mar 2013 19:35:47 +0000 (11:35 -0800)]
doc: Fixed OSD pool config settings. Should be in [global], not [osd].

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoceph.spec.in: Require gptfdisk for Suse, gdisk for otherwise
Gary Lowell [Fri, 1 Mar 2013 18:38:49 +0000 (10:38 -0800)]
ceph.spec.in: Require gptfdisk for Suse, gdisk for otherwise

Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
12 years agoMerge pull request #87 from dalgaaf/wip-da-sca-style-2
Sage Weil [Fri, 1 Mar 2013 18:18:57 +0000 (10:18 -0800)]
Merge pull request #87 from dalgaaf/wip-da-sca-style-2

Fix more issues found via cppcheck

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoosd/Watch.cc: init NotifyTimeoutCB::canceled in constructor with false 87/head
Danny Al-Gaaf [Fri, 1 Mar 2013 17:52:27 +0000 (18:52 +0100)]
osd/Watch.cc: init NotifyTimeoutCB::canceled in constructor with false

Initialize NotifyTimeoutCB::canceled in the constructor with
false as already done in onter cases.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoosd/ReplicatedPG.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 17:44:59 +0000 (18:44 +0100)]
osd/ReplicatedPG.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoReplicatedPG.cc: remove unused variables
Danny Al-Gaaf [Fri, 1 Mar 2013 16:58:19 +0000 (17:58 +0100)]
ReplicatedPG.cc: remove unused variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoReplicatedPG.cc: remove consecutive return/break statement
Danny Al-Gaaf [Fri, 1 Mar 2013 16:55:55 +0000 (17:55 +0100)]
ReplicatedPG.cc: remove consecutive return/break statement

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoosd/PG.cc: reduce scope of listed_collection in read_log_old()
Danny Al-Gaaf [Fri, 1 Mar 2013 16:14:53 +0000 (17:14 +0100)]
osd/PG.cc: reduce scope of listed_collection in read_log_old()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoosd/PG.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 16:11:31 +0000 (17:11 +0100)]
osd/PG.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoosd/OSD.cc: remove unused variable 'map<int64_t, int> pool_resize'
Danny Al-Gaaf [Fri, 1 Mar 2013 16:05:03 +0000 (17:05 +0100)]
osd/OSD.cc: remove unused variable 'map<int64_t, int> pool_resize'

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoosd/OSD.cc: reduce scope of "PG *pg" in OSD::handle_pg_query()
Danny Al-Gaaf [Fri, 1 Mar 2013 15:57:13 +0000 (16:57 +0100)]
osd/OSD.cc: reduce scope of "PG *pg" in OSD::handle_pg_query()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoosd/OSD.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 15:54:26 +0000 (16:54 +0100)]
osd/OSD.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoos/IndexManager.cc: reduce scope of 'int r' in IndexManager::build_index()
Danny Al-Gaaf [Fri, 1 Mar 2013 15:37:36 +0000 (16:37 +0100)]
os/IndexManager.cc: reduce scope of 'int r' in IndexManager::build_index()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoos/LevelDBStore.h: pass const string by reference to past_prefix()
Danny Al-Gaaf [Fri, 1 Mar 2013 15:33:40 +0000 (16:33 +0100)]
os/LevelDBStore.h: pass const string by reference to past_prefix()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoos/FileStore.cc: fix warning about comparing int with bool
Danny Al-Gaaf [Fri, 1 Mar 2013 15:27:38 +0000 (16:27 +0100)]
os/FileStore.cc: fix warning about comparing int with bool

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoos/FileStore.cc: remove identical else branch
Danny Al-Gaaf [Fri, 1 Mar 2013 15:09:15 +0000 (16:09 +0100)]
os/FileStore.cc: remove identical else branch

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoos/FileStore.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 15:04:24 +0000 (16:04 +0100)]
os/FileStore.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoSimpleMessenger.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 14:54:21 +0000 (15:54 +0100)]
SimpleMessenger.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomsg/Pipe.cc: reduce scope of some variables
Danny Al-Gaaf [Fri, 1 Mar 2013 14:40:51 +0000 (15:40 +0100)]
msg/Pipe.cc: reduce scope of some variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomon/Paxos.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 14:09:37 +0000 (15:09 +0100)]
mon/Paxos.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomon/PGMonitor.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 13:37:29 +0000 (14:37 +0100)]
mon/PGMonitor.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomon/PGMap.cc: remove useless assigment to 'first', it's never used
Danny Al-Gaaf [Fri, 1 Mar 2013 13:33:39 +0000 (14:33 +0100)]
mon/PGMap.cc: remove useless assigment to 'first', it's never used

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomon/OSDMonitor.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 13:32:09 +0000 (14:32 +0100)]
mon/OSDMonitor.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomon/MonmapMonitor.cc: remove unused variable
Danny Al-Gaaf [Fri, 1 Mar 2013 13:25:55 +0000 (14:25 +0100)]
mon/MonmapMonitor.cc: remove unused variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomon/MonmapMonitor.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 13:22:20 +0000 (14:22 +0100)]
mon/MonmapMonitor.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomon/Monitor.cc: reduce scope of reuse_caps in Monitor::_ms_dispatch()
Danny Al-Gaaf [Fri, 1 Mar 2013 13:18:04 +0000 (14:18 +0100)]
mon/Monitor.cc: reduce scope of reuse_caps in Monitor::_ms_dispatch()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomon/Monitor.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 13:15:08 +0000 (14:15 +0100)]
mon/Monitor.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomon/MonClient.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 13:02:15 +0000 (14:02 +0100)]
mon/MonClient.cc: use static_cast instead of C-Style cast

Use static_cast<T*>(m) instead of C-Style cast, add missing
include needed for static_cast.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomon/MDSMonitor.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 12:57:39 +0000 (13:57 +0100)]
mon/MDSMonitor.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomon/LogMonitor.cc: move unused variable into related code block
Danny Al-Gaaf [Fri, 1 Mar 2013 12:53:54 +0000 (13:53 +0100)]
mon/LogMonitor.cc: move unused variable into related code block

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomon/LogMonitor.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 12:51:57 +0000 (13:51 +0100)]
mon/LogMonitor.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomon/Elector.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 12:49:37 +0000 (13:49 +0100)]
mon/Elector.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomon/AuthMonitor.cc: remove unused 'std::stringstream ss'
Danny Al-Gaaf [Fri, 1 Mar 2013 12:47:10 +0000 (13:47 +0100)]
mon/AuthMonitor.cc: remove unused 'std::stringstream ss'

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/flock.cc: remove unused variable 'crossed_waiting_locks'
Danny Al-Gaaf [Fri, 1 Mar 2013 12:41:48 +0000 (13:41 +0100)]
mds/flock.cc: remove unused variable 'crossed_waiting_locks'

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/Server.cc: reduce scope of some variables
Danny Al-Gaaf [Fri, 1 Mar 2013 12:38:11 +0000 (13:38 +0100)]
mds/Server.cc: reduce scope of some variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/Server.cc: : use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 12:33:12 +0000 (13:33 +0100)]
mds/Server.cc: : use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/Migrator.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 12:27:03 +0000 (13:27 +0100)]
mds/Migrator.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/MDS.cc: remove unused variable 'oldresolve'
Danny Al-Gaaf [Fri, 1 Mar 2013 12:20:39 +0000 (13:20 +0100)]
mds/MDS.cc: remove unused variable 'oldresolve'

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/MDS.cc: : use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 12:20:03 +0000 (13:20 +0100)]
mds/MDS.cc: : use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/MDCache.cc: remove unused variables recover_q and check_q
Danny Al-Gaaf [Fri, 1 Mar 2013 12:10:32 +0000 (13:10 +0100)]
mds/MDCache.cc: remove unused variables recover_q and check_q

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/MDCache.cc: reduce scope of 'in' in MDCache::open_root_inode()
Danny Al-Gaaf [Fri, 1 Mar 2013 12:05:32 +0000 (13:05 +0100)]
mds/MDCache.cc: reduce scope of 'in' in MDCache::open_root_inode()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/MDCache.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 12:03:19 +0000 (13:03 +0100)]
mds/MDCache.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/MDBalancer.h: init some double variables in constructor
Danny Al-Gaaf [Fri, 1 Mar 2013 11:49:37 +0000 (12:49 +0100)]
mds/MDBalancer.h: init some double variables in constructor

Initialize double variables my_load and target_load with 0.0 in
the constructor.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/MDBalancer.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 11:40:01 +0000 (12:40 +0100)]
mds/MDBalancer.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoESession.h: initialze 'open' in the constructor with false
Danny Al-Gaaf [Fri, 1 Mar 2013 11:33:37 +0000 (12:33 +0100)]
ESession.h: initialze 'open' in the constructor with false

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/LogEvent.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 11:15:13 +0000 (12:15 +0100)]
mds/LogEvent.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/Locker.cc: reduce scope of 'pool' in Locker::issue_client_lease()
Danny Al-Gaaf [Fri, 1 Mar 2013 11:11:01 +0000 (12:11 +0100)]
mds/Locker.cc: reduce scope of 'pool' in Locker::issue_client_lease()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph.spec.in: merge fdupes support from SUSE packages 85/head
Danny Al-Gaaf [Fri, 1 Mar 2013 11:02:44 +0000 (12:02 +0100)]
ceph.spec.in: merge fdupes support from SUSE packages

Use fdupes to avoid duplicated files as done in the SUSE
packages. Since it doesn't work as expected on Fedora/RHEL
do this only on SUSE based distros.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph.spec.in: add on non-RHEL sharutils to 'BuildRequires:'
Danny Al-Gaaf [Fri, 1 Mar 2013 10:56:54 +0000 (11:56 +0100)]
ceph.spec.in: add on non-RHEL sharutils to 'BuildRequires:'

Add sharutils to 'BuildRequires:', needed for configure.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agoceph.spec.in: fix 'Requires:' to get sgdisk into the system
Danny Al-Gaaf [Fri, 1 Mar 2013 10:51:26 +0000 (11:51 +0100)]
ceph.spec.in: fix 'Requires:' to get sgdisk into the system

Fix package Requirements to get sgdisk. On RHEL/CentOS/Fedora the
package is gdisk. On SUSE/openSUSE < 12.2 it's scsirastools on
openSUSE >= 12.2 it's in gptfdisk.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
12 years agomds/Locker.cc: use static_cast instead of C-Style cast
Danny Al-Gaaf [Fri, 1 Mar 2013 10:41:06 +0000 (11:41 +0100)]
mds/Locker.cc: use static_cast instead of C-Style cast

Use static_cast<T>() instead of C-Style cast.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>