Commit Graph

33481 Commits

Author SHA1 Message Date
John Wilkins
19f8849a94 doc: Improvements to qemu installation.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-05-12 13:20:14 -07:00
John Wilkins
6e4455d6af doc: Added note on Default requiretty for CentOS and others.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-05-12 11:33:57 -07:00
Sage Weil
59e2381f67 Merge pull request #1801 from ceph/wip-update-gitignore
Update gitignore entries for master

Reviewed-by: Sage Weil <sage@inktank.com>
2014-05-12 06:10:22 -07:00
Sage Weil
b4ffd661af Merge pull request #1800 from ceph/wip-da-SCA-20140510
fixes from SCA

Reviewed-by: Sage Weil <sage@inktank.com>
2014-05-12 05:51:45 -07:00
Danny Al-Gaaf
3d7f527cbd BtrfsFileStoreBackend.cc: fix ::unlinkat() result handling
Don't check for 'fd' but for the return value of the ::unlinkat() call.

Fix for:
[src/os/BtrfsFileStoreBackend.cc:72] -> [src/os/BtrfsFileStoreBackend.cc:74]:
 (warning) Opposite conditions in nested 'if' blocks lead to a dead code block.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 02:33:44 +02:00
Danny Al-Gaaf
5f89128f60 TestLFNIndex.cc: remove unused variable 'mangled_name'
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 02:17:49 +02:00
Danny Al-Gaaf
a4455299d9 rgw_user.cc: remove dead assignment in generate_key()
Fix for:
[src/rgw/rgw_user.cc:778]: (style) Variable 'subuser' is
 assigned a value that is never used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 02:07:10 +02:00
Danny Al-Gaaf
b1196795c2 rgw_user.cc: cleanup RGWAccessKeyPool::check_op()
Remove dead assignment and unsued variable 'secret_key'. Check
op_state.get_access_key() directly for emptiness without extra
variable. Fix comment above check for access key.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 02:01:10 +02:00
Danny Al-Gaaf
b731c472de rgw_rados.cc: remove dead assignment / unused variable 'obj_name'
Fix for:
[src/rgw/rgw_main.cc:1086]: (style) Variable 'frontend_frameworks'
 is assigned a value that is never used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 01:47:32 +02:00
Danny Al-Gaaf
10e6d6e621 rgw_main.cc: remove dead assignment and unused variable
Fix for:

[src/rgw/rgw_main.cc:1086]: (style) Variable 'frontend_frameworks' is
 assigned a value that is never used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 01:43:09 +02:00
Danny Al-Gaaf
d2d6b0f6d5 PGMap.cc: remove dead assignment
[src/mon/PGMap.cc:865]: (style) Variable 'first' is assigned a value
 that is never used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 01:36:58 +02:00
Danny Al-Gaaf
cd611b4b7a MDBalancer.cc: remove some since 2009 unused code
Remove some since long time unused code and variables (commented out
since 2009).

Fix for:

[src/mds/MDBalancer.cc:757]: (style) Variable 'total_sent' is
 assigned a value that is never used.
[src/mds/MDBalancer.cc:665]: (style) Variable 'total_goal' is
 assigned a value that is never used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 01:26:56 +02:00
Danny Al-Gaaf
6cda1e17dc chain_xattr.cc: fix memory leak, free 'expected'
Fix for:
[src/test/objectstore/chain_xattr.cc:186]: (error) Memory leak:
 expected

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 01:14:55 +02:00
Danny Al-Gaaf
1d39b11de8 confutils.cc: remove unused variable 'val'
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 01:09:53 +02:00
Danny Al-Gaaf
1cac4915cb SyntheticClient.cc: remove double check for "getdir"
Fix for:
[src/client/SyntheticClient.cc:1143]: (style) Expression is always
 false because 'else if' condition matches previous condition at line 1139.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 00:49:29 +02:00
Danny Al-Gaaf
5e05acaff4 rgw_op.cc: reduce scope of 'int r' in execute()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 00:38:48 +02:00
Danny Al-Gaaf
f45a50f1d6 rgw_op.cc: use static_cast instead of c-style cast
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 00:33:00 +02:00
Danny Al-Gaaf
8f90cd23c1 rgw_quota.cc: remove unused variable 'key'
[src/rgw/rgw_quota.cc:455]: (style) Variable 'key' is assigned a
 value that is never used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 00:27:37 +02:00
Danny Al-Gaaf
4753ae8728 test_rgw_admin_log.cc: prefer ++operators for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 00:06:55 +02:00
Danny Al-Gaaf
218b6d8060 test_cls_rbd.cc: use 'delete []' if 'new char[len]' was used
Fix for:
[src/test/cls_rbd/test_cls_rbd.cc:82]: (error) Mismatching allocation
 and deallocation: b
[src/test/cls_rbd/test_cls_rbd.cc:95]: (error) Mismatching allocation
 and deallocation: b
[src/test/cls_rbd/test_cls_rbd.cc:97]: (error) Mismatching allocation
 and deallocation: b

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-12 00:06:43 +02:00
Danny Al-Gaaf
20455a6bb8 test_rgw_admin_log.cc: prefer empty() over size() for emptiness check
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-11 23:25:36 +02:00
Danny Al-Gaaf
d69fd9056f test_rgw_admin_opstate.cc: prefer ++operators for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-11 23:22:42 +02:00
Danny Al-Gaaf
0f899c8c63 test_rgw_admin_meta.cc: prefer ++operators for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-11 23:21:50 +02:00
Danny Al-Gaaf
f523d64df9 TestErasureCodePluginJerasure.cc: prefer ++operators for non-primitive types
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-11 23:17:14 +02:00
Danny Al-Gaaf
014f050851 test/ObjectMap/KeyValueDBMemory.cc: use empty() instead of size()
Use empty() instead of 'size() == 0' to fix:

[src/test/ObjectMap/KeyValueDBMemory.cc:83]: (performance)
 Possible inefficient checking for 'db' emptiness.
[src/test/ObjectMap/KeyValueDBMemory.cc:97]: (performance)
 Possible inefficient checking for 'db' emptiness.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-11 23:13:00 +02:00
Danny Al-Gaaf
b24b77a4a2 FileStore.cc: remove some dead assignments
There is no need to reset 'r' to '0'.

Fix for:
3759 r = 0;
     Value stored to 'r' is never read

4093 r = 0;
     Value stored to 'r' is never read

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-11 13:52:37 +02:00
Danny Al-Gaaf
39c071fe95 .gitignore: ignore files generated by ctags on topdir
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-11 12:26:29 +02:00
Danny Al-Gaaf
e847d560e5 add gitignore for wireshark subdir to track *.patch only here
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-11 12:24:44 +02:00
Danny Al-Gaaf
b9cf708636 .gitignore: add some patch/diff related files
Change *.patch to be ignored in general on all dirs.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-11 12:20:13 +02:00
Danny Al-Gaaf
f067013a8e .gitignore: add no longer used mkcephfs
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-11 12:18:19 +02:00
Danny Al-Gaaf
ea69f6b1aa cls_kvs.cc: return 'r' from get_idata_from_key()
Fix for:

69  r = 0;
    Value stored to 'r' is never read

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-11 11:55:28 +02:00
Danny Al-Gaaf
574a94056b cls_kvs.cc: remove dead assignment
Fix for:
[src/key_value_store/cls_kvs.cc:383] -> [src/key_value_store/cls_kvs.cc:386]:
 (performance) Variable 'r' is reassigned a value before the old one has been used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-11 11:52:04 +02:00
Danny Al-Gaaf
36c1c974aa rgw_user.cc:
Remove bool variable 'same_email' compare emails directly in
if check.

Fix for:
[src/rgw/rgw_user.cc:1926] -> [src/rgw/rgw_user.cc:1927]: (performance)
 Variable 'same_email' is reassigned a value before the old one has been used.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-11 11:28:26 +02:00
Danny Al-Gaaf
a121d01461 libcephfs.cc: fix possible NULL pointer deref
Fix possible NULL pointer dereference of 'inode' in ceph_ll_lookup_inode().
It's not enough to check for 'inode' without assert or error handling before
assert for '*inode != NULL' since this doesn't handle the 'inode == NULL'
case for the later calls.

Fix for:
1192 r = (cmount->get_client())->lookup_parent(*inode, &parent);
     5  Dereference of null pointer (loaded from variable 'inode')

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-11 00:36:20 +02:00
Danny Al-Gaaf
94773aca77 osd/OSD.cc: fix possible NULL pointer deref in share_map()
Fix for:

4778 *sent_epoch_p = osdmap->get_epoch();
     12 Dereference of null pointer (loaded from variable 'sent_epoch_p')

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-10 21:37:07 +02:00
Danny Al-Gaaf
79c6491cc6 mds/flock.cc: remove dead initialization of 'new_lock_end'
Fix for:

213 uint64_t new_lock_end = new_lock.start + new_lock.length - 1;
    Value stored to 'new_lock_end' during its initialization is never read

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-10 19:18:35 +02:00
Danny Al-Gaaf
e8b47897fb mds/flock.cc: remove dead initialization of 'new_lock_start'
Fix for:

212 uint64_t new_lock_start = new_lock.start;
    Value stored to 'new_lock_start' during its initialization is
    never read

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-10 19:13:48 +02:00
Danny Al-Gaaf
5199c14290 mds/Server.cc: remove unused initialization of 'destdnl'
Remove initialization of 'destdnl' since the assigned value was
never used and the same call is used some lines later again before
first usage. Fix for:

6579 CDentry::linkage_t *destdnl = destdn->get_linkage();
     Value stored to 'destdnl' during its initialization is never read

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-10 19:06:32 +02:00
Danny Al-Gaaf
b3203e54ec rbd.cc: remove used parameter from set_pool_image_name()
Removed unused 'orig_pool' parameter from set_pool_image_name().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-10 11:51:41 +02:00
Danny Al-Gaaf
fe75075574 test_librbd.cc: fix sizeof() in malloc call
Use 'char' instead of 'char *'.

228  names = (char *) malloc(sizeof(char *) * 1024);
     Result of 'malloc' is converted to a pointer of type 'char',
     which is incompatible with sizeof operand type 'char *'

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-10 10:58:56 +02:00
Danny Al-Gaaf
eb2def87f8 CrushWrapper.cc: fix sizeof() call in calloc
Use __u32 instead of __s32 due to type of bucket->parm to fix:

1028 bucket->perm = (__u32*)calloc(1, bucket->size * sizeof(__s32));
     Result of 'calloc' is converted to a pointer of type '__u32',
     which is incompatible with sizeof operand type '__s32'

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-10 10:50:32 +02:00
Josh Durgin
bc8d5f42be Merge pull request #1781 from ceph/wip-8269
Wip 8269

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-05-09 14:44:25 -07:00
Guang Yang
bdee119076 msg: Fix inconsistent message sequence negotiation during connection reset
Backport: firefly, emperor, dumpling

Signed-off-by: Guang Yang (yguang@yahoo-inc.com)
Reviewed-by: Greg Farnum <greg@inktank.com>
2014-05-09 11:04:29 -07:00
Sage Weil
76dcf2d149 Merge pull request #1796 from daniel-j-h/missing_initializers
Fixed missing initializers issues

Reviewed-by: Sage Weil <sage@inktank.com>
2014-05-09 11:03:06 -07:00
Sage Weil
f302b60aad Merge pull request #1797 from ceph/wip-7588
osd/ReplicatedPG: carry CopyOpRef in copy_from completion

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-05-09 11:01:46 -07:00
Sage Weil
d903895441 v0.80
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.11 (GNU/Linux)
 
 iQIcBAABAgAGBQJTaOuwAAoJEH6/3V0X7TFtMQgP/1UWkr94SrxwHwToD5TsLug4
 aeR923MnBn5qyPCDNyqpftWtxskfPSdDxJlkpc6qsFYlupECIb593z4F7tFejzVh
 LN0fkdHmut9g7EDpd9kgNeqgTb8tqxj/Nq4jih1fXWeznNEaQWkk5dVA8UsopCyv
 0FvSllxmTwD/jNtaloXb8jSI/wtjIlQzhucjJb80OjdIl7LfmtsA3DAAweTjX7c0
 Wv8daBnj2clgSe+gjYHvXOopzNszB9/+K5kWgLS5Cvs4ngHeYh03O7hVoFluHRbc
 hnzLQHMs/Pfs6HR2+eybc7z3UYxfVKZkcHpCqVzM5+lCwKQc61MZeJrJg7RWcTgP
 SNFBPYMMgPZABpdhNi3qEJpvZ65pD/gfShXdzQwMnXRCIF0714LWKYdsuSRCr9Lf
 3pkZ+zPHaID2OWWOXDOe6WY1Wg1YiVt8uss9ZRsOCkKDnc8JzPhx5Z7f4+f74bOU
 Cm7xLQH8EJtrxqQjGz2HO3OucI253OceVHWh2L9nHbRRNM3LMxW8fbd/dEbIfHiG
 g6Qh+NbyuRtiYLq7pRChKirE67dqXNoauE0Co0M6C6x1hqou41YQMD0gwjPdj5Iy
 1tScKXS+onPzt9KR/ZA8RNOLCCnLdOSn4G0qRD0xJIdyDPB562u6FNv9b4X7xgry
 kxpFEPCfRGSNNH2hNb0X
 =sTfQ
 -----END PGP SIGNATURE-----

Merge tag 'v0.80'

v0.80

Conflicts:
	src/osd/PG.cc
	src/osd/ReplicatedPG.cc
2014-05-09 10:58:35 -07:00
Sage Weil
47f5dc0676 Merge pull request #1798 from ceph/wip-8319
osd: fix race during shutdown

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-05-09 10:45:42 -07:00
John Wilkins
4ef7fa9f30 Merge pull request #1731 from dynamike67/patch-2
doc: Changed the java code example
2014-05-09 10:33:33 -07:00
Sage Weil
b5e4cd13c0 osd: fix MOSDMarkMeDown name
Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-09 10:31:15 -07:00
John Wilkins
bb614e5055 Merge pull request #1792 from nereocystis/Ceph-osd-is-daemon
:doc Ceph OSD is standard name
2014-05-09 10:28:52 -07:00