Details

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

    Description

      It looks like there are a couple of definitions that differ between wirecheck and wiretest.

      This is in wiretest, but not wirecheck:

      +       LASSERTF((int)offsetof(struct llog_log_hdr, llh_reserved) == 84, "found %lld\n",
      +                (long long)(int)offsetof(struct llog_log_hdr, llh_reserved));
      +       LASSERTF((int)sizeof(((struct llog_log_hdr *)0)->llh_reserved) == 4, "found %lld\n",
      +                (long long)(int)sizeof(((struct llog_log_hdr *)0)->llh_reserved));
      +       LASSERTF((int)offsetof(struct llog_log_hdr, llh_bitmap) == 88, "found %lld\n",
      +                (long long)(int)offsetof(struct llog_log_hdr, llh_bitmap));
      +       LASSERTF((int)sizeof(((struct llog_log_hdr *)0)->llh_bitmap) == 8096, "found %lld\n",
      +                (long long)(int)sizeof(((struct llog_log_hdr *)0)->llh_bitmap));
      +       LASSERTF((int)offsetof(struct llog_log_hdr, llh_tail) == 8184, "found %lld\n",
      +                (long long)(int)offsetof(struct llog_log_hdr, llh_tail));
      +       LASSERTF((int)sizeof(((struct llog_log_hdr *)0)->llh_tail) == 8, "found %lld\n",
      +                (long long)(int)sizeof(((struct llog_log_hdr *)0)->llh_tail));
      

      The other difference is with fiemap_extent where wirecheck has fe_device, but wiretest still references fe_reserved.

      -       LASSERTF((int)offsetof(struct fiemap_extent, fe_reserved[0]) == 44, "found %lld\n",
      -                (long long)(int)offsetof(struct fiemap_extent, fe_reserved[0]));
      -       LASSERTF((int)sizeof(((struct fiemap_extent *)0)->fe_reserved[0]) == 4, "found %lld\n",
      -                (long long)(int)sizeof(((struct fiemap_extent *)0)->fe_reserved[0]));
      +       LASSERTF((int)offsetof(struct fiemap_extent, fe_device) == 44, "found %lld\n",
      +                (long long)(int)offsetof(struct fiemap_extent, fe_device));
      +       LASSERTF((int)sizeof(((struct fiemap_extent *)0)->fe_device) == 4, "found %lld\n",
      +                (long long)(int)sizeof(((struct fiemap_extent *)0)->fe_device));
      

      Attachments

        Activity

          People

            utopiabound Nathaniel Clark
            kit.westneat Kit Westneat (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: