[LU-8083] namespace LFSCK needs to handle symbol file properly Created: 29/Apr/16  Updated: 14/Jun/18  Resolved: 15/Aug/16

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.9.0

Type: Bug Priority: Minor
Reporter: nasf (Inactive) Assignee: nasf (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

We missed to handle symbol file when repair MDT-object's nlink as to cause ASSERT() in the following section:

static int lfsck_namespace_repair_nlink(const struct lu_env *env,
                                        struct lfsck_component *com,
                                        struct dt_object *obj,
                                        struct lu_attr *la)
{
        struct lfsck_thread_info        *info   = lfsck_env_info(env);
        struct lu_fid                   *tfid   = &info->lti_fid3;
        struct lfsck_namespace          *ns     = com->lc_file_ram;
        struct lfsck_instance           *lfsck  = com->lc_lfsck;
        struct dt_device                *dev    = lfsck_obj2dev(obj);
        const struct lu_fid             *cfid   = lfsck_dto2fid(obj);
        struct thandle                  *th     = NULL;
        struct linkea_data               ldata  = { NULL };
        struct lustre_handle             lh     = { 0 };
        __u32                            old    = la->la_nlink;
        int                              idx;
        int                              rc     = 0;
        __u8                             flags;
        ENTRY;

        LASSERT(!dt_object_remote(obj));
        LASSERT(S_ISREG(lfsck_object_type(obj)));
....


 Comments   
Comment by Gerrit Updater [ 29/Apr/16 ]

Fan Yong (fan.yong@intel.com) uploaded a new patch: http://review.whamcloud.com/19874
Subject: LU-8083 lfsck: repair symbol file nlink properly
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b4860a89cb9b096a568f49c270b4cff0f8b9455f

Comment by Gerrit Updater [ 15/Aug/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/19874/
Subject: LU-8083 lfsck: repair symbol file nlink properly
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a6d427ef428ca0e33bde714f04e1e41a5566b23a

Comment by Peter Jones [ 15/Aug/16 ]

Landed for 2.9

Generated at Sat Feb 10 02:14:30 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.