Skip to content

Commit

Permalink
[feat.] support zfile over tar in turboOCI-apply
Browse files Browse the repository at this point in the history
Signed-off-by: Yifan Yuan <tuji.yyf@alibaba-inc.com>
  • Loading branch information
BigVan committed Jan 27, 2024
1 parent 41bc0db commit 92e28f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/turboOCI-apply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ int main(int argc, char **argv) {

photon::fs::IFile *src_file = nullptr;
auto tarf = open_file(input_path.c_str(), O_RDONLY, 0666);
if (ZFile::is_zfile(tarf) == 1) {
tarf = ZFile::zfile_open_ro(tarf, true, true);
}
DEFER(delete tarf);

if (is_gzfile(tarf)) {
Expand Down

0 comments on commit 92e28f4

Please sign in to comment.