]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agorgw: radosgw_admin --help typo
Yehuda Sadeh [Fri, 24 Jun 2011 22:20:46 +0000 (15:20 -0700)]
rgw: radosgw_admin --help typo

14 years agorgw: implement atomic multipart upload, atomic copy
Yehuda Sadeh [Fri, 24 Jun 2011 21:50:01 +0000 (14:50 -0700)]
rgw: implement atomic multipart upload, atomic copy

14 years agorgw: atomic put
Yehuda Sadeh [Fri, 24 Jun 2011 21:09:30 +0000 (14:09 -0700)]
rgw: atomic put

14 years agorgw: radosgw_admin user rm --purge-data
Yehuda Sadeh [Fri, 24 Jun 2011 19:55:25 +0000 (12:55 -0700)]
rgw: radosgw_admin user rm --purge-data

14 years agoconfig: remove unused iat options
Josh Durgin [Mon, 27 Jun 2011 21:57:36 +0000 (14:57 -0700)]
config: remove unused iat options

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agotestceph: actually call closedir on opened directory.
Greg Farnum [Mon, 27 Jun 2011 19:07:36 +0000 (12:07 -0700)]
testceph: actually call closedir on opened directory.

Otherwise testceph hangs because it's still got things open!
Fixes #1228

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoqa: initial commit of file_layout.sh
Greg Farnum [Fri, 24 Jun 2011 01:06:01 +0000 (18:06 -0700)]
qa: initial commit of file_layout.sh

This tests the file layout functionality. Right now you need to
check the comparisons yourself. Expect that to change shortly.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agofiler: no need for tid_t here
Sage Weil [Mon, 27 Jun 2011 18:40:09 +0000 (11:40 -0700)]
filer: no need for tid_t here

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: print cache size during trim for debug
Sage Weil [Mon, 27 Jun 2011 17:10:35 +0000 (10:10 -0700)]
client: print cache size during trim for debug

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoFileStore: fix error in ALIGN and ALIGN_UP
Samuel Just [Sat, 25 Jun 2011 08:22:23 +0000 (01:22 -0700)]
FileStore: fix error in ALIGN and ALIGN_UP

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoradsogw_admin: fix clitest
Sage Weil [Sat, 25 Jun 2011 04:04:38 +0000 (21:04 -0700)]
radsogw_admin: fix clitest

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agotestrados_delete_pool_while_open: fix printf args
Sage Weil [Sat, 25 Jun 2011 03:53:35 +0000 (20:53 -0700)]
testrados_delete_pool_while_open: fix printf args

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoradosgw_admin: --help/-h
Sage Weil [Thu, 23 Jun 2011 03:51:26 +0000 (20:51 -0700)]
radosgw_admin: --help/-h

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agocreate testrados_delete_pool_while_open
Colin Patrick McCabe [Sat, 25 Jun 2011 00:18:16 +0000 (17:18 -0700)]
create testrados_delete_pool_while_open

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoclient: fix trim_caps
Sage Weil [Fri, 24 Jun 2011 18:19:48 +0000 (11:19 -0700)]
client: fix trim_caps

We can't blindly remove caps from inodes because we need at least one cap
for any inode in our cache.  Try to trim non-essential caps (when there's
>1), otherwise try to drop referring dentries and indirectly release caps
that way.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: fix mds touch
Sage Weil [Fri, 24 Jun 2011 17:51:36 +0000 (10:51 -0700)]
client: fix mds touch

14 years agoclient: prefer auth cap in caps_issued_mask()
Sage Weil [Fri, 24 Jun 2011 17:46:32 +0000 (10:46 -0700)]
client: prefer auth cap in caps_issued_mask()

If we have an auth cap, prefer to touch that one.  This helps consolidate
caps on a single mds and allows mds replicas to eventually recall their
state.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: touch cap on lookup even if we use the dentry lease
Sage Weil [Fri, 24 Jun 2011 17:45:46 +0000 (10:45 -0700)]
client: touch cap on lookup even if we use the dentry lease

