if (!mdd_object_exists(parent))
goto shrink;
- /* XXX: need more processing for remote object in the future. */
+ /* XXX: Currently, skip remote object, the consistency for
+ * remote object will be processed in LFSCK phase III. */
if (mdd_object_remote(parent)) {
mdd_object_put(env, parent);
ldata.ld_lee = LINKEA_NEXT_ENTRY(ldata);
goto checkpoint;
}
- /* XXX: need more processing for remote object in the future. */
+ /* XXX: Currently, skip remote object, the consistency for
+ * remote object will be processed in LFSCK phase III. */
if (!mdd_object_exists(target) || mdd_object_remote(target))
goto obj_put;
else if (IS_ERR(obj))
RETURN(PTR_ERR(obj));
- /* XXX: need more processing for remote object in the future. */
+ /* XXX: Currently, skip remote object, the consistency for
+ * remote object will be processed in LFSCK phase III. */
if (!mdd_object_exists(obj) || mdd_object_remote(obj) ||
unlikely(!S_ISDIR(mdd_object_type(obj))))
GOTO(out, rc = 0);
goto checkpoint;
}
- /* XXX: need more processing for remote object in the future. */
+ /* XXX: Currently, skip remote object, the consistency for
+ * remote object will be processed in LFSCK phase III. */
if (mdd_object_exists(child) && !mdd_object_remote(child))
rc = mdd_lfsck_exec_dir(env, lfsck, child, ent);
mdd_object_put(env, child);
goto checkpoint;
}
- /* XXX: In fact, low layer otable-based iteration should not
- * return agent object. But before LU-2646 resolved, we
- * need more processing for agent object. */
+ /* XXX: Currently, skip remote object, the consistency for
+ * remote object will be processed in LFSCK phase III. */
if (mdd_object_exists(target) && !mdd_object_remote(target))
rc = mdd_lfsck_exec_oit(env, lfsck, target);
mdd_object_put(env, target);
rc = osd_get_lma(info, inode, &info->oti_obj_dentry, lma);
if (rc == 0) {
if (fid_is_llog(&lma->lma_self_fid) ||
- (!scrub && fid_is_internal(&lma->lma_self_fid)))
+ (!scrub && fid_is_internal(&lma->lma_self_fid)) ||
+ (scrub && (lma->lma_incompat & LMAI_AGENT)))
rc = SCRUB_NEXT_CONTINUE;
else
*fid = lma->lma_self_fid;