/* PENDING */
{
- .olm_name = "PENDING",
+ .olm_name = MDT_ORPHAN_DIR,
},
/* ROOT */
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) {
"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);