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

POSIX: read.13 and readdir.6: time stamps incorrect: atime was not updated

    XMLWordPrintable

Details

    • 3
    • 23,291
    • 8310

    Description

      Here is the result of running the LSB-VSX POSIX test suite (lts_vsx-pcts2.0beta2.tgz):
      https://maloo.whamcloud.com/test_sets/f610526e-8b52-11e0-aab9-52540025f9af

      The baseline is ext4.

      ####################################################
      Test Name: read.13 Failed
      
      	Test Description:
      The access time field st_atime is marked for update on a call to
      read().
      Posix Ref: Component READ Assertion 6.4.1.2-19(A)
      
      	Test Strategy:
      OPEN existing file containing 36 bytes of known data
      SAVE timestamps using savtimes() - (genlib)
      VERIFY read(fd, buf, 36) returns 36
      VERIFY that st_atime has been updated using chktimes() - (genlib)
      REPEAT for FIFO and pipe:
        WRITE 36 bytes to FIFO/pipe
        SAVE timestamps using savtimes()/fsavtimes() - (genlib)
        VERIFY read(fd, buf, 36) returns 36
        VERIFY that st_atime has been updated using chktimes()/fchktimes() -
        (genlib)
      
      	Test Information:
      time stamps incorrect: atime was not updated
      
      ####################################################
      Test Name: readdir.6 Failed
      
      	Test Description:
      A call to readdir() will mark for update the st_atime time-related
      field of the directory each time the directory is actually read.
      Posix Ref: Component READDIR Assertion 5.1.2.2-09(A)
      
      	Test Strategy:
      OBTAIN the system value associated with pathconf() with _PC_NAME_MAX
      and current directory
      VERIFY that pathconf() returned successfully and errno was not set
      IF the maximum number of characters in a file name (from pathconf())
      is greater than _POSIX_NAME_MAX then:
        CREATE an element in the entry table with a name which is of this
        length
      FOR all elements in the entry table except those for "." and ".."
        CREATE file using crfile() - (genlib)
        SAVE the inode for the file in the entry table
      SAVE times stamps using savtimes() - (genlib)
      OPEN current directory using opendir()
      READ directory using readdir()
      VERIFY that readdir() returned successfully
      VERIFY that st_atime has been updated using chktimes() - (genlib)
      CLOSE directory using closedir()
      UNLINK all elements in the entry table except those for "." and ".."
      using unlink()
      
      	Test Information:
      time stamps incorrect: atime was not updated
      
      

      Attachments

        Issue Links

          Activity

            People

              malkolm Malcolm Cowe (Inactive)
              yujian Jian Yu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: