Commit Graph

99 Commits

Author SHA1 Message Date
Andrew Gaul
8c58ba8ac0
Update ChangeLog and configure.ac for 1.89 (#1584)
Also make formatting more consistent.  Fixes #1588.

Co-authored-by: Takeshi Nakatani <ggtakec@gmail.com>
2021-02-24 08:03:55 +09:00
Andrew Gaul
a6563211af Update ChangeLog and configure.ac for 1.88 2021-01-11 17:59:28 +09:00
Takeshi Nakatani
d9f6469b7b Fixed flushing dirty data and compressed the cache size 2020-11-14 16:45:37 +09:00
Andrew Gaul
3628b9d1e2 Remove exceptions from s3fs_strtoofft
Explicit return codes are simpler and safer.
2020-10-02 22:53:12 +09:00
Takeshi Nakatani
b5ffd419d8 Source file division and set 4 spaces and cleanup 2020-08-26 17:43:50 +09:00
Andrew Gaul
194262c0ef Update ChangeLog and configure.ac for 1.87
Fixes #1335.
2020-08-10 11:52:14 +09:00
Andrew Gaul
bb20fc3c98 Update ChangeLog and configure.ac for 1.86
Fixes #1050.
2020-02-05 22:27:28 +09:00
Andrew Gaul
5820c72092 Compile with FORTIFY_SOURCE
This can catch some classes of buffer overflows.
2019-07-04 10:20:26 -07:00
Takeshi Nakatani
71766039ff Support undefined CURLoption in libcurl library used in build 2019-03-22 10:47:42 +00:00
Takeshi Nakatani
df604e50fb Fixed configure.ac about abuses AC_CHECK_FILE 2019-03-22 05:22:23 +00:00
Takeshi Nakatani
4a011d87e0 Updated ChangeLog and configure.ac etc for release 1.85 2019-03-11 11:53:57 +00:00
Julio Gonzalez Gil
830a971bde Replace all mentions to MacOS X to macOS 2018-10-14 23:23:19 +02:00
Takeshi Nakatani
e8fb2aefb3 Updated ChangeLog and configure.ac for release 1.84 2018-07-08 09:06:52 +00:00
Chris Apers
88819af2d8 Added Cygwin build options 2018-02-02 15:58:10 +01:00
Takeshi Nakatani
1a2e63ecff Updated ChangeLog and configure.ac for release 1.83 2017-12-17 07:37:19 +00:00
Or Ozeri
11bd7128d2 remove use of jsoncpp 2017-11-22 13:36:27 +02:00
Richard Caunt
395f736753 Lower jsoncpp requirement 2017-11-07 21:38:01 +00:00
Richard Caunt
8660abaea2 Use jsoncpp to parse AWS JSON 2017-11-07 21:20:02 +00:00
Takeshi Nakatani
af13ae82c1 Updated ChangeLog and configure.ac for release 1.82 2017-05-13 16:12:46 +00:00
Takeshi Nakatani
f6eb841a24 Updated ChangeLog and configure.ac for release 1.81 2017-05-13 10:54:54 +00:00
Takeshi Nakatani
9fd1368611 OS-specific correspondence of the extended attribute header 2016-10-02 07:23:19 +00:00
Takeshi Nakatani
88d6c20cde Updated ChangeLog and configure.ac for release 1.80 2016-05-29 03:19:02 +00:00
Robb Kistler
f4aac111a4 Fix clock_gettime autotools detection on Linux 2016-02-08 13:45:34 -08:00
Takeshi Nakatani
e01ded9e27 Fixed codes about clock_gettime for osx 2016-02-07 07:40:55 +00:00
Takeshi Nakatani
759b44135a Check pthread prtability in configure as additional change for #307 2015-12-03 07:47:17 +00:00
Takeshi Nakatani
8f8e52b91a s3fs can print version with short commit hash(2) - #228 2015-08-21 16:30:24 +00:00
Takeshi Nakatani
751c868769 s3fs can print version with short commit hash - #228 2015-08-21 16:19:31 +00:00
Andrew Gaul
20f425fe15 Update README
This better explains many of the features and limitations and removes
stale information.
2015-08-17 07:48:11 -07:00
Takeshi Nakatani
6442642656 Updated ChangeLog and configure.ac for v1.79 2015-07-19 16:14:33 +00:00
Dan Moore
adb5a35097 configure.ac: detect target, if target is darwin (OSX), then
change the minimum version of fuse required.  Change the
checkers to use a variable for the minimum fuse version
instead of it being hardcoded in four different places.

src/s3fs.cpp: Use __APPLE__ define around fuse code that
is offensive to osxfuse. Not including the code doesn't
seem to matter.
2015-04-25 17:13:20 -07:00
Takeshi Nakatani
ca72b9a6d0 version number increament. 2014-09-15 13:26:35 +00:00
Takeshi Nakatani
0e9cfeb808 fixed a bug about configure.ac. issue #50 2014-09-07 13:53:20 +00:00
Takeshi Nakatani
edad91186f Changed configuration switch from 'enable' to 'with' for libs 2014-05-10 16:45:46 +00:00
Takeshi Nakatani
cd27f0aa54 Supported another crypt libraries as GnuTLS and NSS, and added configure options 2014-05-06 14:23:05 +00:00
Takeshi Nakatani
1a4065b0fb changed for version v1.77 and fixed man page 2014-04-19 16:08:10 +00:00
Takeshi Nakatani
775d8758ef version number up to v1.76 for new. 2014-01-21 15:33:02 +00:00
ggtakec@gmail.com
d121bab3e5 Summary of Changes(1.73 -> 1.74)
==========================
List of Changes
==========================
1) Fixed bugs - r478, r480, r481, r482, r483, r484, r486, r489,
                r491, r492, r493, r494, r495, r496, r497, r498
   - Fixed wrong printf format.
   - Fixed a bug at changing umask.
   - Fixed a bug at changing utimens.
   - When changing object size, could not update stat cache.
   - Fixed some memory leak.
   - Fixed a bug about ftruncate(Issue 371).
   - Fixed a bug about multipart post request(Issue 371).
   - Fixed a bug about multipart post/head retrying(Issue 389).
   - Fixed public_bucket option bug
   - Fixed file size over flow on 32bit OS

