From 951633b02606768b458b7dc88f6c6f8ca736db4e Mon Sep 17 00:00:00 2001 From: Kebo Liu Date: Fri, 4 May 2018 05:04:42 +0800 Subject: [PATCH] [generate_dump]: fix a saidump file copy bug (#248) * "docker cp" command isn't applicable to tmpfs, need to use other ways to copy file from tmps signed-off-by kebol@mellanox.com --- scripts/generate_dump | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate_dump b/scripts/generate_dump index fade14f7cd98..b1b92df04531 100755 --- a/scripts/generate_dump +++ b/scripts/generate_dump @@ -290,7 +290,7 @@ main() { if [[ $platform == *"mlnx"* ]]; then local sai_dump_filename="/tmp/sai_sdk_dump_$(date +"%m_%d_%Y_%I_%M_%p")" docker exec -it syncd saisdkdump -f $sai_dump_filename - docker cp syncd:$sai_dump_filename /tmp/ + docker exec syncd tar Ccf $(dirname $sai_dump_filename) - $(basename $sai_dump_filename) | tar Cxf /tmp/ - save_file $sai_dump_filename sai_sdk_dump true fi