From 16181a2ce8983bdce433a970b02ebe9416cc065a Mon Sep 17 00:00:00 2001 From: Erickson Silva de Oliveira Date: Thu, 16 Nov 2023 12:17:03 -0300 Subject: [PATCH] Replace a file test from fsmond fsmond tries to create a test file in "/.fs-test" but it is not possible because "/" is blocked by ostree. So the fix is to replace this path from fsmond monitoring with /sysroot/.fs_test. Below is a comparison of the logs: - Before change: ( 196) fsmon_service : Warn : File (/.fs-test) test failed - After change: ( 201) fsmon_service : Info : tests passed Test Plan: - PASS: Build mtce package - PASS: Replace fsmond binary on AIO-SX - PASS: Check fsmond.log output Closes-Bug: 2043712 Change-Id: Ib4bad73448735bce1dff598151fce86f867f4db7 Signed-off-by: Erickson Silva de Oliveira --- mtce/src/fsmon/fsmonHdlr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mtce/src/fsmon/fsmonHdlr.cpp b/mtce/src/fsmon/fsmonHdlr.cpp index b5342208..e733c376 100644 --- a/mtce/src/fsmon/fsmonHdlr.cpp +++ b/mtce/src/fsmon/fsmonHdlr.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2016 Wind River Systems, Inc. + * Copyright (c) 2013, 2016, 2023 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 * @@ -30,7 +30,7 @@ using namespace std; typedef char FileNameT[PATH_MAX]; static FileNameT _files[] = -{ "/.fs-test", +{ "/sysroot/.fs_test", "/scratch/.fs_test", "/var/log/.fs_test", "/var/run/.fs_test",