Skip to content

pmemobj_open failing to open file after it has been copied? #5886

Open
@mdorier

Description

@mdorier

QUESTION: pmemobj_open fails to open file after it has been copied to another path?

Details

I have a code that creates a pmem pool using pmemobj_create, then writes and persists some data in it. It then copies the file to another path and use pmemobj_open to open the file at its new path. I can confirm that, before the call to pmemobj_open, the copy has exactly the same content as the original, and the same file permissions. The only thing that changes is its path. The call to pmemobj_open to open the copied file fails, with pmemobj_errormsg() returning "pool initialization failed". Additionally, after the call to pmemobj_open, the content of the file is different (some bytes have been changed). Any idea what the problem is?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions