Mercurial > nomad
changeset 763:1b5c5f3af9b5
objstore: document the difference between obj_* and dir_* functions
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Mon, 30 Mar 2020 11:00:34 -0400 |
parents | 16b4a319401c |
children | dd2a3aad09cf |
files | src/objstore/objstore_impl.h |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/objstore/objstore_impl.h Mon Mar 30 11:00:07 2020 -0400 +++ b/src/objstore/objstore_impl.h Mon Mar 30 11:00:34 2020 -0400 @@ -64,6 +64,7 @@ const struct noid *oid, const struct nvclock *clock); +/* add various transaction ops to the transaction */ extern int obj_cow(struct txn *txn, struct objstore_open_obj_info *open); extern int obj_create(struct txn *txn, const struct nattr *attrs, struct noid *oid); @@ -72,6 +73,7 @@ extern void obj_write(struct txn *txn, struct objver *ver, struct buffer *buf, uint64_t offset); +/* read/manipulate a directory */ extern int dir_lookup_one(struct objver *dirver, const char *name, const struct noid *desired, struct noid *child, uint8_t *type);