ceph_objectstore_tool: Check that pool exists before allowing import

Signed-off-by: David Zafman <dzafman@redhat.com>
ceph_objectstore_tool: Add osdmap to export format

Move osdmap into metadata_section
On export put metadata_section before file data
Check for splits and fail import if there were splits

Signed-off-by: David Zafman <dzafman@redhat.com>
ceph_objectstore_tool: read_fd() doesn't handle ^D from tty stdin, don't allow

Signed-off-by: David Zafman <dzafman@redhat.com>
ceph_objectstore_tool: Verify that object pool and pgid pool match

Also, earlier check for invalid --pgid with import op

Signed-off-by: David Zafman <dzafman@redhat.com>
ceph_objectstore_tool: Fix import-rados skipping of snapshots

Signed-off-by: David Zafman <dzafman@redhat.com>
ceph_objectstore_tool: Get g_ceph_context available to import-rados

Signed-off-by: David Zafman <dzafman@redhat.com>
ceph_objectstore_tool: import-rados shouldn't import internal namespace objects

Signed-off-by: David Zafman <dzafman@redhat.com>
ceph_objectstore_tool: On import following a split skip objects no longer in pg

Signed-off-by: David Zafman <dzafman@redhat.com>
ceph_objectstore_tool: Handle import of pg which OSD has split

Signed-off-by: David Zafman <dzafman@redhat.com>
Fix import split handling, comment about writing of the osdmap
Squash into 8e4a4f525d4fbcb015f300a804030f098c1da306