]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Greg Farnum [Mon, 14 Feb 2011 21:24:40 +0000 (13:24 -0800)]
OSD: convert waiting_for_pg from hash_map to map.
This doesn't need to be a hash_map; there will only be an entry
for each PG that gets a message request while it's not active.
Shouldn't be too many PGs that that happens too, right?
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Greg Farnum [Mon, 14 Feb 2011 21:23:42 +0000 (13:23 -0800)]
PG: remove the object locking stubs and some dead code.
These are unused (#if 0'd, so no way to use them!) and require
a memory-hogging hash_map. Goodbye!
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Greg Farnum [Sat, 12 Feb 2011 01:25:14 +0000 (17:25 -0800)]
PG: convert hash_maps to maps, remove unused.
waiting_for_[missing|degraded]_object don't need to be
hash_maps, and we don't use stat_object_temp_rd at all.
Swap to map and remove to reduce per-PG memory consumption!
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Colin Patrick McCabe [Fri, 18 Feb 2011 15:35:23 +0000 (07:35 -0800)]
debug.h: cleanup includes
Shouldn't need to include DoutStreambuf.h; that's all implementation.
Don't include Mutex.h, since we don't use it.
*Do* include config.h, since we need it.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Fri, 18 Feb 2011 14:35:47 +0000 (06:35 -0800)]
common: Move hex dump functions into hex.h
Move hex dump functions into hex.h. Remove unecessary includes from
debug.cc
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Fri, 18 Feb 2011 14:28:39 +0000 (06:28 -0800)]
Makefile: version.cc should depend on ceph_ver
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Fri, 18 Feb 2011 21:04:51 +0000 (13:04 -0800)]
debug.h: move Ceph version stuff into version.h
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Josh Durgin [Fri, 18 Feb 2011 20:57:55 +0000 (12:57 -0800)]
Revert "Makefile.am: remove unused libs from linking with librbd"
librados doesn't export ceph::buffer_total_alloc
This reverts commit
9bbd6c32a59ce0a2e4cc21a498e0b04bcd4781ed .
Josh Durgin [Fri, 18 Feb 2011 19:17:17 +0000 (11:17 -0800)]
testlibrbdpp: fix off by one error in read test
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Fri, 18 Feb 2011 19:12:48 +0000 (11:12 -0800)]
Makefile.am: remove unused libs from linking with librbd tests and rbd
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Fri, 18 Feb 2011 18:31:25 +0000 (10:31 -0800)]
Makefile.am: remove unused libs from linking with librbd
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Sage Weil [Fri, 18 Feb 2011 07:06:13 +0000 (23:06 -0800)]
Merge remote branch 'origin/max_commit_size'
Colin Patrick McCabe [Thu, 17 Feb 2011 18:53:00 +0000 (10:53 -0800)]
pybind/rados: write_full: remove silly extra param
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 17 Feb 2011 18:47:41 +0000 (10:47 -0800)]
pybind/rados: implement Pool.write_full
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Josh Durgin [Fri, 18 Feb 2011 01:30:19 +0000 (17:30 -0800)]
librbd: hold image context lock minimally
Holding the image context lock during snapshot removal prevented the
client from responding to a notify, causing a deadlock. This could be
triggered by removing a snapshot while concurrently adding more to the
same image.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Colin Patrick McCabe [Thu, 17 Feb 2011 18:24:22 +0000 (10:24 -0800)]
pybind/rados: implement Pool::change_auid
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 17 Feb 2011 18:05:10 +0000 (10:05 -0800)]
pybind/rados: add rados.version
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 17 Feb 2011 17:58:20 +0000 (09:58 -0800)]
pybind/rados: Add Rados.pool_exists
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 17 Feb 2011 17:46:34 +0000 (09:46 -0800)]
pybind/rados: Snap.name should be a py string
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 17 Feb 2011 17:38:11 +0000 (09:38 -0800)]
pybind/rados: add snapshots
Add snapshot lookup, iteration, creation, destruction interface.
Add test.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 17 Feb 2011 14:46:08 +0000 (06:46 -0800)]
Add Pool::list_objects
Add a Pool::list_objects method. Add a test for this to pybind-test.py
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 17 Feb 2011 12:41:15 +0000 (04:41 -0800)]
Add pybind-test
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 17 Feb 2011 12:11:08 +0000 (04:11 -0800)]
rados-python bindings: Fix pool deletion a bit
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Samuel Just [Thu, 17 Feb 2011 19:43:58 +0000 (11:43 -0800)]
mkcephfs: fix premature tmp directory deletion
Previously, the temp directory would be deleted after the first daemon
on a host was started leaving the second one to fail.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Samuel Just [Thu, 17 Feb 2011 19:23:37 +0000 (11:23 -0800)]
.gitignore: ignore testsnaps
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Josh Durgin [Thu, 17 Feb 2011 19:02:59 +0000 (11:02 -0800)]
.gitignore: ignore debian packaging outputs
Colin Patrick McCabe [Wed, 16 Feb 2011 18:28:48 +0000 (10:28 -0800)]
monmaptool: fix command-line output
Don't check errno if it isn't set.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 16 Feb 2011 17:21:23 +0000 (09:21 -0800)]
dout: don't print version when forcing fg logging.
dout: don't print version when forcing fg logging.
Fix tests that were assuming us to spew errors about /var/log, which we
no longer do.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 16 Feb 2011 16:57:49 +0000 (08:57 -0800)]
dout initialization: remove unecessary flush()
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 16 Feb 2011 16:22:05 +0000 (08:22 -0800)]
dout: properly output ceph version on opening dout
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 16 Feb 2011 16:04:29 +0000 (08:04 -0800)]
monmaptool: set_foreground_logging
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Greg Farnum [Wed, 16 Feb 2011 23:07:01 +0000 (15:07 -0800)]
simplemessenger: Fix num_threads bug printout.
Also add documentation to get_num_threads since its contract
changed significantly.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Colin Patrick McCabe [Wed, 16 Feb 2011 15:15:38 +0000 (07:15 -0800)]
msgr: complain if there are > 1 threads, not 1
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Sage Weil [Wed, 16 Feb 2011 17:19:42 +0000 (09:19 -0800)]
init-ceph: use do_cmd for pid_file dir creation
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 16 Feb 2011 03:32:35 +0000 (19:32 -0800)]
osd: fix population on unconnected_watchers on obc load
Fixes: #807
Signed-off-by: Sage Weil <sage@newdream.net>
Colin Patrick McCabe [Tue, 15 Feb 2011 19:02:03 +0000 (11:02 -0800)]
common: thread: get number of threads from /proc
The kernel knows how many threads we have; just ask it. One less atomic
variable to carry around.
We will eventually have to avoid doing this check for non-daemon code,
but that's a separate issue.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Tue, 15 Feb 2011 17:51:35 +0000 (09:51 -0800)]
Remove ExportControl (we have better auth now)
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Tue, 15 Feb 2011 17:16:35 +0000 (09:16 -0800)]
init-ceph: status: use daemon_is_running
daemon_is_running does some nice things like check /proc/$pid/cmdline.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Tue, 15 Feb 2011 16:39:07 +0000 (08:39 -0800)]
init-ceph: fix status for multi-node clusters
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Samuel Just [Tue, 15 Feb 2011 23:24:16 +0000 (15:24 -0800)]
test/osd: Fix indentation on RadosModel.h and TestSnaps.cc
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Samuel Just [Tue, 15 Feb 2011 21:48:57 +0000 (13:48 -0800)]
testsnaps: add snapshot test
Uses RadosModel.h to check the results of a randomized sequence of
writes, reads, snapshots, snapshot removals, and rollbacks for errors.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Colin Patrick McCabe [Tue, 15 Feb 2011 13:49:50 +0000 (05:49 -0800)]
Merge branch 'dout2'
Greg Farnum [Tue, 15 Feb 2011 17:00:06 +0000 (09:00 -0800)]
Journaler: add some checks for expire_pos.
I don't think these are necessary checks, but the expire_pos >= trim_pos
invariant got broken somehow by johnl, and these checks won't hurt!
Signed-off-by: Greg Farnum <gregf@hq.newdream.net>
Greg Farnum [Tue, 15 Feb 2011 16:58:48 +0000 (08:58 -0800)]
Journaler: call set_layout after init_headers.
set_layout modifies last_committed, but then init_headers
uses operator= and overwrites those changes. In this case
it doesn't matter as they're both writing the same changes,
but make the ordering explicit for the future.
Signed-off-by: Greg Farnum <gregf@hq.newdream.net>
Greg Farnum [Mon, 14 Feb 2011 20:05:05 +0000 (12:05 -0800)]
OSD: ignore osd_max_write_size if it's set to 0.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Colin Patrick McCabe [Mon, 14 Feb 2011 15:31:27 +0000 (07:31 -0800)]
common/lockdep.cc: don't use dout unlocked
Lockdep should use the regular dout() interfaces, rather than going
around them. In particular, we shouldn't output to dout without taking
dout_lock.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Mon, 14 Feb 2011 15:20:57 +0000 (07:20 -0800)]
assert: allow assertions inside calls to dout()
We should handle the situation where we assert() while already holding
the dout() lock. At the same time, we want to get the dout lock if we
can, because it makes the logs look nicer. pthread_mutex_trylock solves
the dilemma.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Mon, 14 Feb 2011 13:56:52 +0000 (05:56 -0800)]
dout: Convert _dout_lock to plain pthread_mutex_t
Convert _dout_lock to plain pthread_mutex_t. This way, we don't have to
depend on the order of global constructor initialization. It should also
be slightly more efficient. The dout_lock was never subject to lockdep
anyway, so that's not an issue.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Mon, 14 Feb 2011 13:47:35 +0000 (05:47 -0800)]
assert.cc: some cleanup
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Mon, 14 Feb 2011 13:47:00 +0000 (05:47 -0800)]
common/debug.h: use std::string rather than string
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Mon, 14 Feb 2011 13:14:36 +0000 (05:14 -0800)]
common: Remove common/tls.cc
Using ELF TLS via the __thread keyword is much faster than using
pthread_getspecific and pthread_setspecific. It's also much nicer
looking syntactically. Finally, the __thread keyword is going to be
standardized in C++0x. So there's no reason to have an infrastructure
dependent on pthread_getspecific.
There were no users so this shouldn't affect anything negatively.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Mon, 14 Feb 2011 12:10:17 +0000 (04:10 -0800)]
dout: use DoutLocker rather than Mutex::Locker
Use DoutLocker rather than Mutex::Locker, in preparation for making the
dout_lock a plain old pthread_mutex_t.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Mon, 14 Feb 2011 12:06:54 +0000 (04:06 -0800)]
os/FileStore: use derr/dendl for dout locking
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Mon, 14 Feb 2011 12:05:47 +0000 (04:05 -0800)]
os/FileStore: use ceph_abort rather than abort
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Mon, 14 Feb 2011 11:30:55 +0000 (03:30 -0800)]
lockdep: balance dout and dendl, fix whitespace
Make lockdep use dendl the same way as the other code. This is in
preparation for making lockdep use normal dout() rather than an unlocked
version.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Greg Farnum [Sun, 13 Feb 2011 22:16:36 +0000 (14:16 -0800)]
Journaler: fix bad assert.
We can call reread_head during normal replay under
certain circumstances. So add the REREAD_HEAD state
as allowed.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Sage Weil [Sat, 12 Feb 2011 21:23:20 +0000 (13:23 -0800)]
testlibrbd: fix printf args
Stupid me!
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Colin Patrick McCabe [Sat, 12 Feb 2011 17:56:03 +0000 (09:56 -0800)]
common: create dout_emergency interface and use it
Create the dout_emergency interface, which is safe to call from a signal
handler or from inside dout itself.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Sage Weil [Sat, 12 Feb 2011 06:57:29 +0000 (22:57 -0800)]
cfuse: use safe_read and check return value
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sat, 12 Feb 2011 07:06:07 +0000 (23:06 -0800)]
testlibrbd: check return values
Stupid printf!
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sat, 12 Feb 2011 06:47:51 +0000 (22:47 -0800)]
debian: add python, python-dev build-deps
Might be overkill? The error I see from pbuilder is
checking for a Python interpreter with version >= 2.4... none
error: configure: in `/tmp/buildd/
ceph-0.24.3-676-gcde53e9 ':
error: configure: Failed to find Python 2.4 or newer
...but I'm guessing python-dev is needed too?
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Fri, 11 Feb 2011 05:09:42 +0000 (21:09 -0800)]
msgr: clean up Pipe::queue_received locking
Ensure we maintain the invariant that a pipe has a non-empty queue IFF
the pipe is queued.
Prompted by #798.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Greg Farnum [Sat, 12 Feb 2011 00:58:18 +0000 (16:58 -0800)]
MDCache: switch CDir::_commit so that it can limit max write size.
This should fix #777.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Greg Farnum [Fri, 11 Feb 2011 23:54:18 +0000 (15:54 -0800)]
MDCache: add max_dir_commit_size.
Configured by setting mds_dir_max_commit_size in conf, or else
by looking at osd_max_write_size. This should lead to sane
max commits even if the user doesn't specify anything.
This will be used in the next commit or to by CDir.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Greg Farnum [Thu, 10 Feb 2011 21:23:44 +0000 (13:23 -0800)]
MDS: Don't always _commit_full just because we have a complete dir.
Instead, commit if a certain percentage of the dentries are dirty.
Configurable via mds_dir_commit_ratio!
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Sage Weil [Fri, 11 Feb 2011 21:29:32 +0000 (13:29 -0800)]
Merge remote branch 'origin/librbd'
Josh Durgin [Fri, 11 Feb 2011 21:21:05 +0000 (13:21 -0800)]
objecter: set linger op target pg when a linger is resent
send_linger always creates a new Op, but op_submit does not fill in
the target pg if an existing session is passed in, so when a linger
was resent, it had the wrong pg set.
This caused a crash in cosd with debugging turned on when running
testlibrbd twice. This occurred because the object context for the
linger in the wrong pg had no object name set.
Colin Patrick McCabe [Fri, 11 Feb 2011 18:58:03 +0000 (10:58 -0800)]
Disable lockdep for ExportControl, ConfFile locks
Currently, we haven't read the configuration at the time we initialize
these locks. So we can't know whether lockdep has been enabled, or what
verbosity it is supposed to have. So just disable it on these locks.
Potentially ExportControl's initialization could be moved to after
g_conf.lockdep and g_conf.debug_lockdep have been read from the
configuration, if lockdep is needed for this component.
ConfFile probably doesn't need a lock at all, but that's another story.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Greg Farnum [Sat, 12 Feb 2011 00:58:18 +0000 (16:58 -0800)]
MDCache: switch CDir::_commit so that it can limit max write size.
This should fix #777.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Greg Farnum [Fri, 11 Feb 2011 23:54:18 +0000 (15:54 -0800)]
MDCache: add max_dir_commit_size.
Configured by setting mds_dir_max_commit_size in conf, or else
by looking at osd_max_write_size. This should lead to sane
max commits even if the user doesn't specify anything.
This will be used in the next commit or to by CDir.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Greg Farnum [Thu, 10 Feb 2011 21:23:44 +0000 (13:23 -0800)]
MDS: Don't always _commit_full just because we have a complete dir.
Instead, commit if a certain percentage of the dentries are dirty.
Configurable via mds_dir_commit_ratio!
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Sage Weil [Fri, 11 Feb 2011 23:38:40 +0000 (15:38 -0800)]
.gitignore: py-compile
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Colin Patrick McCabe [Fri, 11 Feb 2011 15:50:13 +0000 (07:50 -0800)]
Merge branch 'pybind'
Sage Weil [Fri, 11 Feb 2011 22:36:21 +0000 (14:36 -0800)]
librados: include headers in dist tarball
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Josh Durgin [Fri, 11 Feb 2011 21:46:04 +0000 (13:46 -0800)]
ceph.spec.in: add librbd
Tommi Virtanen [Fri, 11 Feb 2011 21:50:42 +0000 (13:50 -0800)]
Make git ignore librbd tests.
Sage Weil [Fri, 11 Feb 2011 21:42:51 +0000 (13:42 -0800)]
ceph: add --concise flag
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Fri, 11 Feb 2011 21:41:56 +0000 (13:41 -0800)]
Merge branch 'stable'
Conflicts:
configure.ac
Sage Weil [Fri, 11 Feb 2011 20:53:49 +0000 (12:53 -0800)]
monclient: fix weirdness when we explicitly start with non-master mon
Fix
$ ./ceph -m 10.0.1.252:6790 health
2011-02-11 12:30:38.132728 mon <- [health]
2011-02-11 12:30:38.133243 mon <- [health]
2011-02-11 12:30:38.133697 mon0 -> 'Access denied' (-13)
when the IP we specify is, e.g., for mon.b.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Colin Patrick McCabe [Fri, 11 Feb 2011 13:58:21 +0000 (05:58 -0800)]
config: Remove g_conf.num_osd, num_mds, num_mon
These configuration options don't serve any use and were confusing.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Tommi Virtanen [Fri, 11 Feb 2011 20:58:06 +0000 (12:58 -0800)]
Make git ignore qa/workunits/direct_io_test.
Colin Patrick McCabe [Fri, 11 Feb 2011 12:03:30 +0000 (04:03 -0800)]
MonitorStore: check for ENOENT, not EEXIST
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Fri, 11 Feb 2011 11:51:05 +0000 (03:51 -0800)]
common: bufferlist::read_file: use safe_read
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Fri, 11 Feb 2011 11:31:31 +0000 (03:31 -0800)]
auth/Crypto.cc: use safe_read_exact
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Fri, 11 Feb 2011 10:55:41 +0000 (02:55 -0800)]
os/FileStore: remove unused variable
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Sage Weil [Thu, 10 Feb 2011 17:14:34 +0000 (09:14 -0800)]
v0.24.3
Colin Patrick McCabe [Tue, 8 Feb 2011 17:38:50 +0000 (09:38 -0800)]
make:add messages/MOSDRepScrub.h to NOINST_HEADERS
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 10 Feb 2011 16:33:47 +0000 (08:33 -0800)]
cephtool: get_indata should use safe_read_exact
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 10 Feb 2011 16:24:43 +0000 (08:24 -0800)]
mon/MonitorStore.cc: use safe_read
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 10 Feb 2011 16:24:25 +0000 (08:24 -0800)]
rados.cc: use fwrite to output data to stdout
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 10 Feb 2011 16:24:08 +0000 (08:24 -0800)]
common/common_init: use safe_read
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 10 Feb 2011 16:23:41 +0000 (08:23 -0800)]
os/FileStore: fix error handling
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Wesley Spikes [Thu, 10 Feb 2011 23:43:30 +0000 (15:43 -0800)]
s3.sh: simple bug fix
Yehuda Sadeh [Thu, 10 Feb 2011 23:41:06 +0000 (15:41 -0800)]
rados: add create op
Colin Patrick McCabe [Thu, 10 Feb 2011 16:00:34 +0000 (08:00 -0800)]
common/DoutStreambuf: use safe_io.h
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 10 Feb 2011 15:09:24 +0000 (07:09 -0800)]
tools/common: use fwrite to write stdout
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 10 Feb 2011 15:08:46 +0000 (07:08 -0800)]
osd: write_meta/read_meta: fix error handling
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 10 Feb 2011 14:44:03 +0000 (06:44 -0800)]
msgr: better error checking for write_pid_file
Use safe_write. Check error code of close.
Fix what looks like a "lack of braces around multi-statement block"
error where we always complain that we're unable to write the pid file,
even if we succeed.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 10 Feb 2011 14:43:35 +0000 (06:43 -0800)]
os/FileStore.cc: use safe_write
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 10 Feb 2011 14:43:10 +0000 (06:43 -0800)]
common/buffer.cc: kill deadcode
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>