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

correct the strange use of llapi_resync_comp::lrc_synced

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.17.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      llapi_resync_comp::lrc_synced is used against intuitive in the mirror resync code.

      llapi_mirror_resync_many_params()
                              written = llapi_mirror_write(fd,                            
                                              comp_array[i].lrc_mirror_id,                
                                              buf + pos2 - pos,                           
                                              to_write2, pos2);                           
                              if (written < 0) {                                          
                                      /**                                                 
                                       * this component is not written successfully,  
                                       * mark it using its lrc_synced, it is supposed                                                          
                                       * to be false before getting here.                 
                                       *                                                  
                                       * And before this function returns, all            
                                       * elements of comp_array will reverse their    
                                       * lrc_synced flag to reflect their true            
                                       * meanings.                                        
                                       */                                                 
                                      comp_array[i].lrc_synced = true;    
      

      Attachments

        Activity

          People

            bobijam Zhenyu Xu
            bobijam Zhenyu Xu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: