Tyler,
The "while" loop in my script is doing what you describe No need to do it manually.
Taking your example, if you type:
ecryptfs-filename-plain2encrypted foo/bar/baz
You will get the full path in the lower filesystem (relative to its root)... i.e., the script will spit something like:
ECRYPTFS_FNEK_ENCRYPTED.blabla/ECRYPTFS_FNEK_ENCRYPTED.bleble/ECRYPTFS_FNEK_ENCRYPTED.blibli
As for the problem you spotted with hard links, it would only happen if the hard links are located in the same directory. So the attached patch makes the script fail safely, rather than giving incorrect results.
Tyler,
The "while" loop in my script is doing what you describe No need to do it manually.
Taking your example, if you type:
ecryptfs- filename- plain2encrypted foo/bar/baz
You will get the full path in the lower filesystem (relative to its root)... i.e., the script will spit something like:
ECRYPTFS_ FNEK_ENCRYPTED. blabla/ ECRYPTFS_ FNEK_ENCRYPTED. bleble/ ECRYPTFS_ FNEK_ENCRYPTED. blibli
As for the problem you spotted with hard links, it would only happen if the hard links are located in the same directory. So the attached patch makes the script fail safely, rather than giving incorrect results.