2) Changed codes - r479, r480, r482, r485, r488, r490, r493
   - Calling curl_global_init function once.
   - Adds dynamic lock callback for OpenSSL.
   - Checking strict for s3fs command parameters.
   - Caches SSL session.
   - Changes parallel count 500 to 20 for multipart head req.
   - Adds --enable-nss-init configure option.
   - Changes updating timing for object cache(Issue 368).
   - Changes level for some debugging codes.
   - Adds casting for curl_ott_t variables.
   - Adds IAM role option.
   - Adds function on utility mode for removing failed multipart req.



git-svn-id: http://s3fs.googlecode.com/svn/trunk@499 df820570-a93a-0410-bd06-b72b767a4274
2013-11-25 12:04:13 -05:00
ggtakec@gmail.com
42b74c9d2e Changes codes
1) Changed codes about memory leak
   For memory leak, below codes are changed.
   * calls malloc_trim function
   * calls initializing NSS function, and adds configure
     option "--enable-nss-init".
     If libcurl is with NSS, s3fs initializes NSS manually.
     This initializing NSS is enabled by "--enable-nss-init"
     option at configure. if this option is specified, you
     need "nss-devel" package.
   * calls initializing libxml2(xmlInitParser).
   * BIO functions have memory leak, calls CRYPTO_free_ex_data.
   * changes cache structure.
   * changes cache out logic to LRU.
   * sets alignment for allcated memory in body data structure.
   * adds ssl session into share handle. and adds nosscache option.
   * deletes unused allocated memory.(bug)
   * changes defaule parallel count of head request in readdir
     (500->20)
   * fixes some bugs.



git-svn-id: http://s3fs.googlecode.com/svn/trunk@482 df820570-a93a-0410-bd06-b72b767a4274
2013-09-14 21:50:39 +00:00
ggtakec@gmail.com
c3c6c0f572 Summary of Changes(1.72 -> 1.73)
==========================
List of Changes
==========================
1) Added ahbe_conf option - r465
  - Added ahbe_conf option means the configuration file path, and
    this file specifies additional HTTP header by file(object)
    extension.( Issue 292 )
  - Added sample configuration file in test directory for ahbe_conf
    option.

