filestore: OP_COLL_SETATTRS missed

  Add handling for use by PG import feature
  Add transaction dump

Signed-off-by: David Zafman <david.zafman@inktank.com>
osd: Create static PG::_write_log() function

Signed-off-by: David Zafman <david.zafman@inktank.com>
osd: Add flag to force version write in _write_info()

Signed-off-by: David Zafman <david.zafman@inktank.com>
osd: Make clear_temp() public for use by remove

Signed-off-by: David Zafman <david.zafman@inktank.com>
tools/ceph-filestore-dump: Error messages lost because stderr is closed

Use cout instead of cerr for command errors
Use cerr for debug mode because stderr is avail
Output map_epoch in debug mode
Fix a message and only for debug mode

Signed-off-by: David Zafman <david.zafman@inktank.com>
tools/ceph-filestore-dump: Implement remove, export and import

Change local names to be clearer
Break real_log() into common function get_log()
Move infos_oid, biginfo_oid and log_oid to globals for general use

Feature: #4201 (osd: data loss: pg export/import/remove)

Signed-off-by: David Zafman <david.zafman@inktank.com>
Use collection_getattrs and collection_setattrs to get all user coll attrs

This will be squashed before final merge.
Review changes (will squash)

Fix lines longer than 80 chars
Use FIXED_LENGTH instead of sizeof(super_header)
Add default constructor for super_header
Initialize infos_oid and debug globals
Fixed missed return check from write_section()
Improve variable name "max" -> "next"