Commit Graph

33508 Commits

Author SHA1 Message Date
John Spray
20aad8ff93 doc: update instructions for RPM distros
Fix RPM building instructions: this has been broken since
libs3 was included inline in the ceph repo as a submodule.
"rpmbuild -tb" was concatenating the ceph.spec and
libs3.spec files, resulting in something that didn't work.

Also, the instructions suggested downloading a .tar.gz file
whereas the specfile requires a .tar.bz2 file.

Also, add a convenient yum command line for getting the compile
dependencies on Fedora 20.

Signed-off-by: John Spray <john.spray@inktank.com>
2014-05-13 19:22:43 +01:00
Gregory Farnum
bfce3d4fac Merge pull request #1771 from ceph/wip-5021
Wip 5021

Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2014-05-12 21:39:53 -07:00
Yan, Zheng
20814de9e9 Merge pull request #1807 from ceph/wip-mds-flock
mds: reduce verbosity of handle_client_file_{readlock,setlock}
2014-05-13 09:31:00 +08:00
Yan, Zheng
019483fdaa mds: reduce verbosity of handle_client_file_{readlock,setlock}
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-05-13 09:29:47 +08:00
Samuel Just
c32c56b739 Merge pull request #1779 from ceph/wip-7553
Wip 7553

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-05-12 15:29:39 -07:00
Sage Weil
428319e827 doc/release-notes: v0.80.1
Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-12 14:25:53 -07:00
Sage Weil
b99244e575 Merge pull request #1799 from ceph/wip-8305
osd: fix op ordering with pool overlay set/removed

Reviewed-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-05-12 13:33:27 -07:00
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
Samuel Just
76568aa0db Objecter::_op_submit: only replace the tid if it's 0
Otherwise, redirected ops will suddenly have a different tid
and will become uncancelable.

Fixes: #7588
Signed-off-by: Samuel Just <sam.just@inktank.com>
2014-05-10 15:15:57 -07: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
Sage Weil
0d67f9b069 osd/ReplicatedPG: do not queue NULL dup_op
We call start_flush() with a NULL op in a couple different places.  Do not
put a NULL pointer on the dup_ops list or we will crash later.

Fixes: #8328
Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-10 10:29:11 -07: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
Sage Weil
63d92ab096 mon/OSDMonitor: force op resend when pool overlay changes
If a client is sending a sequence of ops (say, a, b, c, d) and partway
through that sequence it receives an OSDMap update that changes the
overlay, the ops will get send to different pools, and the replies will
come back completely out of order.

To fix this, force a resend of all outstanding ops any time the overlay
changes.

Fixes: #8305
Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-10 09:12:26 -07:00
Sage Weil
45e79a17a9 osd: discard client ops sent before last_force_op_resend
If an op is sent before last_force_op_resend, and the client's feature is
present, drop the op because we know they will resend.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-10 09:12:26 -07:00
Sage Weil
dd700bdf71 osdc/Objecter: resend ops in the last_force_op_resend epoch
If we are a client, and process a map that sets last_force_op_resend to
the current epoch, force a resend of this op.

If the OSD expects us to do this, it will discard our previous op.  If the
OSD is old, it will process the old one, this will appear as a dup, and we
are no worse off than before.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-05-10 09:12:26 -07:00