Commit Graph

21567 Commits

Author SHA1 Message Date
Sage Weil
74ea0cb541 doc: update release-process.rst
Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-03 08:44:52 -07:00
Gary Lowell
2519bd3932 doc: Added description of ceph release process. 2012-10-02 23:41:35 -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
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
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
Sage Weil
6f7067f489 mon: avoid large pass by value in MForward
CID 717035: Big parameter passed by value (PASS_BY_VALUE)
At (1): Passing parameter caps of type MonCaps (size 144 bytes) by value.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:35:36 -07:00
Sage Weil
4878fdcc74 mds: fix MDSCacheObject pin printer * logic
CID 716895: Logically dead code (DEADCODE)
At (4): Execution cannot reach this statement "(out << "*") << c;".

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:34:26 -07:00
Sage Weil
a3e42d800d mdsmap: init fields in ctor
At (2): Non-static class member "session_timeout" is not initialized in this constructor nor in any functions that it calls.
At (4): Non-static class member "session_autoclose" is not initialized in this constructor nor in any functions that it calls.
At (6): Non-static class member "max_file_size" is not initialized in this constructor nor in any functions that it calls.
CID 717238: Uninitialized scalar field (UNINIT_CTOR)
At (8): Non-static class member "max_mds" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:32:08 -07:00
Sage Weil
1cebd989e7 mds: fix potential overflow
CID 717014: Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN)
At (1): Potentially overflowing expression "in->inode.layout.fl_object_size.operator unsigned int() * in->inode.layout.fl_stripe_count.operator unsigned int()" with type "unsigned int" (32 bits, unsigned) is evaluated using 32-bit arithmetic before being used in a context which expects an expression of type "uint64_t" (64 bits, unsigned). To avoid overflow, cast either operand to "uint64_t" before performing the multiplication.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:30:35 -07:00
Sage Weil
694a4f0f16 mds: init atid in context
CID 717236: Uninitialized scalar field (UNINIT_CTOR)
At (2): Non-static class member "atid" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:29:49 -07:00
Sage Weil
18668ba001 mds: init log layout in MDCcahe ctor
CID 717237: Uninitialized scalar field (UNINIT_CTOR)
At (8): Non-static class member field "default_file_layout.fl_stripe_unit" is not initialized in this constructor nor in any functions that it calls.
At (10): Non-static class member field "default_file_layout.fl_stripe_count" is not initialized in this constructor nor in any functions that it calls.
At (12): Non-static class member field "default_file_layout.fl_object_size" is not initialized in this constructor nor in any functions that it calls.
At (14): Non-static class member field "default_file_layout.fl_cas_hash" is not initialized in this constructor nor in any functions that it calls.
At (16): Non-static class member field "default_file_layout.fl_object_stripe_unit" is not initialized in this constructor nor in any functions that it calls.
At (18): Non-static class member field "default_file_layout.fl_unused" is not initialized in this constructor nor in any functions that it calls.
At (20): Non-static class member field "default_file_layout.fl_pg_pool" is not initialized in this constructor nor in any functions that it calls.
At (21): Non-static class member field "default_log_layout.fl_stripe_unit" is not initialized in this constructor nor in any functions that it calls.
At (22): Non-static class member field "default_log_layout.fl_stripe_count" is not initialized in this constructor nor in any functions that it calls.
At (23): Non-static class member field "default_log_layout.fl_object_size" is not initialized in this constructor nor in any functions that it calls.
At (24): Non-static class member field "default_log_layout.fl_cas_hash" is not initialized in this constructor nor in any functions that it calls.
At (25): Non-static class member field "default_log_layout.fl_object_stripe_unit" is not initialized in this constructor nor in any functions that it calls.
At (26): Non-static class member field "default_log_layout.fl_unused" is not initialized in this constructor nor in any functions that it calls.
At (27): Non-static class member field "default_log_layout.fl_pg_pool" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:29:00 -07:00
Sage Weil
7594e9ce0f mds: simplify get_dirfrag()
Avoid useless have_inode() call.

CID 716996: Dereference null return value (NULL_RETURNS)
At (13): Dereferencing a pointer that might be null "this->get_inode(df.ino, snapid_t(18446744073709551614UL))" when calling "CInode::get_dirfrag(frag_t)". [hide details]

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:27:33 -07:00
Sage Weil
bef66e010b mds: fix mlogger shutdown
CID 716880: Copy-paste error (COPY_PASTE_ERROR)
At (2): "logger" in "this->logger" looks like a copy-paste error. Should it say "mlogger" instead?

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:26:05 -07:00
Sage Weil
4aef86f5c7 mds: fix leak from get_current_dir_name
CID 717086: Resource leak (RESOURCE_LEAK)
At (18): Ignoring storage allocated by "get_current_dir_name()" leaks it.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:25:25 -07:00
Sage Weil
c517fde269 librbd: simplify math
Bending over backwards hasn't made coveirty happy.  We'll just ignore it
there.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:22:19 -07:00
Sage Weil
7779901e5f mds: add assert to lock path
This makes coverity happy:

CID 716916: Explicit null dereferenced (FORWARD_NULL)
At (28): Passing null pointer "in" to function "MDSCacheObject::state_test(unsigned int) const", which dereferences it. [hide details]

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:17:21 -07:00
Sage Weil
816bb7e965 mds: fix uninit Dumper fields in ctor
CID 717234: Uninitialized pointer field (UNINIT_CTOR)
At (8): Non-static class member "rank" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:16:16 -07:00
Sage Weil
e9f350f144 mds: fix fd leak in dumper
CID 717084: Resource leak (RESOURCE_LEAK)
At (6): Handle variable "fd" going out of scope leaks the handle.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:14:58 -07:00
Sage Weil
e604de1d61 mds: fix uninit Capability::last_issue
CID 717233: Uninitialized scalar field (UNINIT_CTOR)
At (2): Non-static class member "last_issue" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:12:53 -07:00
Sage Weil
82aecedf30 mds: fix uninit field in CInode
CID 717231: Uninitialized scalar field (UNINIT_CTOR)
At (3): Non-static class member "auth_pin_freeze_allowance" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:11:41 -07:00
Sage Weil
1acd109296 mds: fix typo in rsubdirs warning
CID 716879: Copy-paste error (COPY_PASTE_ERROR)
At (2): "rfiles" in "pi->rstat.rfiles" looks like a copy-paste error. Should it say "rsubdirs" instead?

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:09:43 -07:00
Sage Weil
310e486817 mds: init CDir fields
CID 717230: Uninitialized scalar field (UNINIT_CTOR)
At (8): Non-static class member "num_dentries_auth_subtree_nested" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:08:30 -07:00
Sage Weil
5e51f5506a mds: avoid useless have_inode() call
CID 716989: Dereference null return value (NULL_RETURNS)
At (83): Dereferencing a pointer that might be null "in" when calling "operator <<(std::ostream &, CInode &)". [hide details]

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 01:06:38 -07:00
Sage Weil
6047325763 osd: pass by value
CID 717054: Big parameter passed by value (PASS_BY_VALUE)
At (1): Passing parameter recovery_info of type ObjectRecoveryInfo (size 640 bytes) by value.

and more

Signed-off-by: Sage Weil <sage@inktank.com>
2012-09-29 00:59:54 -07:00