From 2295e96f69a8c13751ba69ea9176b0599c0909a8 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sat, 11 Jan 2025 14:20:43 +0000 Subject: automatic import of iSulad --- 0163-image-layer-fix-code-style.patch | 114 ++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 0163-image-layer-fix-code-style.patch (limited to '0163-image-layer-fix-code-style.patch') diff --git a/0163-image-layer-fix-code-style.patch b/0163-image-layer-fix-code-style.patch new file mode 100644 index 0000000..e3ba0a4 --- /dev/null +++ b/0163-image-layer-fix-code-style.patch @@ -0,0 +1,114 @@ +From 255fada49877e854690d628dc7832c3e459fd5aa Mon Sep 17 00:00:00 2001 +From: liuxu +Date: Thu, 5 Dec 2024 19:59:15 +0800 +Subject: [PATCH 05/19] image layer:fix code style + +Signed-off-by: liuxu +--- + .../modules/image/oci/storage/layer_store/layer.c | 9 +++++---- + .../modules/image/oci/storage/layer_store/layer.h | 6 +++--- + .../image/oci/storage/layer_store/layer_store.c | 11 ++++++----- + .../image/oci/storage/layer_store/layer_store.h | 5 +++-- + 4 files changed, 17 insertions(+), 14 deletions(-) + +diff --git a/src/daemon/modules/image/oci/storage/layer_store/layer.c b/src/daemon/modules/image/oci/storage/layer_store/layer.c +index 4beb3d10..8fd9aa5b 100644 +--- a/src/daemon/modules/image/oci/storage/layer_store/layer.c ++++ b/src/daemon/modules/image/oci/storage/layer_store/layer.c +@@ -15,16 +15,17 @@ + + #include "layer.h" + +-#include +-#include + #include + #include + ++#include ++#include ++#include ++#include ++ + #include "constants.h" +-#include "isula_libutils/storage_mount_point.h" + #include "util_atomic.h" + #include "utils.h" +-#include "isula_libutils/log.h" + #include "utils_file.h" + + void free_layer_t(layer_t *ptr) +diff --git a/src/daemon/modules/image/oci/storage/layer_store/layer.h b/src/daemon/modules/image/oci/storage/layer_store/layer.h +index 9387efe0..94831ef4 100644 +--- a/src/daemon/modules/image/oci/storage/layer_store/layer.h ++++ b/src/daemon/modules/image/oci/storage/layer_store/layer.h +@@ -20,9 +20,9 @@ + #include + #include + +-#include "isula_libutils/storage_layer.h" +-#include "isula_libutils/storage_mount_point.h" +-#include "isula_libutils/log.h" ++#include ++#include ++#include + + #ifdef __cplusplus + extern "C" { +diff --git a/src/daemon/modules/image/oci/storage/layer_store/layer_store.c b/src/daemon/modules/image/oci/storage/layer_store/layer_store.c +index 3ffe0ca7..bb2e7edc 100644 +--- a/src/daemon/modules/image/oci/storage/layer_store/layer_store.c ++++ b/src/daemon/modules/image/oci/storage/layer_store/layer_store.c +@@ -19,6 +19,11 @@ + #include + #include + #include ++#include ++#include ++#include ++#include ++ + #include + #include + #include +@@ -26,10 +31,6 @@ + #include + #include + #include +-#include +-#include +-#include +-#include + + #include "util_archive.h" + #include "storage.h" +@@ -1709,7 +1710,7 @@ static int load_layers_from_json_files() + } + + ret = 0; +- goto unlock_out; ++ + unlock_out: + layer_store_unlock(); + return ret; +diff --git a/src/daemon/modules/image/oci/storage/layer_store/layer_store.h b/src/daemon/modules/image/oci/storage/layer_store/layer_store.h +index eba406d4..a1b0857e 100644 +--- a/src/daemon/modules/image/oci/storage/layer_store/layer_store.h ++++ b/src/daemon/modules/image/oci/storage/layer_store/layer_store.h +@@ -16,11 +16,12 @@ + #define DAEMON_MODULES_IMAGE_OCI_STORAGE_LAYER_STORE_LAYER_STORE_H + + #include +-#include +-#include + #include + #include + ++#include ++#include ++ + #include "storage.h" + #include "io_wrapper.h" + +-- +2.23.0 + -- cgit v1.2.3