From 60d47c818d92f81400af72d4e77a3ae5b1833cad Mon Sep 17 00:00:00 2001 From: Qinqi Qu Date: Wed, 2 Aug 2023 16:13:09 +0800 Subject: [PATCH] deps: update tar-rs to handle very large uid/gid in image unpack update tar-rs to support read large uid/gid from PAX extensions to fix very large UIDs/GIDs (>=2097151, limit of USTAR tar) lost in PAX style tar during unpack. Signed-off-by: Qinqi Qu --- Cargo.lock | 5 ++--- Cargo.toml | 4 ++++ misc/top_images/image_list.txt | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 863a9d5ef19..536c8145238 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1812,9 +1812,8 @@ dependencies = [ [[package]] name = "tar" -version = "0.4.38" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b55807c0344e1e6c04d7c965f5289c39a8d94ae23ed5c0b57aabac549f871c6" +version = "0.4.39" +source = "git+https://github.com/nydusaccelerator/tar-rs.git#17f97d22c66d0d6137665844ac8f8ef5a007255c" dependencies = [ "filetime", "libc", diff --git a/Cargo.toml b/Cargo.toml index 87c44d91785..d3f5486e9f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -98,3 +98,7 @@ backend-s3 = ["nydus-storage/backend-s3"] [workspace] members = ["api", "app", "blobfs", "clib", "error", "rafs", "storage", "service", "utils"] + +[patch.crates-io] +# Due to the slow processing of PR by the upstream, temporarily fork tar-rs for this project +tar = { git = "https://github.com/nydusaccelerator/tar-rs.git" } \ No newline at end of file diff --git a/misc/top_images/image_list.txt b/misc/top_images/image_list.txt index f96349211d8..2468175f476 100644 --- a/misc/top_images/image_list.txt +++ b/misc/top_images/image_list.txt @@ -43,3 +43,4 @@ kong solr sentry zookeeper +ghcr.io/dragonflyoss/image-service/pax-uid-test \ No newline at end of file