Details
-
Bug
-
Resolution: Fixed
-
Critical
-
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.