描述

主仓库:https://gitee.com/xiyounigo/summer2021-73
项目介绍:#I3EPVK:No. 73 为 iSulad 的查询(inspect)命令增加size 以及 type 子命令:No. 73 为 iSulad 的查询(inspect)命令增加size 以及 type 子命令
PR介绍:该分支为我在项目之外额外贡献的代码

以下是各个commit介绍:

fix: sometimes we dont need linked_list_for_each_safe
safe版本只用于遍历删除的情况,简单遍历不需要使用。
不正确的使用会带来额外的开销。

info: add fields for registries and runtimes
isula info支持查看镜像列表,以及runtime

info: fix for field Total Memory
修改isula info中Total Memory字段精度(变为double)

fix: forget to free parent in get_image_layers
修复一个遗忘free的点

images: support specified image name
支持images指定镜像名

fix: enable parsing arg behind option
解决了当选项位于操作数之后的bug
例如:
isula inspect container-id --debug是不对的

util: add util_get_file_path_fd
根据文件描述符获取进程路径(未使用到)

util: add util_reverse_string
反转字符串(未使用到)

map: add map_copy
拷贝map(未使用),注:该函数原本使用了,但出于性能考虑,我增加了map_free_nothing,所以我移至iSulad-fix分支

验证报告

输入图片说明
输入图片说明

isula inspect 5e987d4e4c99 --debug
isula inspect 5e987d4e4c99 -D
isula inspect 5e987d4e4c99 5e987d4e4c99
isula inspect 5e987d4e4c99 5e987d4e4c99 --debug
isula inspect 5e987d4e4c99 5e987d4e4c99 -D