Comment 173 for bug 509180

Revision history for this message
Plouj (plouj) wrote :

I use this script to find broken files where the encrypted file is empty:

#!/bin/bash

# Matches decrypted files in the home directory to empty files in the
# underlying encrypted directory by inode numbe

echo "saving inodes of empty files to /tmp/empty-encrypted-file-inodes"
find $HOME/ -xdev $(
    for inode in $(find $HOME/.Private/ -xdev -size 0c -exec ls -ai '{}' \;|awk '{print $1}'|tee /tmp/empty-encrypted-file-inodes); do
 echo " -inum $inode"
    done)

This might break if it constructs a command line longer than what your system allows.