# HG changeset patch # User Josef 'Jeff' Sipek # Date 1671240301 18000 # Node ID 250aed8c967d236dc76179fcb5cf83399f8f4ea0 # Parent ea51bd7cb9f508f5487d13631d458af98c5312d0 objstore: stubs for objstore_{sym,}link For now, they simply return -ENOTSUP. Signed-off-by: Josef 'Jeff' Sipek diff -r ea51bd7cb9f5 -r 250aed8c967d src/objstore/include/nomad/objstore.h --- a/src/objstore/include/nomad/objstore.h Sun Dec 18 09:54:12 2022 -0500 +++ b/src/objstore/include/nomad/objstore.h Fri Dec 16 20:25:01 2022 -0500 @@ -164,6 +164,13 @@ extern int objstore_create(struct objstore_open_obj_info *dircookie, const char *name, uint32_t owner, uint32_t group, uint16_t mode, uint64_t dev, struct noid *child); +extern int objstore_symlink(struct objstore_open_obj_info *dircookie, + const char *name, uint32_t owner, uint32_t group, + uint16_t mode, const char *target, + struct noid *child); +extern int objstore_link(struct objstore_open_obj_info *dircookie, + const char *name, + struct objstore_open_obj_info *tgtcookie); extern int objstore_unlink(struct objstore_open_obj_info *dircookie, const char *name, const struct noid *desired, bool rmdir); diff -r ea51bd7cb9f5 -r 250aed8c967d src/objstore/obj_ops.c --- a/src/objstore/obj_ops.c Sun Dec 18 09:54:12 2022 -0500 +++ b/src/objstore/obj_ops.c Fri Dec 16 20:25:01 2022 -0500 @@ -422,6 +422,19 @@ return ret; } +int objstore_symlink(struct objstore_open_obj_info *diropen, const char *name, + uint32_t owner, uint32_t group, uint16_t mode, + const char *target, struct noid *child) +{ + return -ENOTSUP; +} + +int objstore_link(struct objstore_open_obj_info *diropen, const char *name, + struct objstore_open_obj_info *tgtopen) +{ + return -ENOTSUP; +} + int objstore_unlink(struct objstore_open_obj_info *diropen, const char *name, const struct noid *desired, bool rmdir) {