changeset 1280:250aed8c967d

objstore: stubs for objstore_{sym,}link For now, they simply return -ENOTSUP. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Fri, 16 Dec 2022 20:25:01 -0500
parents ea51bd7cb9f5
children fe84110a0b10
files src/objstore/include/nomad/objstore.h src/objstore/obj_ops.c
diffstat 2 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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)
 {