Skip to content

Commit 6af7456

Browse files
committed
Logged a busy-device fstab-removal failure at ERR, not INFO
VerifyNotInFstab logged the "device busy, cannot remove from fstab" interruption at INFO. An INTERRUPTED outcome should surface at ERR so it is visible without verbose logging. Split out from the CFE-90 work as an unrelated log-level correction.
1 parent 841d487 commit 6af7456

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cf-agent/nfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ int VerifyNotInFstab(EvalContext *ctx, char *name, const Attributes *a, const Pr
851851

852852
if (strstr(line, "busy"))
853853
{
854-
cfPS(ctx, LOG_LEVEL_INFO, PROMISE_RESULT_INTERRUPTED, pp, a, "The device under '%s' cannot be removed from '%s'",
854+
cfPS(ctx, LOG_LEVEL_ERR, PROMISE_RESULT_INTERRUPTED, pp, a, "The device under '%s' cannot be removed from '%s'",
855855
mountpt, VFSTAB[VSYSTEMHARDCLASS]);
856856
*result = PromiseResultUpdate(*result, PROMISE_RESULT_INTERRUPTED);
857857
free(line);

0 commit comments

Comments
 (0)