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

Replace open call to WANT_FD with llapi_root_path_open()

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • None
    • None
    • 9223372036854775807

    Description

      Replace open call to WANT_FD with newly added API llapi_root_path_open()

      Example: A call to WANT_FD like below

      if (path_or_device[0] == '/')
              rc = get_root_path(WANT_FD, NULL, &mnt_fd,
                                 (char *)path_or_device, -1, NULL, NULL);
      else
              rc = get_root_path(WANT_FD, (char *)path_or_device,
                         &mnt_fd, NULL, -1, NULL, NULL);

      Will get replace by llapi_root_path_open()

      rc = llapi_root_path_open((char *)path_or_device, &mnt_fd);

      The changes are done under:

      lustre/utils/liblustreapi_fid.c
      lustre/utils/liblustreapi_hsm.c
      lustre/utils/liblustreapi_pcc.c 

      Attachments

        Activity

          [LU-16786] Replace open call to WANT_FD with llapi_root_path_open()
          pjones Peter Jones added a comment -

          Landed for 2.16

          pjones Peter Jones added a comment - Landed for 2.16

          "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50764/
          Subject: LU-16786 utils: Replace open call to WANT_FD
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 7154244354e3275f6a68f7581f7cfe9ef0a6507c

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50764/ Subject: LU-16786 utils: Replace open call to WANT_FD Project: fs/lustre-release Branch: master Current Patch Set: Commit: 7154244354e3275f6a68f7581f7cfe9ef0a6507c

          People

            arshad512 Arshad Hussain
            arshad512 Arshad Hussain
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: