From c0cf90cf8ba64df6a427d77a3b15e4be61a77bd3 Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Sun, 27 Jan 2019 12:04:29 +0000 Subject: [PATCH] Checked and corrected all typo --- ChangeLog | 14 +++++++------- doc/man/s3fs.1 | 2 +- src/fdcache.cpp | 2 +- src/psemaphore.h | 6 +++--- src/s3fs_util.cpp | 6 +++--- test/integration-test-common.sh | 4 ++-- test/mergedir.sh | 16 ++++++++-------- 7 files changed, 25 insertions(+), 25 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6ae63ab..29ad1e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -46,7 +46,7 @@ Version 1.83 -- Dec 17, 2017 #638 - Minor fixes to README #639 - Update Homebrew instructions #642 - Fixed potential atomic violation in S3fsCurl::AddUserAgent - #633 -#644 - Fixed with unnecessary equal in POST uploads url argment - #643 +#644 - Fixed with unnecessary equal in POST uploads url argument - #643 #645 - Configure S3Proxy for SSL #646 - Simplify S3Proxy PID handling #652 - Fix s3fs_init message @@ -112,7 +112,7 @@ Version 1.81 -- May 13, 2017 #540 - Address cppcheck 1.77 warnings #545 - Changed base cached time of stat_cache_expire option - #523 #546 - Fixed double initialization of SSL library at foreground -#550 - Add umount instruction for unplivileged user +#550 - Add umount instruction for unprivileged user #551 - Updated stat_cache_expire option description - #545 #552 - switch S3fsMultiCurl to use foreground threads #553 - add TLS cipher suites customization @@ -165,7 +165,7 @@ Version 1.80 -- May 29, 2016 #250 - s3fs can print version with short commit hash - #228 #251 - Skip xattr tests if utilities are missing #252 - This fixes an issue with caching when the creation of a subdirectory … -#253 - Added chacking cache dir perms at starting. +#253 - Added checking cache dir perms at starting. #256 - Add no atomic rename to limitations #257 - Update README.md: Bugfix password file permissions errors #258 - Update README.md to better explain mount upon boot @@ -193,7 +193,7 @@ Version 1.80 -- May 29, 2016 #306 - Fix read concurrency to work in parallel count #307 - Fix pthread portability problem #308 - Changed ensure free disk space as additional change for #306 -#309 - Check pthread prtability in configure as additional change for #307 +#309 - Check pthread portability in configure as additional change for #307 #310 - Update integration-test-main.sh as additional change for #300 #311 - Change error log to debug log in s3fs_read() #313 - fix gitignore @@ -205,14 +205,14 @@ Version 1.80 -- May 29, 2016 #330 - Pass by const reference where possible #331 - Address various clang warnings #334 - Bucket host should include port and not path -#336 - update REAME.md for fstab +#336 - update README.md for fstab #338 - Fixed a bug about IAMCRED type could not be retried. #339 - Updated README.md for fstab example. #341 - Fix the memory leak issue in fdcache. #346 - Fix empty directory check against AWS S3 #348 - Integration test summary, continue on error #350 - Changed cache out logic for stat - #340 -#351 - Check cache dirctory path and attributes - #347 +#351 - Check cache directory path and attributes - #347 #352 - Remove stat file cache dir if specified del_cache - #337 #354 - Supported regex type for additional header format - #343 #355 - Fixed codes about clock_gettime for osx @@ -289,7 +289,7 @@ issue #184 - Add usage information for multipart_size issue #185 - Correct obvious typos in usage and README issue #190 - Add a no_check_certificate option. issue #194 - Tilda in a file-name breaks things (EPERM) -issue #198 - Disasble integration tests for Travis +issue #198 - Disable integration tests for Travis issue #199 - Supported extended attributes(retry) issue #200 - fixed fallback to sigv2 for bucket create and GCS issue #202 - Specialize {set,get}xattr for OS X diff --git a/doc/man/s3fs.1 b/doc/man/s3fs.1 index acf13d1..4cb277f 100644 --- a/doc/man/s3fs.1 +++ b/doc/man/s3fs.1 @@ -299,7 +299,7 @@ Most of the generic mount options described in 'man mount' are supported (ro, rw There are many FUSE specific mount options that can be specified. e.g. allow_other. See the FUSE README for the full set. .SH NOTES .TP -The maximum size of objects that s3fs can handle depends on Amazone S3. For example, up to 5 GB when using single PUT API. And up to 5 TB is supported when Multipart Upload API is used. +The maximum size of objects that s3fs can handle depends on Amazon S3. For example, up to 5 GB when using single PUT API. And up to 5 TB is supported when Multipart Upload API is used. .TP If enabled via the "use_cache" option, s3fs automatically maintains a local cache of files in the folder specified by use_cache. Whenever s3fs needs to read or write a file on S3, it first downloads the entire file locally to the folder specified by use_cache and operates on it. When fuse_release() is called, s3fs will re-upload the file to S3 if it has been changed. s3fs uses md5 checksums to minimize downloads from S3. .TP diff --git a/src/fdcache.cpp b/src/fdcache.cpp index a87424b..752b22a 100644 --- a/src/fdcache.cpp +++ b/src/fdcache.cpp @@ -1774,7 +1774,7 @@ void FdEntity::CleanupCache() } if (is_modify) { - // cache is not commited to s3, cannot cleanup + // cache is not committed to s3, cannot cleanup return; } diff --git a/src/psemaphore.h b/src/psemaphore.h index 5206a4e..25233cf 100644 --- a/src/psemaphore.h +++ b/src/psemaphore.h @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifndef S3FS_SEMAPHONE_H_ -#define S3FS_SEMAPHONE_H_ +#ifndef S3FS_SEMAPHORE_H_ +#define S3FS_SEMAPHORE_H_ // portability wrapper for sem_t since macOS does not implement it @@ -72,4 +72,4 @@ class Semaphore #endif -#endif // S3FS_SEMAPHONE_H_ +#endif // S3FS_SEMAPHORE_H_ diff --git a/src/s3fs_util.cpp b/src/s3fs_util.cpp index f3b9a77..fb092ef 100644 --- a/src/s3fs_util.cpp +++ b/src/s3fs_util.cpp @@ -259,7 +259,7 @@ bool S3ObjList::GetNameList(s3obj_list_t& list, bool OnlyNormalized, bool CutSla } string name = (*iter).first; if(CutSlash && 1 < name.length() && '/' == name[name.length() - 1]){ - // only "/" string is skio this. + // only "/" string is skipped this. name = name.substr(0, name.length() - 1); } list.push_back(name); @@ -661,7 +661,7 @@ bool check_exist_dir_permission(const char* dirpath) struct stat st; if(0 != stat(dirpath, &st)){ if(ENOENT == errno){ - // dir does not exitst + // dir does not exist return true; } if(EACCES == errno){ @@ -848,7 +848,7 @@ mode_t get_mode(headers_t& meta, const char* path, bool checkdir, bool forcedir) mode |= S_IFDIR; }else{ if(complement_stat){ - // If complement lack stat mode, when the object has '/' charactor at end of name + // If complement lack stat mode, when the object has '/' character at end of name // and content type is text/plain and the object's size is 0 or 1, it should be // directory. off_t size = get_size(meta); diff --git a/test/integration-test-common.sh b/test/integration-test-common.sh index 3a87095..9a63e11 100644 --- a/test/integration-test-common.sh +++ b/test/integration-test-common.sh @@ -146,14 +146,14 @@ function start_s3fs { # If VALGRIND is set, pass it as options to valgrind. # start valgrind-listener in another shell. # eg: VALGRIND="--tool=memcheck --leak-check=full" ./small-integration-test.sh - # Start valgind-listener (default port is 1500) + # Start valgrind-listener (default port is 1500) if [ -n "${VALGRIND}" ]; then VALGRIND_EXEC="valgrind ${VALGRIND} --log-socket=127.0.1.1" fi # Common s3fs options: # - # TODO: Allow all these options to be overriden with env variables + # TODO: Allow all these options to be overridden with env variables # # use_path_request_style # The test env doesn't have virtual hosts diff --git a/test/mergedir.sh b/test/mergedir.sh index 80e6dc0..375066a 100755 --- a/test/mergedir.sh +++ b/test/mergedir.sh @@ -7,12 +7,12 @@ ### ### UsageFunction ### -UsageFuntion() +UsageFunction() { echo "Usage: $1 [-h] [-y] [-all] " echo " -h print usage" echo " -y no confirm" - echo " -all force all directoris" + echo " -all force all directories" echo " There is no -all option is only to merge for other S3 client." echo " If -all is specified, this shell script merge all directory" echo " for s3fs old version." @@ -28,7 +28,7 @@ DIRPARAM="" while [ "$1" != "" ]; do if [ "X$1" = "X-help" -o "X$1" = "X-h" -o "X$1" = "X-H" ]; then - UsageFuntion $OWNNAME + UsageFunction $OWNNAME exit 0 elif [ "X$1" = "X-y" -o "X$1" = "X-Y" ]; then AUTOYES="yes" @@ -38,7 +38,7 @@ while [ "$1" != "" ]; do if [ "X$DIRPARAM" != "X" ]; then echo "*** Input error." echo "" - UsageFuntion $OWNNAME + UsageFunction $OWNNAME exit 1 fi DIRPARAM=$1 @@ -48,7 +48,7 @@ done if [ "X$DIRPARAM" = "X" ]; then echo "*** Input error." echo "" - UsageFuntion $OWNNAME + UsageFunction $OWNNAME exit 1 fi @@ -62,7 +62,7 @@ fi echo "#############################################################################" echo "[CAUTION]" echo "This program merges a directory made in s3fs which is older than version 1.64." -echo "And made in other S3 client appilication." +echo "And made in other S3 client application." echo "This program may be have bugs which are not fixed yet." echo "Please execute this program by responsibility of your own." echo "#############################################################################" @@ -104,7 +104,7 @@ for DIR in $DIRLIST; do if [ "$ALLYES" = "no" ]; then ### Skip "d---------" directories. ### Other clients make directory object "dir/" which don't have - ### "x-amz-meta-mode" attribyte. + ### "x-amz-meta-mode" attribute. ### Then these directories is "d---------", it is target directory. DIRPERMIT=`ls -ld --time-style=+'%Y%m%d%H%M' $DIR | awk '{print $1}'` if [ "$DIRPERMIT" != "d---------" ]; then @@ -112,7 +112,7 @@ for DIR in $DIRLIST; do fi fi - ### Comfirm + ### Confirm ANSWER="" if [ "$AUTOYES" = "yes" ]; then ANSWER="y"