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

renaming the cwd of a process on another client exposes some dcache weirdness

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.3.0
    • Lustre 2.1.0
    • None
    • $ uname -r
      2.6.18-194.17.1.el5
      $ cat /proc/fs/lustre/version
      lustre: 2.0.59
      kernel: patchless_client
      build: jenkins-g3dcb5fb-PRISTINE-2.6.18-194.17.1.el5
    • 3
    • 4522

    Description

      1. On the first client, create and change to a directory.
        c1$ mkdir /mnt/lustre/dir1; cd /mnt/lustre/dir1
      2. Then, on the second, rename that directory:
        c2$ mv /mnt/lustre/dir1 /mnt/lustre/dir2
      3. Back on the first client, open(".", O_DIRECTORY...) will fail.
        c1$ ls
        /bin/ls: .: No such file or directory
        c$ pwd
        /mnt/lustre/dir1
        c1$ readlink /proc/$$/cwd
        /mnt/lustre/dir1
        c1$ stat .
        File: `.'
        Size: 4096 Blocks: 8 IO Block: 4096 directory
        Device: 2c54f966h/743766374d Inode: 144115205272502273 Links: 2
        Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
        Access: 2011-04-18 21:12:24.000000000 -0500
        Modify: 2011-04-18 21:12:24.000000000 -0500
        Change: 2011-04-18 21:12:33.000000000 -0500
        c1$ stat ../dir2
        File: `../dir2'
        Size: 4096 Blocks: 8 IO Block: 4096 directory
        Device: 2c54f966h/743766374d Inode: 144115205272502273 Links: 2
        Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
        Access: 2011-04-18 21:12:24.000000000 -0500
        Modify: 2011-04-18 21:12:24.000000000 -0500
        Change: 2011-04-18 21:12:33.000000000 -0500
        c1$ touch foo
        c1$ ls
        ls: .: No such file or directory
        c1$ ls foo
        foo
        c1$ cd ..
      4. Now everything appears to be consistent on c1.

      Attachments

        Activity

          People

            yong.fan nasf (Inactive)
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: