]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Sage Weil [Sun, 21 Aug 2011 21:03:49 +0000 (14:03 -0700)]
addr_parsing: use strncpy
Coverity cid 43
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sun, 21 Aug 2011 21:03:00 +0000 (14:03 -0700)]
addr_parsing: avoid strcpy
Make coverity shut up.
Coverity cid 44
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sun, 21 Aug 2011 21:00:56 +0000 (14:00 -0700)]
mount: fix path leak
canonicalize_path() does not free/touch it's argument; no need to strdup()
here.
Coverity cid 39
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sun, 21 Aug 2011 20:56:38 +0000 (13:56 -0700)]
mount: avoid unguarded strcpy
Use strdup here, mostly to make coverity shut up.
Coverity cid 45
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sun, 21 Aug 2011 20:52:37 +0000 (13:52 -0700)]
test_ioctls: reduce stack use
Coverity cid 51
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sun, 21 Aug 2011 20:51:55 +0000 (13:51 -0700)]
formatter: less big buffer for dump format string
Coverity cid 53
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sun, 21 Aug 2011 20:50:45 +0000 (13:50 -0700)]
mount: avoid big stack item
Coverity cid 54
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sun, 21 Aug 2011 20:49:10 +0000 (13:49 -0700)]
mount: avoid big stack item
Coverity cid 55
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sun, 21 Aug 2011 04:05:47 +0000 (21:05 -0700)]
testlibrbd: add missing va_end()
Coverity cid 57, 58
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Yehuda Sadeh [Sun, 21 Aug 2011 06:32:12 +0000 (23:32 -0700)]
rgw: remove redundant line
Sage Weil [Sun, 21 Aug 2011 03:42:30 +0000 (20:42 -0700)]
mds: do not complain/assert about stray inode rstat/fragstat consistency
We instantiate the stray dirfrags without reading the fragstat off of disk
because it's faster, we know the dentry is unique, and we don't care about
the stats. It can lead to inconsistency between the dirfrag frag/rstat
and the inodes, though. Silently clean it up when we hit it; that's
simpler than not maintaining it at all for those directories.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sat, 20 Aug 2011 22:04:55 +0000 (15:04 -0700)]
paxos: fix store_state
Stop if we empty out the map completely.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sat, 20 Aug 2011 16:56:49 +0000 (09:56 -0700)]
monclient: be less chatty about stray messages
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sat, 20 Aug 2011 14:31:54 +0000 (07:31 -0700)]
debian: librbd headers require librados headers
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Yehuda Sadeh [Sat, 20 Aug 2011 06:40:40 +0000 (23:40 -0700)]
scratchtool: not a test suite
Yehuda Sadeh [Sat, 20 Aug 2011 06:36:51 +0000 (23:36 -0700)]
Revert "Remove old rados tests"
This reverts commit
665fd8214d4f8fa54a675c2998b22613424a6cb3 .
Conflicts:
src/testradospp.cc
Yehuda Sadeh [Sat, 20 Aug 2011 06:32:36 +0000 (23:32 -0700)]
osd: fix compilation
Sage Weil [Sat, 20 Aug 2011 03:37:33 +0000 (20:37 -0700)]
osd: call incorrect osdmap addrs errors
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Yehuda Sadeh [Sat, 20 Aug 2011 00:33:27 +0000 (17:33 -0700)]
rgw: fail operation when trying to clone to the same shadow
not necessary to recreate the same shadow, and also provides mutual
exclusion
Sage Weil [Fri, 19 Aug 2011 23:16:26 +0000 (16:16 -0700)]
mds: xlocker_caps are supplemental to caps
Like loner_caps, xlocker_caps are additional caps to the any caps.
In practical terms, this only affects (currently) the LOCK_XLOCKDONE state
for the filelock, where it's less work than making sure what is in the any
column is also |'d onto the xlocker column. Easier to read :)
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 19 Aug 2011 23:15:06 +0000 (16:15 -0700)]
mds: only client hold xlock in xlockdone can change lock state
If we are in xlockdone, only the client holding that xlock can adjus the
lock state (e.g., relock). Other clients have to wait until the xlock
cycle unwinds completely.
Fixes: #1417
Signed-off-by: Sage Weil <sage@newdream.net>
Yehuda Sadeh [Fri, 19 Aug 2011 23:20:55 +0000 (16:20 -0700)]
rgw: fix prepare_atomic_for_write
Sage Weil [Fri, 19 Aug 2011 20:53:06 +0000 (13:53 -0700)]
mds: update truncate_pending on O_TRUNC; pass old_size on O_TRUNC open
We were missing truncate_pending++ in O_TRUNC path. Use a common helper.
Pass old_size on O_TRUNC open. (This was the real bug we worked around in
79db9fc509933429f4a8f4aca6d3da5517c43d1f .)
Only do an actual truncate if old_size > 0.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Fri, 19 Aug 2011 20:07:42 +0000 (13:07 -0700)]
rados-api: fix #include order
Fixes conflict with linux types on fatty.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 19 Aug 2011 20:05:42 +0000 (13:05 -0700)]
cconf: fix clitest
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 19 Aug 2011 19:50:11 +0000 (12:50 -0700)]
cconf: --filter-key and --filter-key-value
Filter out section list to sections that define a given key or that
set a key to a given value.
This is useful to, for example, filter out sections mapped to the current
host.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 19 Aug 2011 19:51:00 +0000 (12:51 -0700)]
mds: fix LOCK_LOCK_XLOCK lock state name/string
Signed-off-by: Sage Weil <sage@newdream.net>
Yehuda Sadeh [Fri, 19 Aug 2011 19:56:38 +0000 (12:56 -0700)]
rgw: add missing cache locking
this was overlooked when switch to the multithreaded configuration
Yehuda Sadeh [Fri, 19 Aug 2011 19:33:08 +0000 (12:33 -0700)]
rgw: was missing return value
Yehuda Sadeh [Fri, 19 Aug 2011 19:27:43 +0000 (12:27 -0700)]
rgw: some more race fixes
Colin Patrick McCabe [Fri, 19 Aug 2011 16:51:04 +0000 (09:51 -0700)]
test/rados-api/misc.cc: update tests after API change
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Sage Weil [Fri, 19 Aug 2011 16:49:16 +0000 (09:49 -0700)]
monitorstore: drop unused sync value
This is inherently unsafe, because we write to a final filename without
ensuring the data is on disk.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 19 Aug 2011 16:47:29 +0000 (09:47 -0700)]
paxos: use MonitorStore::put_bl_sn_map() to commit batches of values
This allows us to (safely) do fsync vs sync optimizations. The old code
would write values to the final names and then sync(2), but a crash in
between could leave 0-length (non-temporary) files and crash.
Fixes: #1414
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 19 Aug 2011 16:46:14 +0000 (09:46 -0700)]
monitorstore: implement put_bl_sn_map
This will commit a big batch of values safely. We push it down into
MonitorStore so we can avoid an fsync(2) per file.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 19 Aug 2011 16:15:56 +0000 (09:15 -0700)]
mon: whitespace
Signed-off-by: Sage Weil <sage@newdream.net>
Greg Farnum [Fri, 19 Aug 2011 16:15:42 +0000 (09:15 -0700)]
atomic_t: update spinlock implementation.
Somebody added a 'set' function without adding the non-atomic_ops
version!
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Yehuda Sadeh [Fri, 19 Aug 2011 06:35:25 +0000 (23:35 -0700)]
rgw: reread obj meta on racing write operation
Samuel Just [Fri, 19 Aug 2011 01:15:53 +0000 (18:15 -0700)]
ReplicatedPG: Don't crash when a clone is missing
Print an error rather than crashing when _scrub finds a missing
clone.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Greg Farnum [Thu, 18 Aug 2011 18:23:42 +0000 (11:23 -0700)]
file_layout.sh: add test for setting a new data pool
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Colin Patrick McCabe [Fri, 19 Aug 2011 00:00:38 +0000 (17:00 -0700)]
Merge branch 'wip-librados-tests'
Conflicts:
src/include/rados/librados.hpp
src/librados.cc
src/rgw/rgw_rados.cc
src/testradospp.cc
Colin Patrick McCabe [Thu, 18 Aug 2011 23:34:48 +0000 (16:34 -0700)]
Remove old rados tests
These tests have been supplanted by the rados-api gtests.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Yehuda Sadeh [Thu, 18 Aug 2011 23:33:18 +0000 (16:33 -0700)]
rgw: fix locator for shadow objects
Sage Weil [Thu, 18 Aug 2011 22:15:13 +0000 (15:15 -0700)]
mds: share max_size on any client_range adjustment
We were missing this on open + O_CREAT (now triggered by cfuse), on open +
O_TRUNC, and on mknod.
Signed-off-by: Sage Weil <sage@newdream.net>
Colin Patrick McCabe [Thu, 18 Aug 2011 22:06:54 +0000 (15:06 -0700)]
add WatchNotifyTimeoutTestPP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Yehuda Sadeh [Thu, 18 Aug 2011 22:06:32 +0000 (15:06 -0700)]
rgw: fix a double free in GetObj
Colin Patrick McCabe [Thu, 18 Aug 2011 19:55:12 +0000 (12:55 -0700)]
test/rados-api/misc.cc: test CloneRange
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 18 Aug 2011 19:41:10 +0000 (12:41 -0700)]
test/rados-api/misc.cc: test CloneRangePP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 18 Aug 2011 19:32:08 +0000 (12:32 -0700)]
test/rados-api/misc.cc: test AioOperatePP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Sage Weil [Thu, 18 Aug 2011 18:16:51 +0000 (11:16 -0700)]
osd: fix _activate_committed() crash
Do not dereference acting[0] unless we know it is still valid.
Take a reference when scheduling the transaction, and drop it in the
completion, to ensure that the PG isn't removed out from underneath us.
Fixes: #1379
Signed-off-by: Sage Weil <sage@newdream.net>
Colin Patrick McCabe [Thu, 18 Aug 2011 18:15:37 +0000 (11:15 -0700)]
test/rados-api/misc.cc: test Operate2PP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 18 Aug 2011 18:08:10 +0000 (11:08 -0700)]
Operate1PP: test CEPH_OSD_CMPXATTR_OP_EQ
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Sage Weil [Thu, 18 Aug 2011 17:07:12 +0000 (10:07 -0700)]
compatset: dump json
Signed-off-by: Sage Weil <sage@newdream.net>
Colin Patrick McCabe [Thu, 18 Aug 2011 17:03:02 +0000 (10:03 -0700)]
librados: remove unused operate param
The last parameter of operate, aio_operate was unused and unchecked.
Remove it.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Sage Weil [Mon, 15 Aug 2011 20:14:15 +0000 (13:14 -0700)]
uninline a bunch of buffer.h stuff
Sage Weil [Mon, 15 Aug 2011 20:14:07 +0000 (13:14 -0700)]
uninline osd types
Sage Weil [Thu, 18 Aug 2011 01:37:55 +0000 (18:37 -0700)]
mds: add debug_mds_locker
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Wed, 17 Aug 2011 23:16:01 +0000 (16:16 -0700)]
librbd: rbd_list: return buffer size, not element count
Fixes: #1397
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 17 Aug 2011 23:53:28 +0000 (16:53 -0700)]
mon: add/remove data_pg_pools from mdsmap
Signed-off-by: Sage Weil <sage@newdream.net>
Samuel Just [Wed, 17 Aug 2011 23:24:07 +0000 (16:24 -0700)]
PG: last_warm_restart must be set to the current epoch
Previously, last_warm_restart did not get set until the
first time the pg was restarted.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Sage Weil [Wed, 17 Aug 2011 23:12:14 +0000 (16:12 -0700)]
mds: explain weird encoding
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 17 Aug 2011 22:53:22 +0000 (15:53 -0700)]
mds: whitespace
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 17 Aug 2011 22:47:55 +0000 (15:47 -0700)]
mds: drop unused projected dirfrag_t arg for EMetaBlob::add_primary_dentry
Not used. If it is later, we need to project it properly.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 17 Aug 2011 22:43:21 +0000 (15:43 -0700)]
mds: drop unused snapbl arg
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 17 Aug 2011 22:40:47 +0000 (15:40 -0700)]
mds: avoid explicit passing of projected_xattrs
No need to pass this in explicitly; we can look in the projected inode for
it. This actually fixes a race where a journaled inode following a
setxattr will not journal the projected xattrs.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 17 Aug 2011 22:36:06 +0000 (15:36 -0700)]
mds: avoid passing snapbl around explicitly
We now properly track projected snaprealm/sr_t's. Use that for journaling
instead of manually passing around a snapbl.
Signed-off-by: Sage Weil <sage@newdream.net>
Colin Patrick McCabe [Wed, 17 Aug 2011 22:40:33 +0000 (15:40 -0700)]
test/rados-api/misc.cc: test Operate1PP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Sage Weil [Wed, 17 Aug 2011 22:33:28 +0000 (15:33 -0700)]
mds: use snaprealm projection for MDCache::snaprealm_create()
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 17 Aug 2011 22:33:11 +0000 (15:33 -0700)]
mds: simplify sr_t journaling
Drop encode/decode in SnapRealm and encode the sr_t's directly. This way
the caller says what they mean (current or projected).
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 17 Aug 2011 22:32:02 +0000 (15:32 -0700)]
mds: journal inode on mksnap
We were cowing but not journaling a simply-dirty inode. Der.
Fixes: #1389
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 17 Aug 2011 21:11:15 +0000 (14:11 -0700)]
mds: handle O_TRUNC when size is already 0
We always want to go through the truncation path. Two reasons:
- even if the size is already 0, we still need to update ctime/mtime
- we may not have the correct size (client could have dirty data), in
which case we still want to bump truncate_seq etc.
Basically, we can't trust pi->size here because we are holding a wrlock,
not an xlock. And that's fine, since we need to update the inode
unconditionally anyway.
This broke cfuse pjd open/00.t tests when we added the fuse option
atomic_o_trunc. libceph has always been broken in this regard.
Fixes: #1393
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 17 Aug 2011 21:00:08 +0000 (14:00 -0700)]
client: send O_TRUNC open requests to MDS
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 17 Aug 2011 20:59:57 +0000 (13:59 -0700)]
client: move Inode operator<<
Signed-off-by: Sage Weil <sage@newdream.net>
Colin Patrick McCabe [Wed, 17 Aug 2011 20:52:14 +0000 (13:52 -0700)]
Test rados_exec, C and C++ version
* Test rados_exec, C and C++ version
* add test_exec action
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 17 Aug 2011 20:18:05 +0000 (13:18 -0700)]
test/rados-api/misc.cc: test tmap_update
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Sage Weil [Wed, 17 Aug 2011 19:56:09 +0000 (12:56 -0700)]
rbd: remove dup 'rm' command from man page
Fixes: #1395
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 17 Aug 2011 19:53:00 +0000 (12:53 -0700)]
cfuse: take out accidental bad channel add
This was a brainstorm that snuck into last commit, grr.
Signed-off-by: Sage Weil <sage@newdream.net>
Yehuda Sadeh [Wed, 17 Aug 2011 19:55:50 +0000 (12:55 -0700)]
rgw: fix virtual bucket name handling
Colin Patrick McCabe [Wed, 17 Aug 2011 19:41:15 +0000 (12:41 -0700)]
qa/workunits/rados/test.sh:explicitly invoke tests
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 17 Aug 2011 19:35:39 +0000 (12:35 -0700)]
Add qa/workunits/rados/test.sh
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Sage Weil [Wed, 17 Aug 2011 19:07:12 +0000 (12:07 -0700)]
cfuse: make use of fuse invalidate callback optional (and off by default)
This is hitting a deadlock in fuse itself (or so it appears). Disable it
until that's sorted out.
Signed-off-by: Sage Weil <sage@newdream.net>
Yehuda Sadeh [Wed, 17 Aug 2011 19:16:37 +0000 (12:16 -0700)]
formatter: remove bad asserts
Yehuda Sadeh [Wed, 17 Aug 2011 18:42:18 +0000 (11:42 -0700)]
rgw: list objects shows time in GMT, thread safety fix
Colin Patrick McCabe [Wed, 17 Aug 2011 18:08:34 +0000 (11:08 -0700)]
src/perfglue/heap_profiler.cc: fix snprintf
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Yehuda Sadeh [Wed, 17 Aug 2011 18:21:28 +0000 (11:21 -0700)]
client: compile with older libfuse2
Colin Patrick McCabe [Wed, 17 Aug 2011 17:55:39 +0000 (10:55 -0700)]
Merge branch 'wip-librados-tests'
Sage Weil [Wed, 17 Aug 2011 17:47:39 +0000 (10:47 -0700)]
osd_types: fix merge
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 17 Aug 2011 17:47:02 +0000 (10:47 -0700)]
Merge commit 'v0.33'
Sage Weil [Mon, 15 Aug 2011 23:42:18 +0000 (16:42 -0700)]
v0.33
Sage Weil [Tue, 16 Aug 2011 23:37:20 +0000 (16:37 -0700)]
osd: pg_stat_t: throw exception on unknown encoding
This is better then decoding nonsense, eating ram, etc.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 17 Aug 2011 16:06:17 +0000 (09:06 -0700)]
qa: test rename into snapped dir
Tests fix for #1399.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Wed, 17 Aug 2011 16:02:44 +0000 (09:02 -0700)]
mds: mark newly created snaprealms as open
Fixes: #1399
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Colin Patrick McCabe [Wed, 17 Aug 2011 00:55:19 +0000 (17:55 -0700)]
test/rados-api/misc.cc: test Rados::version
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 17 Aug 2011 00:53:48 +0000 (17:53 -0700)]
test/rados-api/list.cc: C++ version
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 17 Aug 2011 00:48:04 +0000 (17:48 -0700)]
test/rados-api/snapshots.cc: C++ version
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 17 Aug 2011 00:37:38 +0000 (17:37 -0700)]
test/rados-api/watch_notify.cc: implement C++ ver
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 17 Aug 2011 00:30:34 +0000 (17:30 -0700)]
test/rados-api/stat.cc: implement C++ tests
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 17 Aug 2011 00:16:09 +0000 (17:16 -0700)]
rados/librados.h: use rados_snap_t consistently
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Tue, 16 Aug 2011 20:06:09 +0000 (13:06 -0700)]
test/rados-api/aio.cc: test RoundTripWriteFull
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Tue, 16 Aug 2011 19:59:40 +0000 (12:59 -0700)]
test/rados-api/aio.cc: implement FlushPP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Tue, 16 Aug 2011 18:25:39 +0000 (11:25 -0700)]
test/rados-api/aio.cc: test ReturnValuePP
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>