[Dovecot] DoveCot compression to save HDD space
Stephen Warren
swarren at wwwdotorg.org
Wed Feb 14 17:26:28 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bill Landry wrote:
>> 1. save the file to some temporary file in a directory where only
>> deliver has access
>> 2. change effective UID to destination user (keep the deliver group
>> effective) and hardlink the file to the user's maildir
>> 3. change effective UID back to root
>> 4. process next user, goto 2
>> 5. Unlink the temporary file
Permissions are stored in the inode (essentially, with the file itself),
and not in the directory entry. As such, each hard link to the file
would share the exact same permissions, so the above algorithm doesn't
work to give each user their own permissions on the same underlying
storage file.
If you use symlinks, that would work with the above algorithm.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF00ZEhk3bo0lNTrURAgg6AJ9dA6fWeOD+n6oh0E1iQ8z2IxNIYwCdHV/S
/kT4eIhN4pXKG5blYthaKDs=
=q7vb
-----END PGP SIGNATURE-----
More information about the dovecot
mailing list