nbd-proxy: add configuration facility
Add a little configuration facility. We'll later add a method to
integrate this with UI-side configuration, so it's implmented as json.
We add a (temporarily required) argument to specify which configuration
to use.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/config.sample.json b/config.sample.json
new file mode 100644
index 0000000..dc8e0f2
--- /dev/null
+++ b/config.sample.json
@@ -0,0 +1,8 @@
+{
+ "timeout": 30,
+ "configurations": {
+ "0": {
+ "nbd-device": "/dev/nbd0"
+ }
+ }
+}