Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-18456 TCU: Trash Can/Undelete for Lustre
  3. LU-19998

TCU: notrash tag doesn't work on symlink

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Unresolved
    • Medium
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      the output of .Trash does show the symlink after setting up 'notrash' on it

      [root@trevis-90vm1 lustre]# lfs trash clean
      [root@trevis-90vm1 lustre]# ls .Trash
      [root@trevis-90vm1 lustre]# touch f
      [root@trevis-90vm1 lustre]# ln -s f f-link
      [root@trevis-90vm1 lustre]# lfs chattr -V +notrash f-link 
      Set flags 0/0X40 OK: rc=0
      [root@trevis-90vm1 lustre]# ls -al
      total 8
      drwxr-xr-x  3 root root 4096 Mar 12 20:45 .
      drwxr-xr-x. 4 root root 4096 Feb 25 22:32 ..
      -rw-r--r--  1 root root    0 Mar 12 20:45 f
      lrwxrwxrwx  1 root root    1 Mar 12 20:45 f-link -> f
      [root@trevis-90vm1 lustre]# rm f-link 
      rm: remove symbolic link 'f-link'? yes
      [root@trevis-90vm1 lustre]# ls .Trash
      f-link
      [root@trevis-90vm1 lustre]# ls -al .Trash
      total 8
      d--------- 2 root root 4096 Mar 12 20:44 .
      drwxr-xr-x 3 root root 4096 Mar 12 20:45 ..
      lrwxrwxrwx 1 root root    1 Mar 12 20:45 f-link -> f

      Attachments

        Activity

          People

            qian_wc Qian Yingjin
            qian_wc Qian Yingjin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: