]> www.infradead.org Git - users/hch/nvmetcli.git/log
users/hch/nvmetcli.git
9 years agonvmet, nvmetcli: implement enable/disable semantics
Christoph Hellwig [Fri, 25 Mar 2016 15:00:53 +0000 (16:00 +0100)]
nvmet, nvmetcli: implement enable/disable semantics

Signed-off-by: Christoph Hellwig <hch@lst.de>
9 years agonvmetcli: improve error reporting
Christoph Hellwig [Fri, 25 Mar 2016 13:59:01 +0000 (14:59 +0100)]
nvmetcli: improve error reporting

Report a nice error message in red instead of a python backtrace.

Signed-off-by: Christoph Hellwig <hch@lst.de>
9 years agonvmetcli: add description strings for the Namespace class
Christoph Hellwig [Thu, 24 Mar 2016 16:19:36 +0000 (17:19 +0100)]
nvmetcli: add description strings for the Namespace class

Signed-off-by: Christoph Hellwig <hch@lst.de>
9 years agonvmetcli: introduce UINode class
Christoph Hellwig [Fri, 25 Mar 2016 13:53:54 +0000 (14:53 +0100)]
nvmetcli: introduce UINode class

This allows calling saveconfig from each context, and factors some common
group handling code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
9 years agonvmet: make attr_groups public for nvmetcli
Christoph Hellwig [Fri, 25 Mar 2016 13:49:48 +0000 (14:49 +0100)]
nvmet: make attr_groups public for nvmetcli

Signed-off-by: Christoph Hellwig <hch@lst.de>
9 years agonvmetcli: remove the unused Controllers and Controller classes
Christoph Hellwig [Fri, 25 Mar 2016 13:53:37 +0000 (14:53 +0100)]
nvmetcli: remove the unused Controllers and Controller classes

Signed-off-by: Christoph Hellwig <hch@lst.de>
9 years agonvmetcli: remove unused DEFAULT_SAVE_FILE defintion
Christoph Hellwig [Fri, 25 Mar 2016 12:14:58 +0000 (13:14 +0100)]
nvmetcli: remove unused DEFAULT_SAVE_FILE defintion

Signed-off-by: Christoph Hellwig <hch@lst.de>
9 years agoEnsure internal buffers are flushed json after dumping json to disk
Christoph Hellwig [Thu, 24 Mar 2016 15:42:26 +0000 (16:42 +0100)]
Ensure internal buffers are flushed json after dumping json to disk

A power-outage, unexpected reboot, etc can lead to zero byte file
after a saveconfig.

Based on a rtslib-fb patch from Jon Magrini <jmagrini@redhat.com>.

Signed-off-by: Christoph Hellwig <hch@lst.de>
9 years agonvmet: fix up various docstrings
Christoph Hellwig [Thu, 24 Mar 2016 15:23:47 +0000 (16:23 +0100)]
nvmet: fix up various docstrings

Signed-off-by: Christoph Hellwig <hch@lst.de>
9 years agonvmetcli: fix up the default config file to agree with the documentation
Christoph Hellwig [Thu, 24 Mar 2016 15:20:57 +0000 (16:20 +0100)]
nvmetcli: fix up the default config file to agree with the documentation

Signed-off-by: Christoph Hellwig <hch@lst.de>
9 years agonvmet: 0 is not a valid namespace ID
Christoph Hellwig [Thu, 24 Mar 2016 15:19:58 +0000 (16:19 +0100)]
nvmet: 0 is not a valid namespace ID

Signed-off-by: Christoph Hellwig <hch@lst.de>
9 years agonvmet: load the nvmet module if not already loaded
Christoph Hellwig [Wed, 23 Mar 2016 20:16:16 +0000 (21:16 +0100)]
nvmet: load the nvmet module if not already loaded

Signed-off-by: Christoph Hellwig <hch@lst.de>
9 years agonvmetcli: print a useful warning when not called as root user
Christoph Hellwig [Wed, 23 Mar 2016 19:21:07 +0000 (20:21 +0100)]
nvmetcli: print a useful warning when not called as root user

Signed-off-by: Christoph Hellwig <hch@lst.de>
9 years agoinitial public release v0.1
Christoph Hellwig [Wed, 16 Mar 2016 16:44:56 +0000 (17:44 +0100)]
initial public release