Touch the dir cap for the lease's mds even if we use the lease to traverse.
This makes the trim_caps() behave better because it keeps the dentry and
session cap LRUs in sync.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: touch dentries during path traversal
Sage Weil [Fri, 24 Jun 2011 17:38:50 +0000 (10:38 -0700)]
client: touch dentries during path traversal

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agotestrados: add NUM_THREADS
Colin Patrick McCabe [Fri, 24 Jun 2011 23:37:50 +0000 (16:37 -0700)]
testrados: add NUM_THREADS

We can now test librados access with multiple simultaneous threads from
a single process.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years ago.gitignore: update for test_libceph_build
Josh Durgin [Fri, 24 Jun 2011 23:41:54 +0000 (16:41 -0700)]
.gitignore: update for test_libceph_build

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agoglobal_init: make global_init_set_globals static
Colin Patrick McCabe [Fri, 24 Jun 2011 21:30:36 +0000 (14:30 -0700)]
global_init: make global_init_set_globals static

Now that the libraries have been de-globalized, this funtion should only
be used by global_init itself.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoCephFSInterface: de-globalize
Colin Patrick McCabe [Fri, 24 Jun 2011 20:24:10 +0000 (13:24 -0700)]
CephFSInterface: de-globalize

CephFSInterface: de-globalize

liceph: add ceph_get_mount_context

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoFix C_NotifyComplete::notify
Colin Patrick McCabe [Fri, 24 Jun 2011 18:55:13 +0000 (11:55 -0700)]
Fix C_NotifyComplete::notify

C_NotifyComplete::notify was broken in an earlier change where I removed
a derr() without removing the if statement before it.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocleanup
Sage Weil [Thu, 23 Jun 2011 23:08:08 +0000 (16:08 -0700)]
cleanup

14 years agomon: order degraded before unfound
Sage Weil [Thu, 23 Jun 2011 23:00:38 +0000 (16:00 -0700)]
mon: order degraded before unfound

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: clean up pool/pg_stat_t structs slightly
Sage Weil [Thu, 23 Jun 2011 23:00:19 +0000 (16:00 -0700)]
osd: clean up pool/pg_stat_t structs slightly

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoFileStore: ensure that CLONE_RANGE ranges are aligned
Samuel Just [Thu, 23 Jun 2011 18:13:40 +0000 (11:13 -0700)]
FileStore: ensure that CLONE_RANGE ranges are aligned

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoPG: assemble_backlog - fix comparison error, tail is non-inclusive
Samuel Just [Wed, 22 Jun 2011 00:49:24 +0000 (17:49 -0700)]
PG: assemble_backlog - fix comparison error, tail is non-inclusive

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoReplicatedPG: make sure that rollback target is not degraded
Samuel Just [Fri, 24 Jun 2011 18:03:34 +0000 (11:03 -0700)]
ReplicatedPG: make sure that rollback target is not degraded

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoReplicatedPG,OSD: clone srces need to be non-degraded
Samuel Just [Fri, 24 Jun 2011 18:03:01 +0000 (11:03 -0700)]
ReplicatedPG,OSD: clone srces need to be non-degraded

do_op: check that clone_range src sobjects are present on
replicas as well.  Also, clean up src_obc map if we encounter an error
before returning.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agolibceph: build without globals
Colin Patrick McCabe [Fri, 24 Jun 2011 17:44:28 +0000 (10:44 -0700)]
libceph: build without globals

libceph, libosdc, libclient: depend on libcommon rather than libglobal.
No more globals in libceph.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibceph: de-globalize
Colin Patrick McCabe [Thu, 23 Jun 2011 22:51:39 +0000 (15:51 -0700)]
libceph: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agofilestore: remove warning
Yehuda Sadeh [Fri, 24 Jun 2011 17:44:54 +0000 (10:44 -0700)]
filestore: remove warning

14 years agoFiler, Journaler: deglobalize
Colin Patrick McCabe [Fri, 24 Jun 2011 17:32:35 +0000 (10:32 -0700)]
Filer, Journaler: deglobalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoObjectCacher.cc: de-globalize
Colin Patrick McCabe [Fri, 24 Jun 2011 00:25:27 +0000 (17:25 -0700)]
ObjectCacher.cc: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: restructure permissions verification
Yehuda Sadeh [Fri, 24 Jun 2011 00:04:47 +0000 (17:04 -0700)]
rgw: restructure permissions verification

apparently 100-continue was broken

14 years agofilestore: don't bother doing fiemap on small ranges
Yehuda Sadeh [Thu, 23 Jun 2011 22:11:16 +0000 (15:11 -0700)]
filestore: don't bother doing fiemap on small ranges

14 years agoMerge remote branch 'origin/osd_metrics'
Sage Weil [Thu, 23 Jun 2011 23:27:29 +0000 (16:27 -0700)]
Merge remote branch 'origin/osd_metrics'

14 years agoupdate .gitignore
Sage Weil [Thu, 23 Jun 2011 23:26:16 +0000 (16:26 -0700)]
update .gitignore

14 years agoclient/Client.cc: deglobalize
Colin Patrick McCabe [Thu, 23 Jun 2011 23:16:40 +0000 (16:16 -0700)]
client/Client.cc: deglobalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoqa: wget -q for kenrel_untar_build.sh
Sage Weil [Thu, 23 Jun 2011 22:55:58 +0000 (15:55 -0700)]
qa: wget -q for kenrel_untar_build.sh

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agolibrgw: eliminate globals
Colin Patrick McCabe [Thu, 23 Jun 2011 22:26:08 +0000 (15:26 -0700)]
librgw: eliminate globals

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoupdate .gitignore
Sage Weil [Thu, 23 Jun 2011 22:46:13 +0000 (15:46 -0700)]
update .gitignore

14 years agolibrados, librbd, librgw: remove dep on libglobal
Colin Patrick McCabe [Thu, 23 Jun 2011 21:06:20 +0000 (14:06 -0700)]
librados, librbd, librgw: remove dep on libglobal

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosd: reorder, cleanup prologger metrics
Sage Weil [Thu, 23 Jun 2011 22:03:29 +0000 (15:03 -0700)]
osd: reorder, cleanup prologger metrics

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: rip out old peer stat sharing
Sage Weil [Thu, 23 Jun 2011 21:57:07 +0000 (14:57 -0700)]
osd: rip out old peer stat sharing

This never really worked, and has bitrotted, and the stats it's calculating
are mostly redundant anyway.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: rename peer_stat_lock -> stat_lock
Sage Weil [Thu, 23 Jun 2011 21:39:10 +0000 (14:39 -0700)]
osd: rename peer_stat_lock -> stat_lock

It protects osd_stat too.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: instrument osdmap updates
Sage Weil [Thu, 23 Jun 2011 21:36:07 +0000 (14:36 -0700)]
osd: instrument osdmap updates

Messages, epochs, dup epochs.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: clean up numpg*, hb*
Sage Weil [Thu, 23 Jun 2011 21:32:52 +0000 (14:32 -0700)]
osd: clean up numpg*, hb*

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: instrument readable latency too
Sage Weil [Thu, 23 Jun 2011 21:26:34 +0000 (14:26 -0700)]
osd: instrument readable latency too

Time before a write is readable (not necessarily on disk).  Note that if we
get the commit first (e.g. writeahead journal) this value isn't calculated
or logged.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: remove lame rlsum/num
Sage Weil [Thu, 23 Jun 2011 20:45:02 +0000 (13:45 -0700)]
osd: remove lame rlsum/num

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: fix loadavg check
Sage Weil [Thu, 23 Jun 2011 20:44:10 +0000 (13:44 -0700)]
osd: fix loadavg check

Use the syscall, stupid.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: instrument pushes, pull requests
Sage Weil [Thu, 23 Jun 2011 20:39:11 +0000 (13:39 -0700)]
osd: instrument pushes, pull requests

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: add sub_op instrumentation
Sage Weil [Thu, 23 Jun 2011 20:34:53 +0000 (13:34 -0700)]
osd: add sub_op instrumentation

pull subop
push subop

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: fix up log_op_stats to actually work
Sage Weil [Thu, 23 Jun 2011 20:32:59 +0000 (13:32 -0700)]
osd: fix up log_op_stats to actually work

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: rename push applied, committed completions
Sage Weil [Thu, 23 Jun 2011 19:53:49 +0000 (12:53 -0700)]
osd: rename push applied, committed completions

Be consistent.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: clean up client op stats
Sage Weil [Thu, 23 Jun 2011 18:12:43 +0000 (11:12 -0700)]
osd: clean up client op stats

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: fix compilation
Yehuda Sadeh [Thu, 23 Jun 2011 20:32:22 +0000 (13:32 -0700)]
osd: fix compilation

14 years agoRevert "osd: make it compile on older boost libraries"
Yehuda Sadeh [Thu, 23 Jun 2011 21:25:02 +0000 (14:25 -0700)]
Revert "osd: make it compile on older boost libraries"

This reverts commit 116241ef106e6a88a84482f7f0f21219a6d29e33.

14 years agotest_ceph_argparse: fix build
Colin Patrick McCabe [Thu, 23 Jun 2011 20:45:13 +0000 (13:45 -0700)]
test_ceph_argparse: fix build

When this was merged, libcommon.a was not changed to libcommon.la

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agopush global_init_set_globals into preinit callers
Colin Patrick McCabe [Thu, 23 Jun 2011 20:31:50 +0000 (13:31 -0700)]
push global_init_set_globals into preinit callers

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosd: make it compile on older boost libraries
Yehuda Sadeh [Thu, 23 Jun 2011 20:32:22 +0000 (13:32 -0700)]
osd: make it compile on older boost libraries

14 years agoMerge branch 'next'
Sage Weil [Thu, 23 Jun 2011 20:24:35 +0000 (13:24 -0700)]
Merge branch 'next'

Conflicts:
src/librbd.cc

14 years agoMerge remote branch 'origin/stable' into next
Sage Weil [Thu, 23 Jun 2011 20:16:29 +0000 (13:16 -0700)]
Merge remote branch 'origin/stable' into next

Conflicts:
src/librbd.cc

14 years agocreate test_librados_build
Colin Patrick McCabe [Thu, 23 Jun 2011 17:38:06 +0000 (10:38 -0700)]
create test_librados_build

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados: fix end_block calculation for aio_read
Yehuda Sadeh [Thu, 23 Jun 2011 00:13:22 +0000 (17:13 -0700)]
librados: fix end_block calculation for aio_read

Conflicts:

src/librbd.cc

14 years agolibrados: fix end_block calculation for aio_read
Yehuda Sadeh [Thu, 23 Jun 2011 00:13:22 +0000 (17:13 -0700)]
librados: fix end_block calculation for aio_read

Conflicts:

src/librbd.cc

14 years agolibrbd: track block_ofs instead of ofs in aio_sparse_read callback
Yehuda Sadeh [Wed, 22 Jun 2011 19:37:24 +0000 (12:37 -0700)]
librbd: track block_ofs instead of ofs in aio_sparse_read callback

14 years agoAdd ceph_argparse unit test
Colin Patrick McCabe [Thu, 23 Jun 2011 18:13:49 +0000 (11:13 -0700)]
Add ceph_argparse unit test

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoceph_argparse_witharg: fix dashes in args
Colin Patrick McCabe [Thu, 23 Jun 2011 17:45:54 +0000 (10:45 -0700)]
ceph_argparse_witharg: fix dashes in args

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocommon/Throttle: Remove unused return type on Throttle::get()
Jim Schutt [Wed, 22 Jun 2011 18:26:25 +0000 (12:26 -0600)]
common/Throttle: Remove unused return type on Throttle::get()

Signed-off-by: Jim Schutt <jaschut@sandia.gov>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agolibceph: delogbalize, again
Colin Patrick McCabe [Thu, 23 Jun 2011 17:11:07 +0000 (10:11 -0700)]
libceph: delogbalize, again

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMakefile: add missing common/dout.h header to dist tarball
Sage Weil [Thu, 23 Jun 2011 16:54:37 +0000 (09:54 -0700)]
Makefile: add missing common/dout.h header to dist tarball

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agolibrados: fix end_block calculation for aio_read
Yehuda Sadeh [Thu, 23 Jun 2011 00:13:22 +0000 (17:13 -0700)]
librados: fix end_block calculation for aio_read

14 years agoproflogger: only register one event for all loggers
Sage Weil [Wed, 22 Jun 2011 23:39:45 +0000 (16:39 -0700)]
proflogger: only register one event for all loggers

If we already did logger_start(), don't schedule a new event.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agolibrados: deglobalize, again
Colin Patrick McCabe [Wed, 22 Jun 2011 23:03:57 +0000 (16:03 -0700)]
librados: deglobalize, again

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoOSDMap: kill some deadcode, deglobalize
Colin Patrick McCabe [Wed, 22 Jun 2011 23:03:19 +0000 (16:03 -0700)]
OSDMap: kill some deadcode, deglobalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrados: deglobalize
Colin Patrick McCabe [Wed, 22 Jun 2011 22:19:37 +0000 (15:19 -0700)]
librados: deglobalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAnchorServer: fix return values in add().
Greg Farnum [Wed, 22 Jun 2011 23:41:09 +0000 (16:41 -0700)]
AnchorServer: fix return values in add().

I accidentally didn't set the return value in my new branch. (Not
that they're read anywhere.) While I'm at it, document what they mean.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agouclient: change snaprealm refcounting to erase at 0 refs.
Greg Farnum [Wed, 22 Jun 2011 22:06:57 +0000 (15:06 -0700)]
uclient: change snaprealm refcounting to erase at 0 refs.

This is more idiomatic and less confusing than having 0 refs be
still alive, and -1 be the point of destruction.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomount.ceph, rbd: Output errors to stderr, not stdout.
Tommi Virtanen [Wed, 22 Jun 2011 19:52:44 +0000 (12:52 -0700)]
mount.ceph, rbd: Output errors to stderr, not stdout.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agomount.ceph, errno: Avoid printing binary, clarify message.
Tommi Virtanen [Wed, 22 Jun 2011 19:48:51 +0000 (12:48 -0700)]
mount.ceph, errno: Avoid printing binary, clarify message.

Payload is a binary key, printing it to stdout is not helpful.

Key name is often "client", make the message easier to understand.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agomount.ceph, rbd: Avoid clobbering errno with printf and strerror calls.
Tommi Virtanen [Wed, 22 Jun 2011 19:47:34 +0000 (12:47 -0700)]
mount.ceph, rbd: Avoid clobbering errno with printf and strerror calls.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agorun-cli-tests: Pass through CCACHE_DIR and such env vars.
Tommi Virtanen [Wed, 22 Jun 2011 22:23:14 +0000 (15:23 -0700)]
run-cli-tests: Pass through CCACHE_DIR and such env vars.

Commit 7cd50f29d5cbf8deb64d00318b39c281119c0e03 makes the binaries
use libtool's "executable wrappers", which will transparently relink
the executables if they think that's needed. The test for that is
somewhat flawed: if the mtimes match, the binary might or might not
get relinked. In practise, this causes relinks on gitbuilder all the
time.

As of earlier commit 5a0bc6b78f2e40ec9255a1ea49f77ef9ea4690a6, we
started sanitizing the environment passed to the clitests. This meant
we also stripped away CCACHE_DIR and other settings, needed to
properly relink the binaries. Re-add CCACHE_DIR, CC, CXX to clitests
environment.

To handle the case where CCACHE_DIR etc are not set in the first
place, we need an extra wrapper script. Otherwise, ccache might see an
empty string as the env value, and naturally couldn't access a
directory by that name.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoRemove "#include debug.h" from config.h
Colin Patrick McCabe [Wed, 22 Jun 2011 20:42:28 +0000 (13:42 -0700)]
Remove "#include debug.h" from config.h

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibrbd: Remove derr uses
Colin Patrick McCabe [Wed, 22 Jun 2011 21:41:00 +0000 (14:41 -0700)]
librbd: Remove derr uses

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge branch 'next'
Sage Weil [Wed, 22 Jun 2011 20:58:38 +0000 (13:58 -0700)]
Merge branch 'next'

Conflicts:
src/librbd.cc

