From a295c5429bc28589328406dd96de83be9a9d627b 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 6c877b4d005..8612e7307fd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1759,9 +1759,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 3e85c58271e..8cf2beb61fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -107,3 +107,7 @@ backend-s3 = ["nydus-storage/backend-s3"] [workspace] members = ["api", "builder", "clib", "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