FileVault sparsefile uses double of actual allocated disk space

disk-spaceencryptionfilevaultsparsebundle

I just noticed that for some reason disk usage (du) reports that FileVault in my home directory would use its allocated disk space twice:

[/Users]% sudo du -h -d 1 .
184G    ./.moo
170G    ./moo
204K    ./Shared
354G    .

[/Users]% df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/disk0s2    233G  225G  7.7G  97% /
devfs           119K  119K     0 100% /dev
/dev/disk1s2    466G  458G  7.6G  99% /Users/moo

The encrypted home folder is listed twice as /.moo and /moo

Is this indeed the case or is something broken on my FileVault setup?

Is there any steps to further diagnose the problem and bring down FileVault disk space consumption to real level? I have shutdown my Mac many times, so the post-login sparsebundle resize should have kicked in.

Best Answer

As I understand it, when you login, the encrypted disk image gets automatically mounted (and a link created to it). Thus, making your home folder /Users/moo point to the sparsebundle file within /Users/.moo. If you right click (or CTRL + click) on your home folder in the Finder and select Get Info, you should see thats its a Volume of a disk image with something like /Users/.moo/moo.sparsebundle. I beleive du reports its twice as its simply traversing the same effective folder structure again.