Allow backend consumers to specify file mode
Merge pull request #1939 from ethomson/readwrite_odb

Allow backend consumers to specify file mode