Merge pull request #1374 from gaul/deep-archive

Add support for deep archive storage class
This commit is contained in:
Takeshi Nakatani 2020-08-21 07:01:43 +09:00 committed by GitHub
commit e75c11956c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -82,8 +82,7 @@ delete local file cache when s3fs starts and exits.
.TP .TP
\fB\-o\fR storage_class (default="standard") \fB\-o\fR storage_class (default="standard")
store object with specified storage class. store object with specified storage class.
this option replaces the old option use_rrs. Possible values: standard, standard_ia, onezone_ia, reduced_redundancy, intelligent_tiering, glacier, and deep_archive.
Possible values: standard, standard_ia, onezone_ia, reduced_redundancy, intelligent_tiering, and glacier.
.TP .TP
\fB\-o\fR use_rrs (default is disable) \fB\-o\fR use_rrs (default is disable)
use Amazon's Reduced Redundancy Storage. use Amazon's Reduced Redundancy Storage.

View File

@ -1168,7 +1168,8 @@ void show_help ()
"\n" "\n"
" storage_class (default=\"standard\")\n" " storage_class (default=\"standard\")\n"
" - store object with specified storage class. Possible values:\n" " - store object with specified storage class. Possible values:\n"
" standard, standard_ia, onezone_ia, reduced_redundancy, intelligent_tiering and glacier.\n" " standard, standard_ia, onezone_ia, reduced_redundancy,\n"
" intelligent_tiering, glacier, and deep_archive.\n"
"\n" "\n"
" use_rrs (default is disable)\n" " use_rrs (default is disable)\n"
" - use Amazon's Reduced Redundancy Storage.\n" " - use Amazon's Reduced Redundancy Storage.\n"

View File

@ -30,6 +30,7 @@ class storage_class_t{
REDUCED_REDUNDANCY, REDUCED_REDUNDANCY,
INTELLIGENT_TIERING, INTELLIGENT_TIERING,
GLACIER, GLACIER,
DEEP_ARCHIVE,
UNKNOWN UNKNOWN
}; };
@ -52,6 +53,8 @@ class storage_class_t{
return "INTELLIGENT_TIERING"; return "INTELLIGENT_TIERING";
case GLACIER: case GLACIER:
return "GLACIER"; return "GLACIER";
case DEEP_ARCHIVE:
return "DEEP_ARCHIVE";
case UNKNOWN: case UNKNOWN:
return NULL; return NULL;
} }
@ -71,6 +74,8 @@ class storage_class_t{
return INTELLIGENT_TIERING; return INTELLIGENT_TIERING;
}else if(0 == strcmp(str, "glacier")){ }else if(0 == strcmp(str, "glacier")){
return GLACIER; return GLACIER;
}else if(0 == strcmp(str, "deep_archive")){
return DEEP_ARCHIVE;
}else{ }else{
return UNKNOWN; return UNKNOWN;
} }