+ struct obd_device *obd = lmv2obd_dev(lmv);
+ int rc;
+ ENTRY;
+
+ /* FIXME: Currently ZFS still use local seq for ROOT unfortunately, and
+ * this fid_is_local check should be removed once LU-2240 is fixed */
+ if (!fid_is_sane(fid) || !(fid_seq_in_fldb(fid_seq(fid)) ||
+ fid_seq_is_local_file(fid_seq(fid)))) {
+ CERROR("%s: invalid FID "DFID"\n", obd->obd_name, PFID(fid));
+ RETURN(-EINVAL);
+ }