From a41c6de4e419d54a1e468bb80f5d3597082dcfa6 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig <hch@lst.de> Date: Wed, 1 Jun 2016 20:26:27 +0200 Subject: [PATCH] move the default config into a /etc/nvmet/ no need to clutter /etc directly. Signed-off-by: Christoph Hellwig <hch@lst.de> --- README | 2 +- nvmet/nvme.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README b/README index 1af3ed1..41d148f 100644 --- a/README +++ b/README @@ -98,7 +98,7 @@ Saving and restoring the configuration The saveconfig and restoreconfig commands inside nvmetcli save and restore the current configuration, but you can also invoke these commands for the command line using the load and restore arguments to nvmetcli. Without -an additional file name these operate on /etc/nvmet.json. +an additional file name these operate on /etc/nvmet/config.json. To load the loop + explicit host version above do the following: diff --git a/nvmet/nvme.py b/nvmet/nvme.py index f7b4162..3316cab 100644 --- a/nvmet/nvme.py +++ b/nvmet/nvme.py @@ -24,7 +24,7 @@ import uuid import json from glob import iglob as glob -DEFAULT_SAVE_FILE = '/etc/nvmet.json' +DEFAULT_SAVE_FILE = '/etc/nvmet/config.json' class CFSError(Exception): -- GitLab