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>
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>
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>
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>
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>
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>
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>
Match prototype and implementation argument names and types
(textually, that is use std:: prefix).
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
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>
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>
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>