Whamcloud - gitweb
LU-3871 osd: Tell QUOTA/NAME_LLOG fid in fid_is_on_ost check 27/7527/4
authorwang di <di.wang@intel.com>
Tue, 10 Sep 2013 07:25:29 +0000 (00:25 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 27 Sep 2013 17:50:23 +0000 (17:50 +0000)
Tell QUOTA/NAME_LLOG fid during fid_is_on_ost check, so
they will not be inserted into /O, which might confuse
e2fsck otherwise.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: I4d091393b60c66a554de861359d8f5a32c83029e
Reviewed-on: http://review.whamcloud.com/7527
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-zfs/osd_oi.c

index be873b3..3c6f906 100644 (file)
@@ -245,6 +245,10 @@ int fid_is_on_ost(const struct lu_env *env, struct osd_device *osd,
        if (fid_is_idif(fid))
                RETURN(1);
 
        if (fid_is_idif(fid))
                RETURN(1);
 
+       if (unlikely(fid_is_local_file(fid) || fid_is_llog(fid)) ||
+                    fid_is_name_llog(fid) || fid_is_quota(fid))
+               RETURN(0);
+
        if (osd->od_is_ost)
                RETURN(1);
 
        if (osd->od_is_ost)
                RETURN(1);