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

lfs: using old ioctl(LL_IOC_LOV_GETSTRIPE), use llapi_layout_get_by_path()

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      The first time "lfs setstripe" is used after mount, there is always a message printed on the console:

      Lustre: lfs: using old ioctl(LL_IOC_LOV_GETSTRIPE) on [0x200000402:0x2:0x0], use llapi_layout_get_by_path()
      

      We shouldn't be using an old interface that prints a warning message for a standard command.

      I haven't totally tracked down the callpath(s) that generate this message, but it is probably from the ll_file_getstripe() at the end of ll_lov_setstripe().

      It may be enough to not print the message if size != 0, and pass the size of the ioctl buffer by getting it via _IOC_SIZE(cmd) when LL_IOC_LOV_GETSTRIPE_NEW is called, and start using LL_IOC_LOV_GETSTRIPE_NEW from lfs.c?

      Attachments

        Issue Links

          Activity

            [LU-14316] lfs: using old ioctl(LL_IOC_LOV_GETSTRIPE), use llapi_layout_get_by_path()
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-14337 [ LU-14337 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is duplicated by DDN-1781 [ DDN-1781 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-11264 [ LU-11264 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to DDN-1780 [ DDN-1780 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-12580 [ LU-12580 ]
            adilger Andreas Dilger created issue -

            People

              wc-triage WC Triage
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: