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

Transfer the object's type via dio_insert() API to allow OSD set remote object type correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.6.0
    • Lustre 2.6.0
    • 3
    • 14077

    Description

      When the LFSCK found a dangling name entry, it may be required to re-create the lost remote MDT-object. The LFSCK needs to know the file's type for the re-creating.

      Generally, the LFSCK can get the file's type from the name entry. Unfortunately, when we insert the name entry to the directory via dt_insert(), the sponsor does not transfer the file's type. It is not a problem for local case, because the OSD can get the file's type internally via checking the MDT-object directly. But for remote case, when the OSD handle the local insert, it cannot know the remote object's type. In DNE phase I, we only support remote directory, so the OSD can assume that the file's type is S_IFDIR. But such assumption will be wrong when enable remote object for normal file.

      Attachments

        Activity

          People

            yong.fan nasf (Inactive)
            yong.fan nasf (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: