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

lustre_idl.h compilation regression from ORNL-10

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • Lustre 2.4.0, Lustre 2.4.1, Lustre 2.5.0, Lustre 2.4.2, Lustre 2.5.1, Lustre 2.4.3
    • None
    • 3
    • 13849

    Description

      Commit d190c63f, "ORNL-10: Basic IR implementation" broke the compilation of lustre_idl.h in user space. lustre_idl.h is packaged for installation in user space. We cannot rely on lustre's internals to be available when lustre_idl.h is compiled.

      In particular, the bug is here:

      struct mgs_nidtbl_entry {
              __u64           mne_version;    /* table version of this entry */
              __u32           mne_instance;   /* target instance # */
              __u32           mne_index;      /* target index */
              __u32           mne_length;     /* length of this entry - by bytes */
              __u8            mne_type;       /* target type LDD_F_SV_TYPE_OST/MDT */
              __u8            mne_nid_type;   /* type of nid(mbz). for ipv6. */
              __u8            mne_nid_size;   /* size of each NID, by bytes */
              __u8            mne_nid_count;  /* # of NIDs in buffer */
              union { 
                      lnet_nid_t nids[0];     /* variable size buffer for NIDs. */
              } u;
      };
      

      lnet_nid_t is not defined in lustre_idl.h.

      Attachments

        Issue Links

          Activity

            People

              jhammond John Hammond
              morrone Christopher Morrone (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: