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

open_by_handle_at() in write mode triggers ETXTBSY

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      If open_by_handle_at() is called in O_WRONLY or O_RDWR mode and then the file descriptor is closed, other lustre clients will still report ETXTBSY.

      Example:

      On cn16
      =======
      bschubert@cn16 ~>sudo ~/src/test/open-test /mnt/lustre_client-ES24/bschubert/ime/test7 1
      Opened /mnt/lustre_client-ES24/bschubert/ime/test7/test7, fd: 4
      Closed d: 4

      Now on cn41
      =========
      bschubert@cn41 ~>/mnt/lustre_client-ES24/bschubert/ime//test7
      -bash: /mnt/lustre_client-ES24/bschubert/ime//test7: Text file busy

      test7 is just any file which has the the execution bit set.

      Attachments

        Issue Links

          Activity

            [LU-10457] open_by_handle_at() in write mode triggers ETXTBSY
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-12661 [ LU-12661 ]
            adilger Andreas Dilger made changes -
            Resolution New: Duplicate [ 3 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            adilger Andreas Dilger made changes -
            Link New: This issue duplicates LU-8585 [ LU-8585 ]
            green Oleg Drokin made changes -
            Link New: This issue is duplicated by LU-10667 [ LU-10667 ]
            pjones Peter Jones made changes -
            Link Original: This issue is related to JFC-21 [ JFC-21 ]
            jhammond John Hammond made changes -
            Link New: This issue is related to LU-4398 [ LU-4398 ]
            pjones Peter Jones made changes -
            Link New: This issue is related to JFC-21 [ JFC-21 ]
            pjones Peter Jones made changes -
            Assignee Original: WC Triage [ wc-triage ] New: Oleg Drokin [ green ]
            pjones Peter Jones made changes -
            Reporter Original: Bernd Schubert [ aakef ] New: Diego Moreno [ diegom ]
            jhammond John Hammond made changes -
            Description Original: If open_by_handle_at() is called in O_WRONLY or O_RDWR mode and then the file descriptor is closed, other lustre clients will still report ETXTBSY.

            Example:

            On cn16https://jira.hpdd.intel.com/browse/LU-10457#
            =======
            bschubert@cn16 ~>sudo ~/src/test/open-test /mnt/lustre_client-ES24/bschubert/ime/test7 1
            Opened /mnt/lustre_client-ES24/bschubert/ime/test7/test7, fd: 4
            Closed d: 4

            Now on cn41
            =========
            bschubert@cn41 ~>/mnt/lustre_client-ES24/bschubert/ime//test7
            -bash: /mnt/lustre_client-ES24/bschubert/ime//test7: Text file busy

            test7 is just any file which has the the execution bit set.
            New: If open_by_handle_at() is called in O_WRONLY or O_RDWR mode and then the file descriptor is closed, other lustre clients will still report ETXTBSY.

            Example:

            On cn16
            =======
            bschubert@cn16 ~>sudo ~/src/test/open-test /mnt/lustre_client-ES24/bschubert/ime/test7 1
            Opened /mnt/lustre_client-ES24/bschubert/ime/test7/test7, fd: 4
            Closed d: 4

            Now on cn41
            =========
            bschubert@cn41 ~>/mnt/lustre_client-ES24/bschubert/ime//test7
            -bash: /mnt/lustre_client-ES24/bschubert/ime//test7: Text file busy

            test7 is just any file which has the the execution bit set.

            People

              green Oleg Drokin
              diegom Diego Moreno (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: