Unmap takes a device now, and uses the major number
to find the right sequence number in sysfs.
Also updated the man page.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Also include missing headers and make it linkable with C,
since it's duplicated from mount.ceph.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
testlibrbd.c: In function 'write_test_data':
testlibrbd.c:191: warning: comparison between signed and unsigned integer expressions
testlibrbd.c: In function 'aio_read_test_data':
testlibrbd.c:207: warning: comparison between signed and unsigned integer expressions
testlibrbd.c: In function 'read_test_data':
testlibrbd.c:222: warning: comparison between signed and unsigned integer expressions
Signed-off-by: Sage Weil <sage@newdream.net>
We accidentally broke it in our last round of changes to support
standby-replay; patch it up again.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
testlibrbd.c: In function 'write_test_data':
testlibrbd.c:191: warning: comparison between signed and unsigned integer expressions
testlibrbd.c: In function 'aio_read_test_data':
testlibrbd.c:207: warning: comparison between signed and unsigned integer expressions
testlibrbd.c: In function 'read_test_data':
testlibrbd.c:222: warning: comparison between signed and unsigned integer expressions
Signed-off-by: Sage Weil <sage@newdream.net>
Apparently using "as" in "except" blocks is a new (and not
backwards-compatible) thing in Python 2.6.x. Who knew?
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
We now register observers on mon_osd_full_ratio and nearfull_ratio
to update the OSD full/nearfull lists.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Previously these sets were only modified when applying an incremental,
which might have caused problems when restarting monitors. Whoops!
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Objects can now register as configuration observers interested in a
subset of the configuration keys. The observers will be told exactly
which keys have changed.
The first user is dout, which now no longer needs the infamous SIGHUP
hack to know when to reopen the config file.
librados: Remove rados_reopen_log, which was basically a means for the
library user to trigger the SIGHUP behavior.
Changes are accumulated and applied all at once by apply_changes. This
function is called as part of common_init, and after every call to
injectargs.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Since logging options are per-config, logically DoutStreambuf instances
should also be per-config. This also allows us to eliminate the
"if (uninitialized)" checks at the beginning of every call to dout.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
This was used to implement log_to_stdout, but that doesn't exist any
more. Instead of we have log_to_stderr and the other stuff.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
pg_remove has been included for longer than we've had versions
in the struct, so this check for end is useless -- if pg_remove
wasn't encoded we're already broken by decoding the version at
the beginning.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>