2) Changed mount point permission - r465
  - Not allow group/other permission for mount point when s3fs runs
    without allow_other.
  - Allow permission to all user for mount point when specified
    allow_other option.

3) Fixed bugs - r465, r466, r467, r468, r470, r471
  - Changed a code which s3fs returns error as soon as possible
    when user tries to change mount point.( Issue 229 )
  - Fixed mis-format for debugging print.
  - Changed request type to "virtual hosted-style" for checking
    bucket when s3fs is starting.( Issue 362 )
  - Fixed bug issue(bug), when s3fs retry a request at something
    error occurred, s3fs is wrong usage curl handle and fails
    retrying request.( Issue 343 )
  - Fixed mis-coding about fonction prototype.( Issue 360/Issue 361 )
  - Fixed a bug about umask.( Issue 321 )
  - Fixed a bug which s3fs exit though specified correct 
    $HOME/.passwd-s3fs.( Issue 365 )
  - Fixed a bug which deleting stat cache information is bad
    posission in s3fs_release function.( Issue 363 )

4) Added sample script - 472, r473
  - Added sample_delcache.sh in test directory for deleting
    cahce files.

5) Added debugging messages - r467, r474
  - Changed debugging level for prepare_url function.
  - Specified f2 option, s3s_getattr puts detail for file attar.
  - Added new option as curldbg for curl http(s) debugging.



git-svn-id: http://s3fs.googlecode.com/svn/trunk@475 df820570-a93a-0410-bd06-b72b767a4274
2013-08-23 17:24:47 +00:00
ggtakec@gmail.com
2361c83f69 Summary of Changes(1.71 -> 1.72)
==========================
List of Changes
==========================
1) Fixes bugs and changes codes - r448, r451, r452, r453, r454, 
                     r455, r460, r461
    - Fixed umask option which works correctly.( Issue 346 )
    - Added new S3fsCurl class for lapping curl functions.
    - Deleted YIKES macro which is not used.
    - Used memcpy instead of copying each bytes while downloading.
    - Fixed a bug, s3fs did not use servicepath when renaming.
    - Fixed and changed "use_sse"/"use_rrs" options( Issue 352 )
    - Fixed a memory leak in curl_slist_sort_insert() function.
    - Fixed a memory leak when multipart uploading with error. 
    - Supported mknod function.( Issue 355 )
    - Changed debugging macros for simple.

2) Changes codes for performance and adds "multireq_max" - r449
    Changed the order for checking directory objects.
    Added "multireq_max" option is maximum number of parallel
    request for listing objects.

3) Performance tuning - r456, r457, r458, r459
    - Changed for large object uploading/downloading by parallel
      requests.
    - Added "parallel_count"/"fd_page_size" option.
    - Not make temporary file when uploading large object by
      multipart uploading.
    - Changed about temporary file and local cache file.
      And added cache's status file for local cache file.
    - Use "Range" header for block downloading.



git-svn-id: http://s3fs.googlecode.com/svn/trunk@462 df820570-a93a-0410-bd06-b72b767a4274
2013-08-10 15:37:44 +00:00
ggtakec@gmail.com
e9ec680f1e Summary of Changes(1.70 -> 1.71)
==========================
List of Changes
==========================
1) Adds use_sse option(Issue 226) - r438, r439
    Supports SSE(Server-Side Encryption) and adds "use_sse" option.(Issue 226)

2) Fixes a bug(Issue 342) - r440
    Fixed a bug "Segmentation fault on connect on ppc64".   
    The third parameter of curl_easy_getinfo() is wrong.
    
3) Fixes a bug(Issue 343, 235, 257, 265) - r441
    Fixed a bug "SSL connect error).
    r434 could not fix it completely(mistook fixing).

4) Fixes bugs and changes codes - r442, r444
    - Fixes a bug which is forgot removing temporary files at error.
    - Fixes curl_share function prototype.
    - Changes one code for "-d" option.
    - Changes head_data struct menacers.
    - Fixes calling position for curl_global_init and curl_share_init function.
    - Fixes uninitializing struct tm.
    - Fixes accessing freed variable.
    - Changes using cur_slist directly to auto_curl_slist class.



git-svn-id: http://s3fs.googlecode.com/svn/trunk@445 df820570-a93a-0410-bd06-b72b767a4274
2013-06-15 17:21:21 +00:00
ggtakec@gmail.com
129a279fc5 Summary of Changes(1.69 -> 1.70)
==========================
List of Changes
==========================
1) Fixes bugs - r428
    * Fixes a bug which object owner/group is set wrong id.
    * The permission of mount point when allow_other option is 
       specified.
    * Fixes a bug about permission
       when the directory permission is 0557, other user(who is not
       owner and same group) gets a permission error when making 
       file or directory in that dir.
    * Fixes a bug( Issue 340 )
       Fixes compile error about "blkcnt_t".

2) Fixes a bug( Issue 429 ) - r429
    Changes that s3fs always uses own dns cache, and adds "nodnscache"
    option. If "nodnscache" is specified, s3fs does not use dns cache as 
    before. s3fs keeps DNS cache for 60 senconds by libcurl's default.

3) Fixes a bug( Issue 235 ) - r430
    Fixes a CURLE_COULDNT_CONNECT error when s3fs reads 
    objects header information.
    * max request in curl_multi request is 500 and s3fs loops to call 
       curl_multi.
    * retries to call request which returns error as CURLE_COULDNT_CONNECT.

4) Fixes a bug - r431
    Fixed a bug(failed all multi head request when mounting bucket+path)

5) FIxes a bug( Issue 241 ) - r432
    Changes codes for that s3fs returns size from opened file discriptor, if
    client already opens the file.

6) Fixes a bug - r433
    Package tarball includes doc/Makefile, this file is not unnecessary for
    tarball.

7) Fixes bug( Issue 235 , Issue 257, Issue 265 ) - r434
    Fixed "SSL connect error", then s3fs can connect by SSL with no problem.



git-svn-id: http://s3fs.googlecode.com/svn/trunk@435 df820570-a93a-0410-bd06-b72b767a4274
2013-06-01 15:55:40 +00:00
ggtakec@gmail.com
cd21f567a1 Summary of Changes(1.68 -> 1.69)
==========================
List of Changes
==========================
1) Fixes a bug - r418, r419
   Fixed a bug that s3fs failed to get stats when the max_stat_cache_size option was specified 0.

2) Fixed a bug( Issue 291) - r420
   Fixes ( Issue 291 ) "Man file has wrong permissions for passwd file",  
   then changes man page.
   Checks passwd file permission strictly.
   Fixes a bug that s3fs continued to run after finding invalid passwd file 
   permission.

3) Added enable_noobj_cache option for no-existing object - r420, r421
   Adds enable_noobj_cache option(default disable) for performance.
   This option is specified, s3fs memorizes in stat cache that the object
   (file or directory) does not exist.

4) Fixed a bug( Issue 240 ) - r421
   Fixes ( Issue 240 ) "Cannot Mount Path in Bucket".
   Changes man page.

5) Supported s3sync'ed object( Issue 31 ) - r422
   Supports HTTP headers which made by s3sync.
   It means that s3fs supported HTTP headers are x-amz-meta-owner, 
   x-amz-meta-permissions and x-amz-meta-group.

6) Added enable_content_md5 option - r423
   Adds enable_content_md5 option(default disable).
   If "enable_content_md5" option is specified, s3fs puts the object with 
   "Content-MD5" header when s3fs sending small object(under 20MB).

7) Supported uid/gid option - r424
   Supports uid/gid mount(fuse) option.




