Commit Graph

17595 Commits

Author SHA1 Message Date
Sage Weil
dc628a5b4e secret: move null check before strlen(key_name) deref
Coverity cid: 98
Signed-off-by: Sage Weil <sage@newdream.net>
2012-01-12 16:14:52 -08:00
Yehuda Sadeh
d41ddcdf79 osd: stat op, don't compare in memory state to object
might be that object is being created by the current compound request.
2012-01-12 16:10:02 -08:00
Yehuda Sadeh
10b00316b7 rgw: don't crash when copying a zero sized object 2012-01-12 15:02:09 -08:00
Samuel Just
845aa534e3 ReplicatedPG: Do a write even for 0 length operation
Otherwise, a 0 length write to an offset past the end of the file will
cause the internal accounting to reflect the full size of the file, but
not the file on disk.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2012-01-12 13:21:19 -08:00
Samuel Just
80f57f9656 ReplicatedPG: fix stat accounting error in CEPH_OSD_OP_WRITEFULL
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2012-01-12 13:21:19 -08:00
Sage Weil
cfa39bfb23 qa/client/gen-1774.sh
Capture Alexandre's script for reproducing #1774 here for posterity, until
we write a properly harnessed test for this.  Currently, workunits can't
mount/unmount, and we don't have a way to make ceph-fuse drop it's cache.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-01-12 12:59:07 -08:00
Andrey Stepachev
1e56367e5e client: avoid taking inode ref in case of nonexistent dir
Signed-off-by: Andrey Stepachev <octo@yandex-team.ru>
Signed-off-by: Sage Weil <sage@newdream.net>
2012-01-12 10:38:33 -08:00
Sage Weil
cedd92bea6 Merge branch 'wip-makefile' 2012-01-12 10:35:03 -08:00
Sage Weil
71131371de COPYING: note licenses for all files, not just the default
This (mostly) copies debian/copyright for now, but there are format
restrictions for that file.  Suggestions for a cleaner way to handle this
are welcome.  In the meantime, this is better...

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-01-12 10:03:27 -08:00
Sage Weil
54e0dfc17f debian/copyright: note acx_pthread.m4 license
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-01-12 10:03:24 -08:00
Kacper Kowalik (Xarthisius)
6b55b6b336 Makefile: Add headers that were omitted in make dist and prevented tests from building
Signed-off-by: Kacper Kowalik (Xarthisius) <xarthisius@gentoo.org>
2012-01-12 09:17:56 -08:00
Kacper Kowalik (Xarthisius)
c9e028f4e5 Makefile: Handle corner case of crypto++ correctly
i.e. use c++ while compiling, append to CRYPTO_LIBS instead of LIBS

Signed-off-by: Kacper Kowalik (Xarthisius) <xarthisius@gentoo.org>
2012-01-12 09:17:42 -08:00
Kacper Kowalik (Xarthisius)
c5144eed4e Makefile: Use ACX_PTHREAD in configure.ac and resulting flags in src/Makefile.am
instead of hardcoded flags

Signed-off-by: Kacper Kowalik (Xarthisius) <xarthisius@gentoo.org>
2012-01-12 09:17:24 -08:00
Kacper Kowalik (Xarthisius)
7bf01b1161 Makefile: Add recent acx_pthread.m4 that has a fix for nostdlib issue.
See http://code.google.com/p/protobuf/issues/detail?id=188 for details

Signed-off-by: Kacper Kowalik (Xarthisius) <xarthisius@gentoo.org>
2012-01-12 09:17:06 -08:00
Samuel Just
b93bf285c9 PG: gen_prefix should grab a map reference atomically
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2012-01-11 13:50:24 -08:00
Yehuda Sadeh
38b9b50307 rgw-admin: add pool rm and pools list 2012-01-11 13:37:37 -08:00
Yehuda Sadeh
e2c02543c7 rgw-admin: clean up unused commands 2012-01-11 13:05:47 -08:00
Josh Durgin
79085ad088 rados.py: avoid getting return value of void function
rados_ioctx_locator_set_key is void. The return value seems to have
been uninitialized, so the tests failed rarely.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-11 12:22:14 -08:00
Alexandre Oliva
8f9549f0e8 client: start caching readdir results after readdir_start
Use upper_bound rather than lower_bound to compute the initial pd within
insert_trace, so that we don't attempt to remove it if it happens to be
in the same frag as the new reply.

