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

Text file busy error -- mainline 3.12 client

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • Lustre 2.4.2
    • None
    • 3
    • 12363

    Description

      When executing the following simple script, the in-kernel client fails with error "Text file busy", while the out-of-kernel 2.4.2 client compiled against 2.6.32 vanilla works.

      -----------
      #!/bin/bash

      rm -f ./test.sh
      touch ./test.sh && chmod a+x ./test.sh
      echo "echo foo" > ./test.sh
      ./test.sh
      echo "echo foo" > ./test.sh
      ------------

      The following script works in all cases:

      -----------
      #!/bin/bash

      rm -f ./test.sh
      touch ./test.sh && chmod a+x ./test.sh
      echo "echo foo" > ./test.sh
      bash ./test.sh
      echo "echo foo" > ./test.sh
      ------------

      Attachments

        1. LU-4398.tar.bz2
          118 kB
        2. LU4429+4520.patch
          3 kB
        3. LU-4520.ETXTBSY.lctl-dk.txt
          436 kB
        4. LU-4520.ETXTBSY.strace.txt
          20 kB
        5. LU-4520.ok-vanilla.pcap.txt
          5 kB
        6. LU-4520.pcap.txt
          4 kB

        Issue Links

          Activity

            [LU-4520] Text file busy error -- mainline 3.12 client

            Fixed a long time ago

            simmonsja James A Simmons added a comment - Fixed a long time ago
            pjones Peter Jones added a comment -

            Ah yes - thanks for clarifying!

            pjones Peter Jones added a comment - Ah yes - thanks for clarifying!
            rfehren Roland Fehrenbacher added a comment - - edited

            Peter,

            yes, it is. But we're working with the in-kernel client based on 3.12 and for that we needed to make a backport. The LU-4429 fix is also included in linux-next, so will probably be in 3.15.

            Roland

            rfehren Roland Fehrenbacher added a comment - - edited Peter, yes, it is. But we're working with the in-kernel client based on 3.12 and for that we needed to make a backport. The LU-4429 fix is also included in linux-next, so will probably be in 3.15. Roland
            pjones Peter Jones added a comment -

            Roland

            Wasn't the LU-4429 fix already in 2.5.1?

            Peter

            pjones Peter Jones added a comment - Roland Wasn't the LU-4429 fix already in 2.5.1? Peter

            I should have added, that it is indeed also necessary to include LU-4429 on the client.

            rfehren Roland Fehrenbacher added a comment - I should have added, that it is indeed also necessary to include LU-4429 on the client.

            Hi John,

            your patch (LU-4398, http://review.whamcloud.com/#/c/9063/) applied to 2.5.1 indeed fixes the issue. The problem still exists in 2.5.1 without the patch. Great job.

            Roland

            rfehren Roland Fehrenbacher added a comment - Hi John, your patch ( LU-4398 , http://review.whamcloud.com/#/c/9063/ ) applied to 2.5.1 indeed fixes the issue. The problem still exists in 2.5.1 without the patch. Great job. Roland

            People

              wc-triage WC Triage
              rfehren Roland Fehrenbacher
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: