On Wed, Jun 23, 1999 at 10:48:39AM +0300, Petri Kaukasoina wrote:
> 7. ../testprog
> 8. switch off the power
> 9. switch on the power
> 10. after fsck look for the file "testfile" in the directories testdir and
> lost+found (under the mount point of the file system)
>
> If the chattr trick worked you would have "testfile" in "testdir". Otherwise
> you would find it in lost+found.
I got home and tried it myself. To my surprise, the "chattr +S" trick did
work. If testdir had the "S" attribute, testfile was in testdir after reboot
but if the directory didn't have the attribute, fsck put the file in
lost+found. It worked in Linux versions 2.0.37 and 2.2.10. Either something
has changed in the kernel since I tried it last time or I did some mistake
then.
So, it seems that it's enough to
chattr +S /var/qmail/queue/{bounce,info/*,intd,local/*,mess/*,remote/*,todo}
and the same for the new and cur subdirectories in every maildir.