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

lfs getstripe should avoid opening regular files

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Lustre 2.14.0
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      lfs getstripe uses an ioctl on the parent directory to get the file striping but still opens the file to call the OBD_IOC_GETNAME ioctl in get_mds_md_size(). Rather than doing this we should just use a large enough size for the lum buffer. This avoids interfering with existing file locks and leases on the file.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jhammond John Hammond
                Reporter:
                jhammond John Hammond
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: