salt/salt/fileserver
Warren Turkal 0966dd2766 Make s3fs work better.
S3 uses https ETag headers. In some cases (non-multipart uploaded
files), the ETag header is the md5sum of the file. In other cases
(multipart uploaded files) the Etag does not correspond to anything
calculable locally. In that case, files used for the salt filesystem
backend would be downloaded every time the s3 cache timeout expires (a
static 30 seconds). Fortunately, non-md5sum ETags have a hyphen in them.
This patch applies the following logic to such files. If the cached
file is the same size in bytes and has a later last modification time,
it will be considered up to date and will not be downloaded. Otherwise,
it will be updated.

(cherry picked from commit 858e5f9c1d)
Signed-off-by: Warren Turkal <wt@signalfuse.com>

Conflicts:
	salt/fileserver/s3fs.py
2014-09-11 12:03:58 -07:00
..
__init__.py Fix critical filelist infinite loop race 2014-07-19 00:14:18 +02:00
gitfs.py Remove obsoleted variable PYGIT2_TRANSPORTS 2014-08-21 00:17:28 -05:00
hgfs.py Use exc_info_on_loglevel instead of exc_info 2014-08-10 04:00:40 +01:00
minionfs.py Fix PEP8 E713 - test for membership should be "not in" 2014-06-06 10:21:56 +01:00
roots.py Change loglevel to warning 2014-06-30 13:23:45 -05:00
s3fs.py Make s3fs work better. 2014-09-11 12:03:58 -07:00
svnfs.py Changed versionadded for client, fileserver, netapi, and pillar files 2014-07-15 18:26:04 -06:00