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

Replace open call to WANT_FD with llapi_root_path_open()

    XMLWordPrintable

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: