Commit Graph

21745 Commits

Author SHA1 Message Date
Josh Durgin
9362f726aa doc: add rbd example to ceph-authtool man page
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-02 15:43:38 -07:00
Josh Durgin
2e366ea8aa OSD: deprecate CLS_METHOD_PUBLIC flag
Remove all existing usage, but leave the definition so third-party
class plugins don't break.

The public flag let *any* user execute a class method, as long
as they had read and/or write access as the method required. This is
better managed by the new osd caps infrastructure, and it was
entirely undocumented and unused, so it should be safe to remove.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-02 15:43:37 -07:00
Josh Durgin
7ea8f16e22 doc: update ceph-authtool man page for new osd caps
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-02 15:43:37 -07:00
Josh Durgin
13ba5ec528 objclass: require each class method to have a flag set
The osd depends on this to set the client op flags for class call ops.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-02 15:43:37 -07:00
Josh Durgin
135c85a46e OSDCap: add separate caps for class read and class write
These are useful for rbd layering, since reading an rbd image
requires read-only class methods.

Fixes: #3167
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-02 15:43:37 -07:00
Josh Durgin
bf333d8e43 OSDCap: allow runs of spaces anywhere
I couldn't find a way to do this with skip parsers,
so these are explicitly included in the grammar.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-02 15:40:23 -07:00
Josh Durgin
9e8f69a0da qa: try to reproduce a race more times
This was failing occassionally in the nightly runs.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-02 12:33:07 -07:00
Yan, Zheng
e8df6a74ca mds: Avoid creating unnecessary snaprealm
When moving directory between snaprealms, we can avoid creating snaprealm
if the directory doesn't has its own snaprealm and directory was created
after both realms' newest snapshot.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2012-10-02 11:26:20 -07:00
Yan, Zheng
5673523242 mds: Properly re-calculate mdsdir inode's auth bit
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2012-10-02 11:26:20 -07:00
Yan, Zheng
60b93a71d1 mds: Trim non auth subtree directory
Trim non auth subtree directory if all its dentries were trimmed
and it's not bound of auth subtree.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2012-10-02 11:26:19 -07:00
Yan, Zheng
d2861d9a02 mds: Properly update dirty dir fragstat during log replay
Dirty dir fragstat is managed by filelock instead of nestlock.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2012-10-02 11:24:49 -07:00
Yan, Zheng
f8110cb082 mds: Allow export subtrees in other MDS' stray directory
Stray migration is implemented by rename, it may create auth subtrees
in other MDS' stray directory.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2012-10-02 11:24:48 -07:00
Yan, Zheng
1cc28d5887 mds: Avoid save unnecessary parent snaprealm
We can avoid save parent snaprealm if current_parent_since is greater
than parent snaprealm's newest sequence.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2012-10-02 11:23:54 -07:00
Yan, Zheng
824e593bd6 mds: Set metablob.renamed_dirino in do_rename_rollback()
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2012-10-02 11:23:37 -07:00
Yan, Zheng
35dc221870 mds: Fix xlock imports
Xlock imports and capability imports are uncorrelated, we should call
xlock_import() even there is no capability import.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2012-10-02 11:22:47 -07:00
Yan, Zheng
bc1e52ff5f mds: Allow rename request for stray migration/reintegration
Allow rename request to modify system directory if it is for stray
migration/reintegration.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2012-10-02 11:22:35 -07:00
Yan, Zheng
c6c6de5d0d mds: Add finish callback to waiting_for_base_ino wait queue
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2012-10-02 11:22:25 -07:00
Yan, Zheng
7004829c35 mds: Consider stopping MDS when finding peer inode
To migrate strays, the receiving MDS need find stopping MDS' mdsdir

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2012-10-02 11:22:23 -07:00
Yan, Zheng
b8aeb76795 mds: Don't drop client request from MDS
MDS may send client request for stray migration/reintegration.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2012-10-02 11:22:21 -07:00
Josh Durgin
60a5d78e57 doc: first draft of full OpenStack integration
Includes glance, cinder, and nova config with cloning.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-02 11:00:16 -07:00
Sage Weil
e2f6ae03b8 filejournal: check lseek() return value on darwin
Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-02 10:42:50 -07:00
Sage Weil
13b841c746 osdmap, mon: optional dump 'osd tree' in json
Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-02 10:42:50 -07:00
Sam Lang
14de7a5336 client: Resolves coverity NULL dereference issue
Client::insert_trace() was handling readdir and lssnap replies
assuming that the directory inode was not null.  This commit
checks that the directory inode (returned as part of the trace)
is not null, and invokes insert_readdir_results() for the readdir
and lssnap replies.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2012-10-02 09:27:50 -07:00
Sage Weil
d250bb85f0 libcephfs: destroy cmount on ceph_shutdown()
Otherwise this chunk of the heap is leaked.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-01 21:08:27 -07:00
Sage Weil
965ab908fc filestore: check ioctl SYNC return code
CID 716860: Unchecked return value (CHECKED_RETURN)
At (22): Calling function "ioctl(int, unsigned long, ...)" without checking return value (as is done elsewhere 30 out of 31 times).

Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-01 21:02:43 -07:00
Samuel Just
8237f6869f obj_bencher: fix leak in error path
CID 717076: Resource leak (RESOURCE_LEAK)At (26): Variable "newContents" going
out of scope leaks the storage it points to.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2012-10-01 15:41:24 -07:00
Samuel Just
709ff1457b PG: assert auth is not end in _compare_scrubmaps
This should make coverity happy.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2012-10-01 15:27:10 -07:00
Samuel Just
7ca754bec0 FileStore: copy paste error _do_copy_range
CID 728419: Copy-paste error (COPY_PASTE_ERROR)At (2): "srcoff" in "actual !=
(int64_t)srcoff" looks like a copy-paste error. Should it say "dstoff" instead?

Signed-off-by: Samuel Just <sam.just@inktank.com>
2012-10-01 15:23:00 -07:00
John Wilkins
106dc66fe4 doc: Removed languages from librados in tech-specific stack diagrams.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-10-01 14:53:57 -07:00
John Wilkins
763ae7c5b3 doc: Added stack diagram for rgw. Noted NO MDS. Corrected namespace comment.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-10-01 14:09:21 -07:00
John Wilkins
2e780475ac doc: Removed a setting we can ignore for now.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-10-01 14:08:34 -07:00
John Wilkins
c3f158f397 doc: Minor updates to filesystem settings.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-10-01 13:51:48 -07:00
John Wilkins
8799ef6ea5 doc: Added journal settings to the config TOC.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-10-01 13:50:55 -07:00
John Wilkins
d962e89264 doc: Completed a journal configuration reference. Journaler is separate.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-10-01 13:50:31 -07:00
Josh Durgin
12bba4a5b2 OSDCap: parse spaces explicitly
This is necessary to avoid matching things like "allow r poolfoo".
It's also needed to distinguish "allow r class-read" from
"allow r class -read".

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-01 10:26:06 -07:00
Josh Durgin
b57b86a215 test: remove commented out test cases
These are copied from non-commented out ones a few lines above.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-01 10:24:47 -07:00
Tobias Florek
32a6394be0 logrotate: check for executables to avoid cron errors
Signed-off-by: Tobias Florek <tobias.florek@bytesandbutter.de>
2012-10-01 09:02:46 -07:00
Sage Weil
2bf3f8c588 filestore: check lseek64 return value
CID 716862: Other violation (CHECKED_RETURN)
At (3): Calling function "lseek64(to, dstoff, 0)" without checking return value. This library function may fail and return an error code.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 20:54:44 -07:00
Sage Weil
409fbb7cbc filestore: check ioctl WAIT_SYNC return value
CID 716860: Unchecked return value (CHECKED_RETURN)
At (27): Calling function "ioctl(int, unsigned long, ...)" without checking return value (as is done elsewhere 29 out of 31 times).

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 20:54:44 -07:00
Sage Weil
15ebc0ff1e filejournal: check lseek64 return value
CID 716858: Other violation (CHECKED_RETURN)
At (6): Calling function "lseek64(this->fd, pos, 0)" without checking return value. This library function may fail and return an error code.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 20:54:44 -07:00
Sage Weil
ef393b5074 mon: fix large pass by value
CID 717046: Big parameter passed by value (PASS_BY_VALUE)
At (1): Passing parameter i of type entity_inst_t (size 152 bytes) by value.

CID 717047: Big parameter passed by value (PASS_BY_VALUE)
At (1): Passing parameter i of type entity_inst_t (size 152 bytes) by value.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 20:45:15 -07:00
Sage Weil
5defa9263a mon/PGMap: fix nearfull check
CID 716881: Copy-paste error (COPY_PASTE_ERROR)
At (2): "full_ratio" in "inc.full_ratio" looks like a copy-paste error. Should it say "nearfull_ratio" instead?

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 20:44:17 -07:00
Sage Weil
821f61d1a2 Merge branch 'next' 2012-09-30 20:24:34 -07:00
Sage Weil
72ca956632 test_libcephfs: fix test
Can't close an already-closed dir handle.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 20:24:23 -07:00
Sage Weil
7af24bbda2 libcephfs: fix test workunit
Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 21:02:36 -07:00
Sage Weil
07a5a141e1 Merge branch 'next' 2012-09-30 15:17:33 -07:00
Sage Weil
1ad339f781 mon: fix recovered_peon assert
Recovered_peon() can get called multiple times for a given machine id.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 15:12:59 -07:00
Sage Weil
238b497a1c mon: debug recovered_{peon,leader}
Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 15:12:56 -07:00
Sage Weil
b8cbe26c5f mon: fix recovered_peon assert
Recovered_peon() can get called multiple times for a given machine id.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 15:12:46 -07:00
Sage Weil
1708cf8d82 mon: debug recovered_{peon,leader}
Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-30 14:26:52 -07:00