git-svn-id: http://s3fs.googlecode.com/svn/trunk@425 df820570-a93a-0410-bd06-b72b767a4274
2013-05-16 06:46:35 +00:00
ggtakec@gmail.com
ae2d1eda84 Summary of Changes(1.67 -> 1.68)
==========================
List of Changes
==========================
1) Fixes a bug(Issue 320) - r408, r411, r412
   Fixes (Issue 320) "Spurious I/O errors"
   (http://code.google.com/p/s3fs/issues/detail?id=320)

   When the s3fs gets error in upload loop, it try to re-upload without seeking
   the fd. This is a bug for this issue.
   Please see detail in r408, r411 and r412.

2) Fixes a bug(Issue 293) - r409
   Fixes (Issue 293) "Command line argument bucket: causes segv"
   (http://code.google.com/p/s3fs/issues/detail?id=293)

   If it specifies the bucket name which is terminated ":", the s3fs crushes.
   Please see detail in r409.

3) Supports a option(Issue 265) - r410
   Supports (Issue 265) "Unable to mount to a non empty directory"
   (http://code.google.com/p/s3fs/issues/detail?id=265)

   Supported "nonempty" fuse/mount option.
   Please see detail in r410.

4) Supports other S3 clients(Issue 27) - r413, r.414
   Supports (Issue 27) "Compatability with other S3FS clients"

   *** "_$folder$" dir object
    Supports the directory object which made by s3fox. Its name has "_$folder$"
    suffixes. On s3fs, that directory object is listed normal directory name 
    without "_$folder$".
    Please be careful when you change object attributes(rename, chmod, chown,
    touch), because the s3fs remakes the directory object without "_$folder$"
    sufixes. This means the object is re-made by the s3fs.

   *** no dir object
    Supports the directory which is no objects.
    If there is a object which has "/" charactor(ex. "<bucket>/dir/file"), the
    directory("dir") object is no object.
    Example, you can upload the object which name is "s3://bucket/dir/file" by
    the s3cmd(or other S3 clients like s3cmd).
    Then on thie case, the "dir" is not object in bucket.
    This s3fs version understands this case.
    Please be careful when you change object attributes(rename, chmod, chown,
    touch), because the s3fs makes new directory object.

   Please see detail in r413 and r414.




git-svn-id: http://s3fs.googlecode.com/svn/trunk@415 df820570-a93a-0410-bd06-b72b767a4274
2013-05-01 03:45:42 +00:00
ggtakec@gmail.com
9310c0b653 Summary of Changes(1.66 -> 1.67)
==========================
List of Changes
==========================
1) Fixes a bug(r403)
    Fixes (Issue: 326) "segfault using s3fs 1.6.5".
    (http://code.google.com/p/s3fs/issues/detail?id=326)

    The my_curl_easy_perform() function is not clearing the buffer(struct BodyStruct body) before retrying the request.
    And the "struct BodyStruct" is changed to "Class BodyData".
    New class is same as BodyStruct, but handling memory is automatically.
    And added a argument for my_curl_easy_perform().
    This function is needed the buffer pointer, but the arguments is only for body buffer.
    Then I added the buffer pointer for header buffer.

2) Fixes a bug(r404)
    Fixes (Issue: 328) "Problem with allow_other option".
    (http://code.google.com/p/s3fs/issues/detail?id=328)

    The return value in get_username() function is wrong value(NULL) when there is not user id in passwd file.

3) Fixes memory leak(r403)
  In get_object_name() function, there was a memory leak.




git-svn-id: http://s3fs.googlecode.com/svn/trunk@405 df820570-a93a-0410-bd06-b72b767a4274
2013-04-13 17:08:00 +00:00
ggtakec@gmail.com
8bd1483374 Summary of Changes(1.65 -> 1.66)
==========================
List of Changes
==========================
1) Fixes bugs
    Fixes Issue 321: "no write permission for non-root user".
    (http://code.google.com/p/s3fs/issues/detail?id=321)
    Fixes a bug which s3fs does not set uid/gid headers when making symlink.

2) Cleanup  code.
    Adds a common function which  converts the Last-Modified header to utime.
    Deletes the useless cord and arranged it.

3) xmlns
    Changes that s3fs can decide using the xmlns url automatically.
    Then the noxmlns option is not needed anymore, but it is left.

