* zfs_readdir() generates ./.. on fly, but
* we want own entries (.. at least) with a fid
*/
-#if LUSTRE_VERSION_CODE >= OBD_OCD_VERSION(2, 3, 53, 0)
+#if LUSTRE_VERSION_CODE >= OBD_OCD_VERSION(2, 3, 55, 0)
#warning "fix '.' and '..' handling"
#endif
struct osd_object *obj = osd_dt_obj(dt);
ENTRY;
- LASSERT(obj->oo_db != NULL);
+ LASSERT(dt_object_exists(dt));
/*
* XXX: implement support for fixed-size keys sorted with natural
if (feat->dif_flags & DT_IND_RANGE)
RETURN(-ERANGE);
+ if (unlikely(feat == &dt_otable_features))
+ /* do not support oi scrub yet. */
+ RETURN(-ENOTSUPP);
+
+ LASSERT(obj->oo_db != NULL);
if (likely(feat == &dt_directory_features)) {
if (udmu_object_is_zap(obj->oo_db))
dt->do_index_ops = &osd_dir_ops;
else
RETURN(-ENOTDIR);
-#if 0
} else if (unlikely(feat == &dt_acct_features)) {
LASSERT(fid_is_acct(lu_object_fid(&dt->do_lu)));
dt->do_index_ops = &osd_acct_index_ops;
-#endif
} else if (udmu_object_is_zap(obj->oo_db) &&
dt->do_index_ops == NULL) {
/* For index file, we don't support variable key & record sizes