Skip to content

Commit

Permalink
[generate_dump]: fix a saidump file copy bug (sonic-net#248)
Browse files Browse the repository at this point in the history
* "docker cp" command isn't applicable to tmpfs, need to use other ways to copy file from tmps

 signed-off-by kebol@mellanox.com
  • Loading branch information
keboliu authored and lguohan committed May 10, 2018
1 parent 69baff7 commit 951633b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_dump
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 951633b

Please sign in to comment.