21 Commits

Author SHA1 Message Date
josch
e7671a6473 use correct error ENOSYS when function is not implemented 2015-01-18 08:59:14 +01:00
josch
f0a55615ae urlencode all filenames, foldernames, username and password 2015-01-16 08:49:23 +01:00
josch
3bff628066 add support for instant uploads 2015-01-15 16:52:41 +01:00
josch
90dc1c2927 protect every fuse call by mutexes to allow mounting without -s option 2014-12-29 22:47:52 +01:00
josch
02e2eec1d4 only call device/get_status every 60 seconds (hardcoded for now) 2014-12-29 22:10:41 +01:00
josch
80036b5bd9 move loop polling for upload completion into separate function 2014-12-29 13:57:53 +01:00
josch
07e545bd87 fuse/operations: explicitly cast pointer to uintptr_t to avoid problems on 32bit systems 2014-12-29 09:54:42 +01:00
josch
a0c534b803 adjust includes according to iwyu 3.5 2014-12-29 09:54:42 +01:00
root
59e7fe33f9 fix include for fcntl 2014-12-27 17:51:49 -06:00
root
397063b026 added state 98 as a terminal state 2014-12-26 14:48:26 -06:00
josch
ddaf8ed86d fuse: make access a no-op 2014-12-20 23:38:19 +01:00
josch
40f09aebd6 fuse: add rename 2014-12-19 10:15:31 +01:00
josch
862bdcff80 add stubs for all fuse functions 2014-12-19 01:59:23 +01:00
josch
171fd815f2 allow to change local files
- fuse/filecache:
     * add filecache_upload_patch
     * allow opening files in modes other than RDONLY
 - fuse/hashtbl:
     * add folder_tree_upload_patch
 - fuse/operations:
     * allow opening files in modes other than RDONLY
     * add members to private context which allow tracking of
       not-yet-uploaded files and files opened for writing and
       files opened in read-only mode
 - mfapi/apicalls/upload_patch:
     * supply x-filename and x-filesize headers
 - mfapi/apicalls/upload_simple:
     * do not supply the x-filehash header as it is not used by the
       server
 - utils/hash:
     * hex characters must be lower case for the server
 - utils/strings:
     * clean up unused functions strdup_join, strdup_substr,
       string_chomp
 - utils/stringv:
     * complete rewrite with different string vector implementation
2014-12-18 20:29:47 +01:00
josch
5bd9e418c4 make everything work on freebsd 2014-12-09 15:30:13 +01:00
josch
8468a39c0a if apicall failed - retry 2014-12-06 11:04:04 +01:00
josch
73123d87e9 move mfconn_update_secret_key into the apicalls 2014-12-05 14:02:33 +01:00
josch
816d79438f Allow to skip the device/get_status call when calling folder_tree_update
- this is useful to safe one extra call when it is known that there
   should be changes on the remote. In that case it will immediately
   skip forward to calling device/get_changes
2014-12-04 16:21:39 +01:00
josch
71f6396a9a Allow to create new files (but changing them is not allowed yet)
- since mediafire cannot deal with empty files, we put new files into a
   temporary location and upload them once they get closed
 - add create and write functions to fuse
 - pass a file handle to mfconn_api_upload_simple instead of a path
 - allow calc_sha256 to also compute the file size
 - error out when the key returned by upload/simple is empty
 - make valgrind.supp more lenient
2014-12-04 16:07:12 +01:00
josch
1e15dcc16b fuse: add unlink to remove files 2014-12-02 11:04:25 +01:00
josch
04dd1bcc71 now that we got rid of global variables, we can split the operations into their own file 2014-12-02 07:34:07 +01:00