Reviewers: mp+185715_code.launchpad.net, Message: Please take a look. Description: environs/filestorage: optional atomic Put As requested in review of manual-bootstrap: https://code.launchpad.net/~axwalk/juju-core/manual-bootstrap/+merge/184714 A new parameter is added to NewFileStorageWriter to specify a temporary directory. Put will now write to a temporary file in this location, and then move it to the final destination; as long as the temporary directory exists on the same filesystem as the storage directory, this should be atomic. As with io/ioutil TemporaryFile, if the temporary directory is blank, os.TempDir will be used to get the default temporary directory. https://code.launchpad.net/~axwalk/juju-core/filestorage-write-tmpdir/+merge/185715 (do not edit description out of merge proposal) Please review this at https://codereview.appspot.com/13727043/ Index: [revision details] === added file '[revision details]' --- [revision details] 2012-01-01 00:00:00 +0000 +++ [revision details] 2012-01-01 00:00:00 +0000 @@ -0,0 +1,2 @@ +Old revision: tarmac-20130916061421-7r11uoyztquho14o +New revision: