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

Resource acquired to fd may be lost

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Trivial
    • Lustre 2.9.0
    • None
    • 3
    • 9223372036854775807

    Description

      lustre/utils/llog_reader.c in function main():

          fd = open(argv[1], O_RDONLY);
          if (fd < 0) {...}
      
          is_ext = is_fstype_ext(fd);
          if (is_ext < 0) {
      	printf("Unable to determine type of filesystem containing %s\n",
      	       argv[1]);
      	goto out;                    <<<====
          }
      
      [...]
      
      out_fd:
          close(fd);
      out:
          return rc;
      

      Attachments

        Activity

          People

            dmiter Dmitry Eremin (Inactive)
            dmiter Dmitry Eremin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: