]> www.infradead.org Git - users/hch/nvmetcli.git/commit
nvme.py: Sync the containing directory
authorTony Asleson <tasleson@redhat.com>
Thu, 26 Mar 2020 18:07:47 +0000 (13:07 -0500)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Apr 2020 09:00:14 +0000 (11:00 +0200)
commit12a8764c6113887c5691cab6a92bb1c13414395c
treec2b23a15c2ac866bf5615667b55120add85c7589
parent226b73a4ae317c6aa3c7b00da2adbd1ec769ce34
nvme.py: Sync the containing directory

It's apparent that some thought went into making sure the config
file makes it atomically to the fs.  However, one thing is missing
which is doing a fsync on the containing directory of the config file.

See: https://lwn.net/Articles/457667/

Signed-off-by: Tony Asleson <tasleson@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
nvmet/nvme.py