Commit Graph

33934 Commits

Author SHA1 Message Date
Gregory Farnum
027e75cbd7 Merge pull request #1953 from ceph/wip-xattr-spillout
Enable and fix the existing xattr spillout code.

Reviewed-by: Sage Weil <sage@inktank.com>
2014-06-11 14:59:25 -07:00
Gregory Farnum
b8709ec0ad Merge pull request #1897 from somnathr/wip-sharded-threadpool
Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-06-11 14:29:55 -07:00
Greg Farnum
29c33f0c05 qa: add an fsx run which turns on kernel debugging
Signed-off-by: Greg Farnum <greg@inktank.com>
2014-06-11 13:40:48 -07:00
Greg Farnum
f9787224ba FileStore: remove the user_only param from _fgetattrs
Nobody sets it to true, so remove it!

Signed-off-by: Greg Farnum <greg@inktank.com>
2014-06-11 10:48:59 -07:00
Greg Farnum
bb4e3a9fbc FileStore: remove user_only options from getattrs through the ObjectStore stack
This sort of awareness belongs at a higher level in the stack -- as
evidenced by nobody using the option at this level. Remove it from the
implementations and the interface

Signed-off-by: Greg Farnum <greg@inktank.com>
2014-06-11 10:48:59 -07:00
Greg Farnum
fbe6009f22 FileStore: do not use user_only in collection_getattrs
There's no particular reason why any of the callers of collection_getattrs
want to avoid looking at Ceph's internal xattrs.
It looks like this flag (set in 1862ddd885) was
set this way by mistake.
And finally, we don't actually set xattrs on collections anymore, anyway.

Signed-off-by: Greg Farnum <greg@inktank.com>
2014-06-11 10:48:59 -07:00
Greg Farnum
7267a37d03 FileStore: remove dead code
This case wasn't reachable when it was introduced, and it's still not.

Signed-off-by: Greg Farnum <greg@inktank.com>
2014-06-11 10:48:59 -07:00
Greg Farnum
e3b995e156 FileStore: set XATTR_NO_SPILL_OUT when creating new files.
Fixes: #8205
Backport: firefly

Signed-off-by: Greg Farnum <greg@inktank.com>
2014-06-11 10:48:59 -07:00
Haomai Wang
239476a928 FileStore: make _clone() copy spill out marker
Previously we were not doing so, and that resulted in unpredictable loss
of xattrs from the client's perspective.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2014-06-11 10:47:40 -07:00
Haomai Wang
af8052bddb Add xattr test to ceph_test_objectstore
Add xattr synthetic test to test ObjectStore xattr related interfaces.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2014-06-11 10:47:26 -07:00
Somnath Roy
0bbeeee3b4 PG: Added a const spg_t member to the PG class
The const spg_t member is been insantiated from constructor
and now get_pgid() can reference this to return a spg_t instance
without the need of pg_info (thus not requiring to acquire pg_lock).

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
2014-06-10 18:10:30 -07:00
John Wilkins
85e491fb77 doc: Added a tip to install NTP when running multiple monitors.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-06-10 17:45:18 -07:00
John Wilkins
d37ef6ab7f doc: Added additional background to address additional states.
Covers 1-node cluster issues, fewer OSDs than replicas, and
active + clean + inconsistent states in greater detail.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-06-10 17:44:02 -07:00
John Wilkins
b7f6147c36 doc: Added background discussion to clock settings.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-06-10 17:42:21 -07:00
Somnath Roy
ecbb0056f9 OSD: The thread pool variable name changed
The variable names are more meaningful now. op_tp -> osd_tp and
op_sharded_tp -> osd_op_tp

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
2014-06-10 16:43:26 -07:00
Somnath Roy
2a5d83d2d5 ShardedTP: The config option changed
The config option for sharded threadpool is changed to
osd_op_num_threads_per_shard instead of osd_op_num_sharded_pool_threads.
Along with osd_op_num_shards this will be much more user friendly while
configuring the number of op threads for the osd.

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
2014-06-10 16:02:52 -07:00
Somnath Roy
a0e48b8b6e ShardedTP: Changes related to conforming to Ceph coding guidelines
Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
2014-06-10 15:24:47 -07:00
John Wilkins
2e3f4bc62b doc: Fixed typo.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2014-06-10 12:20:43 -07:00
Loic Dachary
6c4c1b71f1 Merge pull request #1945 from dachary/wip-warnings
tests: fix signess warning

Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>
2014-06-10 10:31:07 +02:00
Loic Dachary
a4923f5bc3 fix compilation warnings
Signed-off-by: Loic Dachary <loic@dachary.org>
2014-06-10 01:06:50 +02:00
Sage Weil
47028874e2 Merge pull request #1872 from ceph/wip-reweight-tree
mon: add 'osd crush reweight-tree ...'

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-06-09 05:29:20 -07:00
Loic Dachary
2fe1a0573a Merge pull request #1940 from vshankar/doc-fix
doc: fix typo in erasure coding section

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-06-09 13:16:46 +02:00
Venky Shankar
ef06515659 doc: fix typo in erasure coding section
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2014-06-09 15:04:53 +05:30
Loic Dachary
2520052155 Merge pull request #1936 from ceph/wip-8554
init-ceph: continue after failure doing osd data mount

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-06-09 11:10:03 +02:00
Sage Weil
6a7e20147c init-ceph: continue after failure doing osd data mount
If we are starting many daemons and hit an error, we normally note it and
move on.  Do the same when doing the pre-mount step.

Fixes: #8554
Signed-off-by: Sage Weil <sage@inktank.com>
2014-06-08 20:18:49 -07:00
Loic Dachary
24853e0d16 Merge pull request #1913 from sahid/dist
Populate AUTHORS and ChangeLog for a distributed package

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-06-09 00:02:41 +02:00
Sage Weil
db19040e6b Merge pull request #1934 from sahid/patch-1
Fix two typos with "dependencies"
2014-06-07 09:22:22 -07:00
Sahid Orentino Ferdjaoui
b0c66a7161 doc: Fixes spelling errors on README
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
2014-06-07 08:25:10 +02:00
Sage Weil
c5841facd1 Merge pull request #1899 from yuyuyu101/kvstore-osd-perf
Make KeyValueStore support "ceph osd perf" command

Reviewed-by: Sage Weil <sage@inktank.com>
2014-06-06 23:16:12 -07:00
Sage Weil
dacc0acff0 Merge pull request #1912 from yuyuyu101/keyvaluestore-sparse-read-bug
Fix keyvaluestore fiemap bug

Reviewed-by: Sage Weil <sage@inktank.com>
2014-06-06 23:12:22 -07:00
Josh Durgin
f5d3f3ea71 Merge branch 'wip-libradosstriper'
https://github.com/ceph/ceph/pull/1186

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-06-06 18:13:11 -07:00
Sebastien Ponce
910d73c4a8 Added RPM and debian packaging for libradosstriper, creating a new package called libradosstriper1
Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
2014-06-06 18:12:34 -07:00
Sebastien Ponce
fa01ca6598 Added unit test suite for the Rados striping API.
This includes tests for standard io and asynchronous io, similar to what is tested in the rados tests.
In addition, it includes in depth tests of the striping itself.

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
2014-06-06 18:12:34 -07:00
Sebastien Ponce
d160ce2377 Implementation of the radosstriper interface.
The user facing API is implemented in libradosstriper.cc and the backend in RadosStriperImpl.cc.
Details on how the code works are given in a comment at the top of RadosStriperImple.cc

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
2014-06-06 18:12:34 -07:00
John Wilkins
e057f38ab8 Merge pull request #1926 from nereocystis/librados-write-full
doc: Use write_full for C++ example
2014-06-06 14:33:38 -07:00
Sage Weil
91045942f4 Merge pull request #1935 from ceph/wip-flag-known-redirs
osdc/Objecter: mark all ops as known-if-redirected

Reviewed-by: Sage Weil <sage@inktank.com>
2014-06-06 14:16:36 -07:00
Greg Farnum
a6c34e47d8 osdc/Objecter: mark all ops as known-if-redirected
Signed-off-by: Greg Farnum <greg@inktank.com>
2014-06-06 13:45:49 -07:00
Sage Weil
036e807262 Merge pull request #1891 from ceph/wip-8380-b
osdc/Objecter: flag ops that have been redirected
2014-06-06 13:20:12 -07:00
Sage Weil
9db846b79b Merge pull request #1930 from ceph/wip-set-extsize-fix
Wip set extsize fix

Backport: firefly
Reviewed-by: Sage Weil <sage@inktank.com>
2014-06-06 10:50:58 -07:00
Sage Weil
3b44f08f56 Merge pull request #1922 from ceph/wip-os-rename
os: rename get_*() -> decode_*()

Reviewed-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
2014-06-06 09:19:16 -07:00
Ilya Dryomov
bc3b30ed09 XfsFileStoreBackend: call ioctl(XFS_IOC_FSSETXATTR) less often
No need to call ioctl(XFS_IOC_FSSETXATTR) if extsize is already set to
the value we want or if any extents are allocated - XFS will refuse to
change extsize in that's the case.

Fixes: #8241
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-06-06 15:38:35 +04:00
Ilya Dryomov
750b1db6fe XfsFileStoreBackend: nuke redundant goto in set_extsize()
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
2014-06-06 15:32:03 +04:00
Loic Dachary
e25e33e2dd Merge pull request #1928 from nereocystis/pool-pg-fix-spelling
doc: Descrption => Description

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-06-06 09:52:34 +02:00
Kevin Dalley
e31d3fe024 doc: Descrption => Description
Correct spelling error.

Signed-off-by: Kevin Dalley <kevin@kelphead.org>
2014-06-05 17:10:42 -07:00
Kevin Dalley
0ca43d834c doc: Use write_full for C++ example
Latest version of librados uses write_full when writing entire object.

Should the documentation mention that the method "write" used to serve
this function.

Signed-off-by: Kevin Dalley <kevin@kelphead.org>
2014-06-05 16:48:21 -07:00
Sage Weil
624ae21833 Merge pull request #1859 from ceph/wip-multipartition
ceph-disk: Enable creating multiple osds per dev

Reviewed-by: Dan Mick <dan.mick@inktank.com>
2014-06-05 12:08:33 -07:00
Sage Weil
a63ee3793d Merge remote-tracking branch 'gh/next' 2014-06-05 12:03:00 -07:00
Samuel Just
16e2ed0da8 Merge pull request #1925 from ceph/wip-i386-atomic
fix i386 atomic64_t

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-06-05 12:02:33 -07:00
Sage Weil
2081c992bb include/atomic: make 32-bit atomic64_t unsigned
This fixes

In file included from test/perf_counters.cc:19:0:
./common/perf_counters.h: In member function ‘std::pair PerfCounters::perf_counter_data_any_d::read_avg() const’:
warning: ./common/perf_counters.h:156:36: comparison between signed and unsigned integer expressions [-Wsign-compare]
} while (avgcount2.read() != count);
^

Signed-off-by: Sage Weil <sage@inktank.com>
2014-06-05 11:59:31 -07:00
Sage Weil
64e99d81a8 ceph-objectstore-test: fix warning in collect_metadata test
In file included from test/objectstore/store_test.cc:33:0:
../src/gtest/include/gtest/gtest.h: In function ‘testing::AssertionResult testing::internal::CmpHelperNE(const char*, const char*, const T1&, const T2&) [with T1 = long unsigned int, T2 = int]’:
test/objectstore/store_test.cc:82:5: instantiated from here
warning: ../src/gtest/include/gtest/gtest.h:1379:1: comparison between signed and unsigned integer expressions [-Wsign-compare]

Signed-off-by: Sage Weil <sage@inktank.com>
2014-06-05 11:58:47 -07:00