1
0
mirror of https://github.com/s3fs-fuse/s3fs-fuse.git synced 2025-01-11 00:21:45 +00:00

Fixed Issue 226(+)

1) Patch adding support for SSE( Issue 226 )
    Forgot changing codes for the error logic which use_sse and 
    use_rrs option is specified.
    (r438 + this fixes = fixed issue 226)




git-svn-id: http://s3fs.googlecode.com/svn/trunk@439 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
ggtakec@gmail.com 2013-06-04 06:12:22 +00:00
parent 9833c7e589
commit 8ef1c7aa3a

View File

@ -4218,6 +4218,11 @@ static int my_fuse_opt_proc(void *data, const char *arg, int key, struct fuse_ar
use_rrs = strchr(arg, '=') + 1;
if (strcmp(use_rrs.c_str(), "1") == 0 ||
strcmp(use_rrs.c_str(), "") == 0 ) {
if(use_sse.substr(0,1) == "1"){
fprintf(stderr, "%s: use_rrs option could not be specified with use_sse.\n",
program_name.c_str());
return -1;
}
return 0;
} else {
fprintf(stderr, "%s: poorly formed argument to option: use_rrs\n",
@ -4229,6 +4234,11 @@ static int my_fuse_opt_proc(void *data, const char *arg, int key, struct fuse_ar
use_sse = strchr(arg, '=') + 1;
if (strcmp(use_sse.c_str(), "1") == 0 ||
strcmp(use_sse.c_str(), "") == 0 ) {
if(use_rrs.substr(0,1) == "1"){
fprintf(stderr, "%s: use_sse option could not be specified with use_rss.\n",
program_name.c_str());
return -1;
}
return 0;
} else {
fprintf(stderr, "%s: poorly formed argument to option: use_sse\n",