On Mon, Apr 30, 2012 at 13:50, Sage Weil <[email protected]> wrote:
> The real question here is how *should* we be storing omap values when we
> export to/import from regular files?  A specially-marked (with xattr) .db
> file?

Does just adding a .db suffix make the name safe? If yes, xattr is not
needed; if no, it's not enough. Reading src/rados_export.cc and
src/rados_sync.cc, I see nothing like that. What if I have objects
"foo" and "foo.db" in a pool?

Note to self: the only thing avoiding collisions for e.g. "foo/" and
"foo$" is the hash.

> A related problem is how to store placement key strings for objects with
> modified placement; I can't remember if we already did something for that
> yet or not (maybe specially-named xattr?).

Commit 717621f66eb7da54c0000ff52985235dc6a17843, combined with nothing
else touching src/rados_export.cc after it, makes me think we don't
preserve the locator.
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to