summaryrefslogtreecommitdiffstats
path: root/inc/dnbd3/config/cow.h
diff options
context:
space:
mode:
authorSimon Rettberg2024-04-08 16:07:28 +0200
committerSimon Rettberg2024-05-13 18:26:42 +0200
commitc4a26bb3930dfee339461322719f7f9a94c8de52 (patch)
treed5077dd53bb04dd7f070d22f58f7fc13852c108c /inc/dnbd3/config/cow.h
parentgithub: Update cow test (diff)
downloaddnbd3-c4a26bb3930dfee339461322719f7f9a94c8de52.tar.gz
dnbd3-c4a26bb3930dfee339461322719f7f9a94c8de52.tar.xz
dnbd3-c4a26bb3930dfee339461322719f7f9a94c8de52.zip
[FUSE] Rename COW API endpoints again
Add a version to the URL, rest can be configured dynamically by -C as it's a simple prefix.
Diffstat (limited to 'inc/dnbd3/config/cow.h')
-rw-r--r--inc/dnbd3/config/cow.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/inc/dnbd3/config/cow.h b/inc/dnbd3/config/cow.h
index a7f3615..d3be949 100644
--- a/inc/dnbd3/config/cow.h
+++ b/inc/dnbd3/config/cow.h
@@ -13,8 +13,9 @@
#define COW_SHOW_UL_SPEED 1 // enable display of ul speed in cow status file
#define COW_MAX_IMAGE_SIZE (1000LL * 1000LL * 1000LL * 1000LL) // Maximum size an image can have(tb*gb*mb*kb)
// +++++ COW API Endpoints +++++
-#define COW_API_CREATE "%s/api/file/create"
-#define COW_API_UPDATE "%s/api/file/update?guid=%s&clusterindex=%lu"
-#define COW_API_START_MERGE "%s/api/file/merge"
+#define COW_API_PREFIX "%s/v1/"
+#define COW_API_CREATE COW_API_PREFIX "file/create"
+#define COW_API_UPDATE COW_API_PREFIX "file/update?guid=%s&clusterindex=%lu"
+#define COW_API_START_MERGE COW_API_PREFIX "file/merge"
#endif