Commit Graph

21862 Commits

Author SHA1 Message Date
Sage Weil
efa1bea17d librbd: expose image striping properties
Fix C and C++ APIs.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-15 15:34:03 -07:00
Sage Weil
e0b4638e3d cls_rbd: fix snap key filtering
Ignore any omap keys that don't begin with "snap_".  We got away with this
previously because it was (lexiographically) the last key for the object.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-15 15:34:03 -07:00
Sage Weil
8143206253 rbd: allow striping to be specified on image creation
Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-15 15:34:03 -07:00
Sage Weil
d6501dbed5 librbd: allow striping to be specified on image creation
Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-15 15:34:03 -07:00
Sage Weil
4ef9a3d2c4 librbd: load striping information when opening image
Silently tolerate an -ENOEXEC or -EINVAL (which means striping is not
present or is not supported by the osd class).

Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-15 15:34:02 -07:00
Sage Weil
2e403ef2c9 cls_rbd: add stripe_unit, stripe_count metadata
* add STRIPINGV2 feature
* add stripe_unit, stripe_count keys
* add accessor methods

Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-15 15:34:02 -07:00
Sage Weil
18a3cee29e client: avoid possible null deref
CID 716910 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)
At (6): Dereferencing null pointer "mds_session".

Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-15 14:22:31 -07:00
Sage Weil
0095a13824 client: fix shadowing in inode ctor
CID 728080 (#1 of 1): Incorrect sizeof expression (BAD_SIZEOF)
Taking the size of pointer parameter "layout" is suspicious.

At (2): Non-static class member field "layout.fl_stripe_unit" is not initialized in this constructor nor in any functions that it calls.
At (4): Non-static class member field "layout.fl_stripe_count" is not initialized in this constructor nor in any functions that it calls.
At (6): Non-static class member field "layout.fl_object_size" is not initialized in this constructor nor in any functions that it calls.
At (8): Non-static class member field "layout.fl_cas_hash" is not initialized in this constructor nor in any functions that it calls.
At (10): Non-static class member field "layout.fl_object_stripe_unit" is not initialized in this constructor nor in any functions that it calls.
At (12): Non-static class member field "layout.fl_unused" is not initialized in this constructor nor in any functions that it calls.
CID 717206 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
At (14): Non-static class member field "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-10-15 14:20:51 -07:00
Sage Weil
d8bb685d84 client: init readdir fields
At (2): Non-static class member "readdir_offset" is not initialized in this constructor nor in any functions that it calls.
At (4): Non-static class member "readdir_end" is not initialized in this constructor nor in any functions that it calls.
At (6): Non-static class member "readdir_num" is not initialized in this constructor nor in any functions that it calls.
CID 717207 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
At (8): Non-static class member "tid" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-15 14:19:10 -07:00
Gary Lowell
55115642f1 Makefile: Add CRYPTO_C(XX)FLAGS to librdb 2012-10-15 14:14:35 -07:00
Gary Lowell
4c134a42d9 Makefiles: Add ar-lib to .gitignore. 2012-10-15 14:14:35 -07:00
Gary Lowell
f525534b5f autogen.sh: On some platforms, the m4 is created earlier. 2012-10-15 14:14:35 -07:00
Gary Lowell
d28ba52b5f autogen.sh: Create m4 directory for leveldb submodule. 2012-10-15 14:14:35 -07:00
Gary Lowell
0cc828ba22 Makefiles: Update submodule reference to latestes for leveldb. 2012-10-15 14:14:35 -07:00
Gary Lowell
3ecd289139 Makefile: update submodule reference for leveldb. 2012-10-15 14:14:35 -07:00
Gary Lowell
0219b66e04 leveldb: fix-up submodule entry. 2012-10-15 14:14:35 -07:00
Gary Lowell
071fdc217a Makefile: Improve test for boost system library. 2012-10-15 14:14:35 -07:00
Gary Lowell
7ea734c472 Makefiles: Missing boost library should not be fatal. 2012-10-15 14:14:34 -07:00
Gary Lowell
151d9403c5 Makefiles: ignore the m4 macro directory 2012-10-15 14:14:34 -07:00
Gary Lowell
3658157b60 Makefile: Updates to eliminates warnings, add test for boost system lib. 2012-10-15 14:14:34 -07:00
Sage Weil
a1d8267c57 cls_rgw: init var in ctor
CID 727992 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
At (2): Non-static class member "tag_timeout" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-15 14:14:28 -07:00
Yehuda Sadeh
8d7c8e3b86 rgw: don't add port to url if already has one
Fixes: #3296
Specifically, is host name string already has ':', then
don't try to append theport (swift auth).

backport: argonaut
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-10-15 09:59:14 -07:00
Tommi Virtanen
662c69e525 ceph-disk-prepare, debian/control: Support external journals.
Previously, ceph-disk-* would only let you use a journal that was a
file inside the OSD data directory. With this, you can do:

  ceph-disk-prepare /dev/sdb /dev/sdb

to put the journal as a second partition on the same disk as the OSD
data (might save some file system overhead), or, more interestingly:

  ceph-disk-prepare /dev/sdb /dev/sdc

which makes it create a new partition on /dev/sdc to use as the
journal. Size of the partition is decided by $osd_journal_size.
/dev/sdc must be a GPT-format disk. Multiple OSDs may share the same
journal disk (using separate partitions); this way, a single fast SSD
can serve as journal for multiple spinning disks.

The second use case currently requires parted, so a Recommends: for
parted has been added to Debian packaging.

Closes: #3078
Closes: #3079
Signed-off-by: Tommi Virtanen <tv@inktank.com>
2012-10-15 09:34:36 -07:00
Chris Dunlop
4db12511f7 logrotate: fix bash syntax
Introduced by 32a6394be0.

Signed-off-by: Chris Dunlop <chris@onthe.net.au>
2012-10-13 22:34:29 -07:00
Sage Weil
251649cdfa doc: remove cephfs warning
Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-13 20:13:35 -07:00
Sage Weil
168bd10e4d doc: fix file system recs
- drop xattr warning; this is not an issue with the leveldb stuff.
- the ext3 vs xattr discussion was somewhat inaccurate.  also, no longer
  relevant.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-13 20:12:48 -07:00
Yehuda Sadeh
389fac7a82 rgw: replace bucket creation with explicit pool creation
Following a recent cleanup, usage should create a pool and
not a bucket.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-10-12 14:03:02 -07:00
Sam Lang
5c5feaec64 Merge branch 'wip-fix-getdents' 2012-10-11 14:19:04 -05:00
Dan Mick
0ec45201f5 rbd: don't issue usage on errors
Change bare calls to usage() to an informative targeted error message
Remove all calls to usage() except when requested with -h/--help
Regularize all errors to start with rbd:
Remove a few commented cerrs, wrap cerr calls at 80 cols

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-10 17:41:27 -07:00
John Wilkins
29bd476762 Merge branch 'master' of https://github.com/ceph/ceph 2012-10-10 15:16:17 -07:00
John Wilkins
7477a0812a doc: Added radosgw temp remove.
fixes: #3278

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-10-10 15:15:32 -07:00
John Wilkins
041081caa8 doc: Minor clean-up.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-10-10 15:14:05 -07:00
John Wilkins
94aec21f23 doc: minor clean-up.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-10-10 15:13:41 -07:00
Noah Watkins
fc34f16af5 rgw: fix compilation
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2012-10-10 15:00:03 -07:00
John Wilkins
c0f0317b77 Merge branch 'master' of https://github.com/ceph/ceph
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-10-10 14:38:50 -07:00
John Wilkins
8069aed993 Merge branch 'master' of https://github.com/ceph/ceph 2012-10-10 14:36:51 -07:00
John Wilkins
8f07729ad1 Merge branch 'wip-rbd-openstack-doc' 2012-10-10 14:36:13 -07:00
Sage Weil
15775f89c5 mon: drop command replies on paxos reset
If paxos resets, do not send the reply for the commit we were waiting for;
let the command be reprocessed and re-proposed.

Among other things, this could lead to nondeterministic results for
'ceph osd create <uuid>'.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-10 14:19:58 -07:00
John Wilkins
06a8d9534d doc: Editing and cleanup.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-10-10 13:22:47 -07:00
Sam Lang
410ebacb83 test: Allow randomized tests to be repeatable
Outputs the random number used for the Dir_ls
test and allows setting the value through an
environment variable.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-10-09 21:11:19 -05:00
Sam Lang
baf54b2e1e client: Reset cache_name pos on dirp
Reset the at_cache_name field on the directory
stream pointer for rewinddir.
This fixes a bug where getdents after readdir at
the end of the stream would return invalid
results after rewinddir had been called.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-10-09 20:35:40 -05:00
Dan Mick
8518115e25 rbd cli tests: copy.sh was looking for old version of rbd ls -l output
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2012-10-09 17:13:49 -07:00
tamil
0442607745 clean up of rbd functionality script
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2012-10-09 16:42:57 -07:00
tamil
73462f0589 cleaned up the perl module
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2012-10-09 16:40:55 -07:00
tamil
bd471696cb cleaned up the script
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2012-10-09 16:16:16 -07:00
Yehuda Sadeh
11c51dc0d5 radosgw-admin: don't try to parse date if wasn't specified
This fixes a regression following the merge of wip-admin-rest.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2012-10-09 14:57:11 -07:00
Sage Weil
f268d4ef60 ceph-debugpack: updates
- avoid copying data around; tar things directly into the tgz
- 'ceph report' instead of all the little bits
- unrotated logs only
- ensure target doesn't already exist

Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-09 14:13:57 -07:00
Josh Durgin
9810517d07 doc: separate config from I/O in openstack diagram
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-09 14:06:40 -07:00
Josh Durgin
4ebe8c26c3 doc: clarify rbd openstack docs
* give upstart example
* restart all relevant services
* explain OpenStack terminology more

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2012-10-09 13:53:43 -07:00
Tommi Virtanen
8fab972905 gitignore: Update to match packaging changes and additions, rest-bench addition.
Signed-off-by: Tommi Virtanen <tv@inktank.com>
2012-10-09 13:38:45 -07:00