]> www.infradead.org Git - users/hch/nvmetcli.git/commit
Ensure internal buffers are flushed json after dumping json to disk
authorChristoph Hellwig <hch@lst.de>
Thu, 24 Mar 2016 15:42:26 +0000 (16:42 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 24 Mar 2016 15:42:26 +0000 (16:42 +0100)
commit6cbf4b92cfd857ed76f5d46689bd68c517cdcb81
tree499eb57e7858fe620f7e584f72b47088a86af8ae
parenta202c7cba3b30136ad2cf39c41f10a02792ef2f8
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>
nvmet/nvme.py