From: Christoph Hellwig Date: Wed, 1 Jun 2016 18:26:27 +0000 (+0200) Subject: move the default config into a /etc/nvmet/ X-Git-Tag: v0.2~6 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a41c6de4e419d54a1e468bb80f5d3597082dcfa6;p=users%2Fhch%2Fnvmetcli.git move the default config into a /etc/nvmet/ no need to clutter /etc directly. Signed-off-by: Christoph Hellwig --- 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):