systemd support in ceph-disk activate

previous code just fails for systemd with an error

Signed-off-by: Owen Synge <osynge@suse.com>
doc: Add file system osd config settings
Add documentation for osd mkfs and osd mount options.

Signed-off-by: Kevin Dalley <kevin@kelphead.org>
rgw: Export user stats in get-user-info Adminops API

Fixes: #9359

Signed-off-by: Ray Lv <raylv@yahoo-inc.com>
rgw: PutObjMetadata, clear bufferlist before appending into it

Fixes: #9576
Backport: firefly, dumpling

We need to completely rewrite the bufferlist, not append into it.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
rgw: rados->set_attrs() updates bucket index

Fixes: #5595
Backport: dumpling, firefly
We need to update the bucket index when updating object attrs, otherwise
we're missing meta changes that need to be registered. It also
solves issue of bucket index not knowing about object acl changes,
although this one still requires some more work.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
rgw: swift GET / HEAD object returns X-Timestamp field

Fixes: #8911
Backport: giant, firefly, dumpling
Swift clients expect X-Timestamp header, dump it.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
msg/simple: do not stop_and_wait on mark_down

We originally blocked in mark_down for fast dispatch threads
to complete to avoid various races in the code.  Most of these
were in the OSD itself, where we were not prepared to get
messges on connections that had no attached session.  Since
then, the OSD checks have been cleaned up to handle this.
There were other races we were worried about too, but the
details have been lost in the depths of time.

Instead, take the other route: make mark_down never block on
dispatch.  This lets us remove the special case that
was added in order to cope with fast dispatch calling
mark_down on itself.

Now, the only stop_and_wait() user is the shutdown sequence.

Signed-off-by: Sage Weil <sage@redhat.com>
Revert "Objecter: disable fast dispatch of CEPH_MSG_OSD_OPREPLY messages"

This reverts commit 3f23709c474292f9239f77a6cce26309fc86ce29.

We have changed mark_down() behavior so that it no longer blocks on
fast dispatch.  This makes the objecter reply handler safe again.

Fixes: #9598
Signed-off-by: Sage Weil <sage@redhat.com>
rgw: correct "If-Modified-Since" handle.

Normally client will use `Last-Modified` of server returned, as the
value of `If-Modified-Since`. So the `ctime` is exactly equal to
`*mod_ptr`, and rgw should return `Not Modified`, otherwise the cache
will never worked.

Signed-off-by: VRan Liu <gliuwr@gmail.com>
remove ceph_dupstore

This is broken and useless.

Signed-off-by: Sage Weil <sage@redhat.com>
osd, filestore: move convertfs into FileStore

There is no reason for this level of detail to be exposed to the OSD.

There is one significant change here: we are not touching the SnapMapper
in the FileStore collection removal.  This is, most likely, fixing a bug.

Signed-off-by: Sage Weil <sage@redhat.com>
osd, filestore: mount in upgrade() caller

Signed-off-by: Sage Weil <sage@redhat.com>
osd, filestore: move automatic upgrade into mount()

Signed-off-by: Sage Weil <sage@redhat.com>
os/ObjectStore: remove version calls from interface

No reason to expose these.

Signed-off-by: Sage Weil <sage@redhat.com>
os/FileStore: remove old collection conversion code

This relies on collection_add and _remove, which we want to kill.  Make
people upgrade to firefly first.

Signed-off-by: Sage Weil <sage@redhat.com>
osd: s/collection_remove/remove/

The implementations are identical.

Signed-off-by: Sage Weil <sage@redhat.com>
ceph_test_filestore_idempotent_sequence: use collection_move

Signed-off-by: Sage Weil <sage@redhat.com>
ceph_test_objectstore: s/collection_remove/remove/

They are identical.

Signed-off-by: Sage Weil <sage@redhat.com>
os/ObjectStore: remove collection_{add,remove}

Move the add+remove a move normally translates to directly into
that method.

Signed-off-by: Sage Weil <sage@redhat.com>
os/FileStore: assume COLL_ADD is always followed by COLL_REMOVE

In practice, it is.  Turn this into a "single" atomic op.

Signed-off-by: Sage Weil <sage@redhat.com>