PreviousNext

Opening a Backing Store

The dce_db_open( ) routine creates a new backing store or opens an existing one. The backing store is identified by a filename. There are flags to permit the following choices:

· Create a new backing store or open an existing one.

· Create a new backing store indexed by name or UUID. (The choice depends upon the server's purpose.) This index is called the backing store key.

· Open an existing backing store read/write or read-only.

· Use the standard header or not.

Every backing store is created with one of the two possible index schemes, by name or by UUID, and you cannot subsequently open it for use with the other scheme. Also, once a backing store has been created with (or without) standard headers, you cannot subsequently open it the other way.

The routine returns a handle by which subsequent operations identify the backing store.

The following conventions for filenames are recommended:

xxx.acl ACL storage.

xxx.db Backing store filename.