Fixes: #1774
Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-01-10 20:25:32 -08:00
Sage Weil
5d9896084e monclient: fix resolve_addrs() call
This was broken in def36668a1 it looks like.
Passing uninitialized memory to resolve_addrs(), and needlessly
allocating a buffer.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-01-10 16:39:23 -08:00
Sage Weil
f09b21eff6 resolve_addrs: return ipv4 and ipv6 addrs
Fixes: #1891
Signed-off-by: Sage Weil <sage@newdream.net>
2012-01-10 16:35:40 -08:00
Samuel Just
9e9b5c6f15 ReplicatedPG: fix typo in stats accounting in _rollback_to
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2012-01-10 16:22:30 -08:00
Greg Farnum
3b81fa5845 mon: allow specifying pg_num and pgp_num when creating new pools.
Right now this is only exposed via the monitor command interface:
osd pool create <poolname> [pg_num [pgp_num]]
but it can be expanded to other interfaces as appropriate.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-01-10 11:26:45 -08:00
Tommi Virtanen
69aface0cf auth: Fix Doxygen warnings.
Match prototype and implementation argument names and types
(textually, that is use std:: prefix).

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-01-10 11:20:56 -08:00
Tommi Virtanen
741f6d5448 Fix several doxygen warnings, to minimize noise. Only changes comments.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-01-10 11:20:56 -08:00
Tommi Virtanen
b891652877 librados: Make API docs use @note instead of @bug for now.
Asphyxiate doesn't yet support all of the Doxygen markup.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-01-10 11:20:56 -08:00
Samuel Just
1f46e7c915 FileStore: assert on ENOSPC even for SETXATTR
Otherwise we can get corrupt object attributes on ext*.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2012-01-10 11:17:42 -08:00
Greg Farnum
ac9b2d092f mds: initiate monitor reconnect if beacon acks take too long
If it takes 2*mds_beacon_grace (default 30 seconds total) seconds
to get an ack back, maybe it's the monitor and not us. Try a reconnect,
which will just add the teensiest bit of load if we're wrong.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-01-10 10:47:22 -08:00
Greg Farnum
45897b52af mds: remove beacon_killer code.
This no longer does *anything* except print out
useless warning messages.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-01-10 10:47:22 -08:00
Sage Weil
ba00f95ad6 osd: make less noise when filestore is already up to date
Signed-off-by: Sage Weil <sage@newdream.net>
2012-01-10 09:49:41 -08:00
Josh Durgin
9490b36e07 doc: add librados C aio example
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-09 19:10:11 -08:00
Josh Durgin
f99b3e0439 doc: describe some rados_pool_stat_t members
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-09 19:10:11 -08:00
Josh Durgin
ce53447df6 doc: add librados pool creation defaults
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-09 19:10:11 -08:00
Josh Durgin
dd31ff2e5c doc: add short section on documenting code
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-09 19:10:10 -08:00
Josh Durgin
0e19062c82 doc: clarify librados return codes
Adding a second @returns for specific error codes makes the sphinx output more readable.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-09 19:10:10 -08:00
Josh Durgin
547e9e3427 doc: @return -> @returns to match the sphinx output
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-09 19:10:10 -08:00
Josh Durgin
1e8b8a8d6e doc: standardize rados_tmap_* docs
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-09 19:10:10 -08:00
Josh Durgin
590520c13a doc: fix rados_version todo formatting
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-09 19:10:05 -08:00
Josh Durgin
50c9cb16ee doc: add a prefix to group names in librados.h
doxygen groups are in a global namespace.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-09 19:04:53 -08:00
Josh Durgin
d9d9e6d3ef doc: Put rados_ioctx_locator_set_key in a group so it can be cross-referenced
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-09 19:04:53 -08:00
Josh Durgin
b464b757bd doc: move rados_ioctx_get_id to the pool group
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-09 19:04:53 -08:00
Josh Durgin
b148bef3d0 doc: fix some typos in librados C API
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-09 19:03:56 -08:00
Tommi Virtanen
c960641666 doc: Switch doxygen integration from breathe to asphyxiate.
TODO: path of librados.h is now just the basename

TODO: no enum support for now

TODO: no @bug support for now

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-01-09 19:03:56 -08:00
Tommi Virtanen
78cc07f6d3 librados: Avoid using "crush_rule" as name of function argument.
"struct crush_rule" exists already, using the same identifier
confuses Doxygen.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-01-09 19:03:56 -08:00
Tommi Virtanen
aca3c62108 doxygen: Use first sentence as brief description.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-01-09 19:03:56 -08:00
Josh Durgin
b5759df82c doc: add configuration and connecting to librados C api example
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-09 19:03:56 -08:00
Josh Durgin
43952a3bcf doc: add librados C api docs
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2012-01-09 19:03:56 -08:00
Alex Elder
d3e347732d ceph: add a new "run_uml.sh" script to manage running a UML client
This script is used to automate most of what's required to run a
User-Mode Linux (UML) instance.  This is mainly of interest for
ceph client developers who might benefit from the debugger access
that UML affords.  It was written for ceph development but isn't
really dependent on ceph.  It basically makes a few assumptions and
follows some conventions, and in doing so is able to encapsulate
most of the "tricky parts" of setting up to run a UML instance.

Signed-off-by: Alex Elder <elder@dreamhost.com>
2012-01-09 18:13:41 -08:00
Yehuda Sadeh
162ac06f32 rgw: adjust log level 2012-01-09 11:40:44 -08:00
Yehuda Sadeh
1e0afb620f rgw: some cleanup 2012-01-09 10:37:11 -08:00