Whamcloud - gitweb
LU-12355 osd-ldiskfs: timespec_trunc removed
[fs/lustre-release.git] / lustre / osd-zfs / osd_scrub.c
index 9a5c234..56a718b 100644 (file)
@@ -701,7 +701,7 @@ static const struct osd_lf_map osd_lf_maps[] = {
 
        /* PENDING */
        {
-               .olm_name               = "PENDING",
+               .olm_name               = MDT_ORPHAN_DIR,
        },
 
        /* ROOT */
@@ -1448,6 +1448,7 @@ int osd_scrub_setup(const struct lu_env *env, struct osd_device *dev)
        if (IS_ERR_OR_NULL(obj))
                RETURN(obj ? PTR_ERR(obj) : -ENOENT);
 
+       obj->do_body_ops = &osd_body_scrub_ops;
        scrub->os_obj = obj;
        rc = scrub_file_load(env, scrub);
        if (rc == -ENOENT || rc == -EFAULT) {
@@ -1467,10 +1468,11 @@ int osd_scrub_setup(const struct lu_env *env, struct osd_device *dev)
                                       "failed to allocate RAM for report\n",
                                       osd_name(dev));
                        } else {
-                               class_uuid_unparse(sf->sf_uuid, old_uuid);
-                               class_uuid_unparse(dev->od_uuid, new_uuid);
-                               CDEBUG(D_LFSCK, "%s: UUID has been changed "
-                                      "from %s to %s\n", osd_name(dev),
+                               snprintf(old_uuid->uuid, UUID_SIZE, "%pU", sf->sf_uuid);
+                               snprintf(new_uuid->uuid, UUID_SIZE, "%pU", dev->od_uuid);
+                               CDEBUG(D_LFSCK,
+                                      "%s: UUID has been changed from %s to %s\n",
+                                      osd_name(dev),
                                       old_uuid->uuid, new_uuid->uuid);
                        }
                        scrub_file_reset(scrub, dev->od_uuid, SF_INCONSISTENT);