From b4d2566ea793a61ec2ce58b241b318c084a38655 Mon Sep 17 00:00:00 2001 From: Aurelien Degremont Date: Sat, 30 Mar 2024 21:32:02 +0100 Subject: [PATCH] LU-930 ofd: improve orphan cleaning message Reword the orphan cleaning message, happening at each MDT connection after OST start to make it less scary and implies a bit more this is just normal thing going on. Test-Parameters: trivial Change-Id: I7b4d726b1e96fe8d39872df5ed85453c99ccdc6a Signed-off-by: Aurelien Degremont Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54639 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Arshad Hussain Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/ofd/ofd_dev.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lustre/ofd/ofd_dev.c b/lustre/ofd/ofd_dev.c index 32c9536..00cd1bb 100644 --- a/lustre/ofd/ofd_dev.c +++ b/lustre/ofd/ofd_dev.c @@ -1367,6 +1367,8 @@ static int ofd_orphans_destroy(const struct lu_env *env, u64 oid; int skip_orphan; int rc = 0; + char *target_start; + int target_len; ENTRY; @@ -1387,8 +1389,10 @@ static int ofd_orphans_destroy(const struct lu_env *env, if (CFS_FAIL_CHECK(OBD_FAIL_OST_NODESTROY)) goto done; - LCONSOLE(D_INFO, "%s: deleting orphan objects from "DOSTID - " to "DOSTID"\n", ofd_name(ofd), seq, end_id + 1, seq, last); + deuuidify(exp->exp_client_uuid.uuid, NULL, &target_start, &target_len); + LCONSOLE(D_INFO, "%s: new connection from %.*s (cleaning up unused objects from "DOSTID" to "DOSTID")\n", + ofd_name(ofd), target_len, target_start, seq, end_id + 1, seq, + last); while (oid > end_id) { rc = fid_set_id(fid, oid); -- 1.8.3.1