4) Changes cache for performance
    Changes stat cache, it accumulates stat information and some headers.
    By adding some headers into cache, s3fs does not need to call curl_get_headers function.
    After changing, one cache entry increases in about 500 bytes from about 144 byte.
    
    Adds one condition to get out of the cache, that condition is by looking object's ETag.
    It works good for noticing changes about obojects.




git-svn-id: http://s3fs.googlecode.com/svn/trunk@400 df820570-a93a-0410-bd06-b72b767a4274
2013-04-06 17:39:22 +00:00
ggtakec@gmail.com
a35cdc73b7 Summary of Changes(1.64 -> 1.65)
1) Fixed a bug(r397)
    After deleting directory object, s3fs could not make directory which was same name.
    It was a bug about cache logic for compatibility other S3 client.

2) Cleaned up source codes(r396)
    No changes for logic, only changes layout of functions and valiables between a file to a file.
    Adds s3fs_util.cpp/s3fs_util.h/common.h




git-svn-id: http://s3fs.googlecode.com/svn/trunk@397 df820570-a93a-0410-bd06-b72b767a4274
2013-03-30 14:03:06 +00:00
ggtakec@gmail.com
00b735beaa For v1.64
Please see r392 log message(http://code.google.com/p/s3fs/source/detail?r=392)



git-svn-id: http://s3fs.googlecode.com/svn/trunk@393 df820570-a93a-0410-bd06-b72b767a4274
2013-03-23 14:16:18 +00:00
ggtakec@gmail.com
be38de5052 Summary of Changes(1.62 -> 1.63)
1) Lifetime for the stats cache
   Added the new option "stat_cache_expire".
   This option which is specified by seconds means the lifetime for each stats cache entry.
   If this option is not specified, the stats cache is kept in s3fs process until the stats cache grown to maximum size. (default)
   If this option is specified, the stats cache entry is out from the memory when the entry expires time.

2) Enable file permission
  s3fs before 1.62 did not consider the file  access permission.
  s3fs after this version can consider it.
  For access permission, the s3fs_getattr() function was divided into sub function which can check the file access permission.
  It is like access() function.
  And the function calling the s3fs_getattr() calls this new sub function instead of s3fs_getattr().
  Last the s3fs_opendir() function which is called by FUSE was added for checking directory access permission when listing the files in directory.

3) UID/GUID
  When a file or a directory was created, the s3fs could not set the UID/GID as the user who executed a command.
  (Almost the UID/GID are root, because the s3fs run by root.)
  After this version, the s3fs set correct UID/GID as the user who executes the commond.

4) About the mtime
  If the object does not have "x-amz-meta-mtime" meta, the s3fs uses the "Last-Modified" header instead of it.
  But the s3fs had a bug in this code, and this version fixed this bug.
  When user modified the file, the s3fs did not update the mtime of the file.
  This version fixed this bug.
  In the get_local_fd() function, the local file's mtime was changed only when s3fs run with "use_cache" option.
  This version always updates the mtime whether the local cache file is used or not.
  And s3fs_flush ( ) function set the mtime of local cache file from S3 object mtime, but it was wrong . 
  This version is that the s3fs_flush ( ) changes the mtime of S3 object from the local cache file or the tmpfile . 
  The s3fs cuts some requests, because the s3fs can always check mtime whether the s3fs uses or does not use the local cache file.

5) A case of no "x-amz-meta-mode"
  If the object did not have "x-amz-meta-mtime" mete, the s3fs recognized the file as not regular file.
  After this version, the s3fs recognizes the file as regular file.

6) "." and ".." directory
  The s3fs_readdir() did not return "X" and "XX" directory name.
  After this version, the s3fs is changed that it returns "X" and "XX".
  Example, the result of "ls" lists "X" and "XX" directory.

7) Fixed a bug
  The insert_object() had a bug, and it is fixed.




git-svn-id: http://s3fs.googlecode.com/svn/trunk@390 df820570-a93a-0410-bd06-b72b767a4274
2013-02-24 08:58:54 +00:00
ggtakec@gmail.com
900107f102 s3fs 1.62
git-svn-id: http://s3fs.googlecode.com/svn/trunk@385 df820570-a93a-0410-bd06-b72b767a4274
2013-01-21 06:30:31 +00:00