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

Text file busy error after overwriting file

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • Lustre 2.8.0, Lustre 2.5.5
    • lustre-2.5.5-6chaos_2.6.32_573.26.1.1chaos.ch5.4.x86_64.x86_64
    • 3
    • 9223372036854775807

    Description

      Here's our reproducer:

      sh -c 'cd /p/lscratchd/$USER && (f=toss-3321; rm -f $f; cp /bin/ls $f; od -N1 $f; ./$f; echo > $f; rm -f $f)'
      

      This looks similiar to LU-6232. This affects emacs which is impacting our users. This behaviour is a difference in how xemacs vs. vi deal with files that they already have open. With vi, it always writes to a temporary new file which it then moves over top of the file being edited. With xemacs, the original file is moved to <file>~ and a new file written on the first write. After that it overwrites the new file. One can see this by running them, saving a file, checking the inode number with "ls -i <file>", and then repeating the save and check operations. With xemacs the inode number won't change for each save. With vi, it will.

      Attachments

        1. debug.lu8441.tar
          11.70 MB
        2. lu8441.logs.tar
          53.50 MB

        Issue Links

          Activity

            [LU-8441] Text file busy error after overwriting file
            yujian Jian Yu made changes -
            Resolution New: Duplicate [ 3 ]
            Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
            ofaaland Olaf Faaland made changes -
            Labels Original: llnl llnlfixready topllnl New: llnl llnlfixready
            pjones Peter Jones made changes -
            Link New: This issue duplicates LU-8019 [ LU-8019 ]
            kamakea1 Teresa Kamakea (Inactive) made changes -
            Attachment New: lu8441.logs.tar [ 28721 ]
            pjones Peter Jones made changes -
            Resolution Original: Fixed [ 1 ]
            Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
            pjones Peter Jones made changes -
            Labels Original: llnl topllnl New: llnl llnlfixready topllnl
            pjones Peter Jones made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            pjones Peter Jones made changes -
            Link New: This issue is duplicated by LU-7727 [ LU-7727 ]
            adilger Andreas Dilger made changes -
            Affects Version/s New: Lustre 2.8.0 [ 11113 ]
            kamakea1 Teresa Kamakea (Inactive) made changes -
            Attachment New: debug.lu8441.tar [ 28017 ]

            People

              yujian Jian Yu
              kamakea1 Teresa Kamakea (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: