Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-7025

lfsck_layout_scan_stripes suspicious rc assignment

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      We seem to be having this sort of code there:

                      if (lso == NULL) {
                              struct lu_attr *attr = &info->lti_la;
      
                              rc = dt_attr_get(env, parent, attr);
                              if (rc != 0) {
                                      rc = PTR_ERR(lso);
                                      goto next;
                              }
      

      Now note that lso is already NULL - meaning we reset nonzero rc into zero in quite a roundabout way.
      Are you sure this is what was desired? I think we should just reuse the rc with the error instead?

      Attachments

        Activity

          People

            yong.fan nasf (Inactive)
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: