Windows – Weird used/free space view of network drives with Samba and XFS

quotasambawindowsxfs

I'm using XFS project quotas to offer some private and limited disk space to my users, running Windows. It works pretty well, as the users can't exceed the quota like expected. However, the Samba's reported free/used disk space is a bit crazy. In "My computer", when the drive is just highlighted, the free space reported is the total amount of space of the server drive, and the used space is the amount of the quota. In the "Properties" of the network drive, it's worse, the used space information is a bunch of special characters and bytes values.

How can I set Samba up to send correct values to the Windows built-in SMB client?

Server: Ubuntu Server 10.04 LTS with the default and latest packaged Samba version

Clients: Windows XP / Windows 7

Thanks.

Best Answer

It is possible to have quota information on xfs with samba, but you need to have the xfs quota libraries installed when you compile samba.