Add support for mulitple access id/secret access keys in passwd-s3fs file
This change applies to any passwd-s3fs files.
The format of the file is more robust, error checked and extended:
- as before, any line beginning with # is ignored
- any empty line is ignored
- any non-ignored line which contains a space or tab is an error
- any non-ignored line which does not contain a : separator is an error
The format of the file is:
[bucket:]AccessKeyId:SecretAccessKey
The bucket can now be specified to allow for multiple credentials.
A default entry is as before:
AccessKeyId:SecretAccessKey
Only one default entry is allowed, if more than one default entry
is found, that is an error. A default entry is not required, if the
bucket that is being mounted has its own entry.
If the user's .passwd-s3fs file is present but credentials cannot
be determined from it, then the system-wide /etc/passwd-s3fs will
be consulted (if readable by the current user).
This change is completely backward compatable with the existing
scheme and has been well tested.
git-svn-id: http://s3fs.googlecode.com/svn/trunk@229 df820570-a93a-0410-bd06-b72b767a4274
Issue #102 --help command line
Issue #107 command line checking and other error checking
Issue #112 uses getopt_long now, but FUSE's own parser is still there
some command line checking is split between main() and the
helper function
Issue #117 command line option for credentials file
Issue #118 use of environment variables for credentials
Issue #119 support for a local passwd-s3fs file
Big checkin, many new lines of code.
Comand line option checking is now more robust and does quite
a bit of error checking before handing the mount off to FUSE.
Cleaned up the code and made several new functions from
existing code
Many ways to supply credentials now and there is a precedance
order followed.
--help is helpful
git-svn-id: http://s3fs.googlecode.com/svn/trunk@227 df820570-a93a-0410-bd06-b72b767a4274