14 years agoclient: always use get_snap_context() accessor
Sage Weil [Wed, 22 Jun 2011 19:45:35 +0000 (12:45 -0700)]
client: always use get_snap_context() accessor

There were a few places where we were using the member directly and not the
accessor, which rebuilds the internal value when needed.  This caused
inconsistent behavior based on whether debugging was enabled or not, since
we used the accessor to print the regenerated value.

Passes all snaps workunits with debugging off.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agolibrbd.cc: de-globalize
Colin Patrick McCabe [Wed, 22 Jun 2011 20:38:06 +0000 (13:38 -0700)]
librbd.cc: de-globalize

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAnchorServer: overwrite old Anchor backpointers when proper.
Greg Farnum [Tue, 21 Jun 2011 00:55:54 +0000 (17:55 -0700)]
AnchorServer: overwrite old Anchor backpointers when proper.

Sometimes when we do an AnchorTable update, it's because the inode
in question got moved. However, if the inode had multiple references,
its Anchor wasn't removed by decrementing its count, and so the add
function simply noted that it already had the Anchor and returned.

This obviously wasn't the proper behavior in cases where the inode
was getting moved -- we want to update its back pointer! So do so.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agouclient: Update statfs to match the kernel client and its block sizing.
Greg Farnum [Mon, 20 Jun 2011 19:17:24 +0000 (12:17 -0700)]
uclient: Update statfs to match the kernel client and its block sizing.

Make it better match the kernel client, and its scheme to use a large
block size so we don't overflow 32-bit systems. This isn't presently
a serious concern since FUSE doesn't work on 32-bit systems anyway,
but the output of df should match even so.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agouclient: fix flush_caps(Inode*,int)
Greg Farnum [Fri, 17 Jun 2011 18:52:13 +0000 (11:52 -0700)]
uclient: fix flush_caps(Inode*,int)

This function was just broken before. You need to be setting
flushing_cap_tids for the caps you're actually flushing, which
in this case is in->dirty_caps, not the horribly-named "flush"
variable.
Also, rename "flush" to "retain" since that's what it actually is!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agouclient: only change the auth_cap if the mseq is newer
Greg Farnum [Fri, 17 Jun 2011 18:08:26 +0000 (11:08 -0700)]
uclient: only change the auth_cap if the mseq is newer

Previously we just trusted the MDS' reported auth status, which meant
that even if the MDS was always right it could encode the stat while
auth, then export, and then have us decode the stat after getting
an IMPORT and set the auth cap right back!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: Include the pinner in nested auth pin debugging output.
Greg Farnum [Thu, 16 Jun 2011 21:33:15 +0000 (14:33 -0700)]
mds: Include the pinner in nested auth pin debugging output.

This will make identifying stuck pins a lot easier.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agolibrbd: track block_ofs instead of ofs in aio_sparse_read callback
Yehuda Sadeh [Wed, 22 Jun 2011 19:37:24 +0000 (12:37 -0700)]
librbd: track block_ofs instead of ofs in aio_sparse_read callback

14 years agoRevert "debian: ceph-client-tools depends on librados2, librbd"
Sage Weil [Wed, 22 Jun 2011 18:04:22 +0000 (11:04 -0700)]
Revert "debian: ceph-client-tools depends on librados2, librbd"

This reverts commit 96ef8a67bcf4a4a43f0a5c38224314abdd88a12c.

14 years agolibrbd: fix read_iterate for the case where block ofs is not 0
Yehuda Sadeh [Wed, 22 Jun 2011 17:51:18 +0000 (10:51 -0700)]
librbd: fix read_iterate for the case where block ofs is not 0

Conflicts:

src/librbd.cc

14 years agolibrbd: fix read_iterate for the case where block ofs is not 0
Yehuda Sadeh [Wed, 22 Jun 2011 17:51:18 +0000 (10:51 -0700)]
librbd: fix read_iterate for the case where block ofs is not 0

14 years agoMerge remote branch 'origin/stable' into next
Sage Weil [Wed, 22 Jun 2011 17:09:48 +0000 (10:09 -0700)]
Merge remote branch 'origin/stable' into next

Conflicts:
src/librbd.cc