mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 09:18:55 +00:00
Merge pull request #1374 from gaul/deep-archive
Add support for deep archive storage class
This commit is contained in:
commit
e75c11956c
@ -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.
|
||||||
|
@ -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"
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user