A large amount of cleanup for multipart uploads; preparation work for upcoming multi-threaded upload support.

Functional changes are limited to the multipart upload process. Each uploaded part is now verified against a local md5sum.



git-svn-id: http://s3fs.googlecode.com/svn/trunk@318 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
ben.lemasurier@gmail.com 2011-02-15 23:32:27 +00:00
parent 1a79d451c5
commit 00bde54d0a
3 changed files with 451 additions and 466 deletions

View File

@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(s3fs, 1.43)
AC_INIT(s3fs, 1.44)
AC_CANONICAL_SYSTEM

File diff suppressed because it is too large Load Diff

View File

@ -5,6 +5,7 @@
#include <map>
#include <string>
#include <vector>
#include <curl/curl.h>
#include <fuse.h>
@ -90,6 +91,10 @@ static struct fuse_operations s3fs_oper;
string urlEncode(const string &s);
string lookupMimeType(string);
string initiate_multipart_upload(const char *path, off_t size, headers_t meta);
string upload_part(const char *path, const char *source, int part_number, string upload_id);
static int complete_multipart_upload(const char *path, string upload_id, int n_parts, vector <string> etags);
string md5sum(const char *path);
static int get_stat_cache_entry(const char *path, struct stat *buf);
static void add_stat_cache_entry(const char *path, struct stat *st);