2 header for HSM store backends
6 initialise the link to the HSM store
8 struct hsm_store_context *hsm_store_init(void);
11 open a file handle in the HSM store
13 struct hsm_store_handle *hsm_store_open(struct hsm_store_context *,
14 dev_t device, ino_t inode, bool readonly);
17 return an error message for the last failed operation
19 const char *hsm_store_errmsg(struct hsm_store_context *ctx);
25 int hsm_store_connect(struct hsm_store_context *ctx, const char *fsname);
28 read from an open handle
30 size_t hsm_store_read(struct hsm_store_handle *, uint8_t *buf, size_t n);
33 write to an open handle
35 int hsm_store_write(struct hsm_store_handle *, uint8_t *buf, size_t n);
40 int hsm_store_close(struct hsm_store_handle *);
43 shutdown the link to the store
45 void hsm_store_shutdown(struct hsm_store_context *);
48 remove a file from the store
50 int hsm_store_remove(struct hsm_store_context *ctx,
51 dev_t device, ino_t inode);