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

lod_verify_striping(): bad userland LOV MAGIC: 0xd00bd10b

Details

    • 3
    • 8103

    Description

      This occurred on a SPARC MDS when an x86 client tried to "lfs setstripe" a new directory:

      00000004:00000080:30.0:1367562225.034331:2800:27098:0:(lod_lov.c:850:lod_verify_striping()) bad userland LOV MAGIC: 0xd00bd10b

      The number is exactly LOV_USER_MAGIC_V1 swabbed. The client code always send the lov_mds_md_v1 structures in little-endian, and the MDS code do no swabbing for the structures. This is problematic for x86 clients talking with SPARC servers.

      Attachments

        Issue Links

          Activity

            [LU-3268] lod_verify_striping(): bad userland LOV MAGIC: 0xd00bd10b

            Both patches landed to master.

            jhammond John Hammond added a comment - Both patches landed to master.
            jhammond John Hammond added a comment -

            Please see http://review.whamcloud.com/6285 for the ll_dir_getstripe()/lod_xattr_get()/fs root LOV EA fix.

            jhammond John Hammond added a comment - Please see http://review.whamcloud.com/6285 for the ll_dir_getstripe()/lod_xattr_get()/fs root LOV EA fix.

            I think this may only apply to getting lov on the root. In lod_xattr_get() the lmm returned is in the host byte order. I'll submit a patch this evening.

            jhammond John Hammond added a comment - I think this may only apply to getting lov on the root. In lod_xattr_get() the lmm returned is in the host byte order. I'll submit a patch this evening.
            liwei Li Wei (Inactive) added a comment - - edited

            It turned out the ll_dir_getstripe path needs fixing as well. On an x86 client talking to a SPARC server, I got:

            LustreError: 23875:0:(dir.c:871:ll_dir_getstripe()) unknown magic: D00BD10B

            liwei Li Wei (Inactive) added a comment - - edited It turned out the ll_dir_getstripe path needs fixing as well. On an x86 client talking to a SPARC server, I got: LustreError: 23875:0:(dir.c:871:ll_dir_getstripe()) unknown magic: D00BD10B
            jhammond John Hammond added a comment - Please see http://review.whamcloud.com/6273 .

            CC'ed John.

            liwei Li Wei (Inactive) added a comment - CC'ed John.

            People

              jhammond John Hammond
              liwei Li Wei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: