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

TCU: implement virtual ".Trash" subdirectory for undelete

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • 3
    • 9223372036854775807

      It would be very useful to have a virtual ".Trash" subdirectory accessible in each directory in the filesystem that can be used to browse files/directories in the trash can and access them for recovery.

      The FID of the .Trash directory would be derived from the FID of the parent directory (pFID), by looking up the corresponding "stub" directory with the name ".lustre/trash/pFID". Essentially this is just a virtual shortcut to .lustre/trash/pFID that is accessible in each directory if specified by name, though it is not visible in each directory to avoid issues with "rm -r", backups, etc.

      It isn't possible that the .Trash directory is a symlink to .lustre/trash/pFID because the .lustre directory is in the root of the filesystem, and may be inaccessible from the mountpoint on the client.

            qian_wc Qian Yingjin
            adilger Andreas Dilger
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: