Whamcloud - gitweb
LU-930 ofd: improve orphan cleaning message 39/54639/4
authorAurelien Degremont <adegremont@nvidia.com>
Sat, 30 Mar 2024 20:32:02 +0000 (21:32 +0100)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Apr 2024 15:39:14 +0000 (15:39 +0000)
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 <adegremont@nvidia.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54639
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ofd/ofd_dev.c

index 32c9536..00cd1bb 100644 (file)
@@ -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);