mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-05 14:02:10 +00:00
Document host and servicepath
The various bits of host, url, and servicepath seem to overlap. References #1203.
This commit is contained in:
parent
bc9126d774
commit
924eeb3587
@ -206,6 +206,12 @@ If the disk free space is smaller than this value, s3fs do not use diskspace as
|
|||||||
maximum size, in MB, of a single-part copy before trying
|
maximum size, in MB, of a single-part copy before trying
|
||||||
multipart copy.
|
multipart copy.
|
||||||
.TP
|
.TP
|
||||||
|
\fB\-o\fR host (default="https://s3.amazonaws.com")
|
||||||
|
Set a non-Amazon host, e.g., https://example.com.
|
||||||
|
.TP
|
||||||
|
\fB\-o\fR sevicepath (default="/")
|
||||||
|
Set a service path when the non-Amazon host requires a prefix.
|
||||||
|
.TP
|
||||||
\fB\-o\fR url (default="https://s3.amazonaws.com")
|
\fB\-o\fR url (default="https://s3.amazonaws.com")
|
||||||
sets the url to use to access Amazon S3. If you want to use HTTP, then you can set "url=http://s3.amazonaws.com".
|
sets the url to use to access Amazon S3. If you want to use HTTP, then you can set "url=http://s3.amazonaws.com".
|
||||||
If you do not use https, please specify the URL with the url option.
|
If you do not use https, please specify the URL with the url option.
|
||||||
|
16
src/s3fs.cpp
16
src/s3fs.cpp
@ -4826,14 +4826,6 @@ static int my_fuse_opt_proc(void* data, const char* arg, int key, struct fuse_ar
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if(0 == STR2NCMP(arg, "host=")){
|
|
||||||
host = strchr(arg, '=') + sizeof(char);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if(0 == STR2NCMP(arg, "servicepath=")){
|
|
||||||
service_path = strchr(arg, '=') + sizeof(char);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if(0 == strcmp(arg, "no_check_certificate")){
|
if(0 == strcmp(arg, "no_check_certificate")){
|
||||||
S3fsCurl::SetCheckCertificate(false);
|
S3fsCurl::SetCheckCertificate(false);
|
||||||
return 0;
|
return 0;
|
||||||
@ -4957,6 +4949,14 @@ static int my_fuse_opt_proc(void* data, const char* arg, int key, struct fuse_ar
|
|||||||
S3fsCurl::SetContentMd5(true);
|
S3fsCurl::SetContentMd5(true);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
if(0 == STR2NCMP(arg, "host=")){
|
||||||
|
host = strchr(arg, '=') + sizeof(char);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
if(0 == STR2NCMP(arg, "servicepath=")){
|
||||||
|
service_path = strchr(arg, '=') + sizeof(char);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
if(0 == STR2NCMP(arg, "url=")){
|
if(0 == STR2NCMP(arg, "url=")){
|
||||||
host = strchr(arg, '=') + sizeof(char);
|
host = strchr(arg, '=') + sizeof(char);
|
||||||
// strip the trailing '/', if any, off the end of the host
|
// strip the trailing '/', if any, off the end of the host
|
||||||
|
@ -1265,6 +1265,12 @@ void show_help ()
|
|||||||
" - maximum size, in MB, of a single-part copy before trying \n"
|
" - maximum size, in MB, of a single-part copy before trying \n"
|
||||||
" multipart copy.\n"
|
" multipart copy.\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
" host (default=\"https://s3.amazonaws.com\")\n"
|
||||||
|
" - Set a non-Amazon host, e.g., https://example.com.\n"
|
||||||
|
"\n"
|
||||||
|
" servicepath (default=\"/\")\n"
|
||||||
|
" - Set a service path when the non-Amazon host requires a prefix.\n"
|
||||||
|
"\n"
|
||||||
" url (default=\"https://s3.amazonaws.com\")\n"
|
" url (default=\"https://s3.amazonaws.com\")\n"
|
||||||
" - sets the url to use to access Amazon S3. If you want to use HTTP,\n"
|
" - sets the url to use to access Amazon S3. If you want to use HTTP,\n"
|
||||||
" then you can set \"url=http://s3.amazonaws.com\".\n"
|
" then you can set \"url=http://s3.amazonaws.com\".\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user