Skip to content

Commit de05e85

Browse files
committed
Treat ocf_metadata_detached as a valid shutdown status
Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
1 parent e630b81 commit de05e85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/metadata/metadata_superblock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright(c) 2020-2022 Intel Corporation
3-
* Copyright(c) 2024 Huawei Technologies
3+
* Copyright(c) 2024-2025 Huawei Technologies
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

@@ -127,7 +127,7 @@ int ocf_metadata_validate_superblock(ocf_ctx_t ctx,
127127
return -OCF_ERR_CRC_MISMATCH;
128128
}
129129

130-
if (superblock->clean_shutdown > ocf_metadata_clean_shutdown) {
130+
if (superblock->clean_shutdown > ocf_metadata_detached) {
131131
ocf_log_invalid_superblock("shutdown status");
132132
return -OCF_ERR_INVAL;
133133
}

0 commit comments

Comments
 (0)