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

bad negative dentry caching in striped directory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.6.0
    • Lustre 2.6.0
    • 3
    • 13614

    Description

      Using 2.5.57-87-g57d8f6d with or without http://review.whamcloud.com/#/c/9511/17, I see spurious negative dentry caching in a striped directory.

      # export MDSCOUNT=2
      # export MOUNT_2=y
      # llmount.sh
      ...
      u:~# cd /mnt/lustre
      u:lustre# rm -rf d0/0 d1/0 d0 d1
      u:lustre# ls
      u:lustre# lfs mkdir -c4 -i0 d0
      u:lustre# lfs mkdir -c4 -i0 d1
      u:lustre# sleep 30
      u:lustre# touch d0/0
      u:lustre# sys_rename d0/0 d1/0
      u:lustre# sys_stat d0/0
      cannot stat `d0/0': No such file or directory
      u:lustre# sys_rename /mnt/lustre2/d1/0 /mnt/lustre2/d0/0
      u:lustre# sys_stat d0/0
      cannot stat `d0/0': No such file or directory
      u:lustre# 
      u:lustre# sys_stat d1/0
      cannot stat `d1/0': No such file or directory
      u:lustre# sys_getdents d0
      d 180144002274689027 '..'
      d 216172799293652995 '.'
      d 144115188193296385 '..'
      d 180144002274689027 '..'
      d 234187197803134979 '.'
      d 180144002274689027 '.'
      r 234187197819912194 '0'
      d 198158400784171011 '.'
      d 180144002274689027 '..'
      u:lustre# echo > d0/0
      u:lustre# sys_stat d0/0
      dev             743766374
      ino      234187197819912194
      mode                33188
      nlink                   1
      uid                     0
      gid                     0
      rdev                    0
      size                    1
      blksize           4194304
      blocks                  8
      atime          1397770152
      mtime          1397770174
      ctime          1397770174
      

      Attachments

        Issue Links

          Activity

            People

              di.wang Di Wang
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: