Commit Graph

33910 Commits

Author SHA1 Message Date
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
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
Sebastien Ponce
e1ad0bf6ba Added a striper interface on top of rados called radosstriper.
This interface allows to manipulate striped objects stored in a rados cluster with a standard open/read/write/stat/close/remove API.
Asynchronous APIs are also provided for data transfers and both C and C++ APIs are present.

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
2014-06-05 10:07:16 -07:00
Sebastien Ponce
7ceeb9f802 Completed librados documentation of rados_write_op_cmpxattr and rados_read_op_cmpxattr concerning their error reporting
Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
2014-06-05 10:07:16 -07:00
Sebastien Ponce
62064f38c4 Added const qualifiers for the layout argument of file_to_extents and object_truncate_size
Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
2014-06-05 10:07:16 -07:00
Sebastien Ponce
8c124910a8 Fixed usage of rhel_version in spec file : it should have been rhel
Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
2014-06-05 10:07:16 -07:00
Sebastien Ponce
f92d7bb64e Fixed missing include of assert.h in RWLock interface
Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
2014-06-05 10:07:16 -07:00
Sebastien Ponce
b9a35b3c74 Extracted RadosXattrIter from librados.cc into independent .h anc .cc files.
This makes this interface usable by clients of librados.

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
2014-06-05 10:07:15 -07:00
Sage Weil
aede83281f os: rename get_*() -> decode_*()
These methods have side-effects: they move the decode iterator *and*
return a value.  Rename them to avoid confusion with typical get_*
accessors.

Signed-off-by: Sage Weil <sage@inktank.com>
2014-06-05 09:19:05 -07:00
Sahid Orentino Ferdjaoui
5bb078f991 Populate ChangeLog when distribute
Generates ChangeLog from git history for a
distributed package.

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
2014-06-05 17:33:53 +02:00
Sahid Orentino Ferdjaoui
b22cc850a8 Populate AUTHORS when distribute
Adds a complete list of contributors in a
distributed package.

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
2014-06-05 17:33:42 +02:00
Sage Weil
7c2c8da218 Merge pull request #1918 from ceph/wip-da-SCA-20140604
Some new fixes for gcc and cppcheck warnings/issues

Reviewed-by: Sage Weil <sage@inktank.com>
2014-06-04 17:32:51 -07:00
Samuel Just
3261caadc6 Merge pull request #1582 from yuyuyu101/omap-cache
Add header cache to DBObjectMap

Reveiewed-by: Samuel Just <sam.just@inktank.com>
2014-06-04 16:03:05 -07:00
Samuel Just
f3b8ebedf1 Merge pull request #1865 from dachary/wip-8254
osd: convert shard_id_t  from uint8_t to struct + merge shard_t into it

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-06-04 16:01:43 -07:00
Loic Dachary
8464a0c685 Merge pull request #1917 from ceph/wip-da-update-libs3
libs3: update to latest git master of ceph/libs3

Reviewed-by: Loic Dachary <loic@dachary.org>
2014-06-05 00:42:25 +02:00
Danny Al-Gaaf
59d727de2c kv_flat_btree_async.cc: remove consecutive break after return
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-06-05 00:34:08 +02:00
Danny Al-Gaaf
82f5df4553 JournalScanner.cc: catch exception by reference
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-06-05 00:30:03 +02:00
Danny Al-Gaaf
53533ee998 KeyValueStore.cc: silence gcc -Wunused-variable
Don't assign return value of i.get_length() to a variable until
they are really used. Added comment on what is the intention of
the variables.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-06-05 00:13:57 +02:00
Danny Al-Gaaf
e24213ed26 MemStore.cc: silence gcc -Wunused-variable
Don't assign return value of i.get_length() to a variable until
they are really used. Added comment on what is the intention of
the variables.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-06-05 00:12:01 +02:00