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

compile error for sles11 when JBD2_DEBUG is on

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Trivial
    • Lustre 1.8.9
    • Lustre 1.8.8
    • None
    • SLES11
    • 24,636
    • 9765

    Description

      For sles11 lustre expands s_mount_opts to unsigned long long:

      ldiskfs/kernel_patches/patches/ext4-misc-sles11.patch:

      @@ -997,7 +1004,7 @@ struct ext4_sb_info {
      struct buffer_head * s_sbh; /* Buffer containing the super block */
      struct ext4_super_block s_es; / Pointer to the super block in the buffer */
      struct buffer_head **s_group_desc;

      • unsigned int s_mount_opt;
        + unsigned long long s_mount_opt; /* lustre need more options */
        unsigned int s_mount_flags;
        ext4_fsblk_t s_sb_block;
        uid_t s_resuid;

      but does not update printk's specifier in fs/ext4/inode.c:ext4_forget()
      jbd_debug(4, "forgetting bh %p: is_metadata = %d, mode %o, "
      "data mode %x\n",
      bh, is_metadata, inode->i_mode,
      test_opt(inode->i_sb, DATA_FLAGS));

      test_opt(inode->i_sb, DATA_FLAGS) is unsigned long long now, so it should be printed as %Lx

      Attachments

        Issue Links

          Activity

            People

              bogl Bob Glossman (Inactive)
              vs Vladimir V. Saveliev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: