Hello everyone!
Question:
How to made a Samba server take to client a result of "quota" command instead of a result of "df" command, when Linux client employ right-click->properties to see share disk usage?
Initially, the question was:
Why properties of a share - from desctop machine - show "2 TB" (real server storage space) as a total disk volume, while I set up the user disk space quota to 15 MB?
Description:
Server-side:
A server has i686 architecture and Debian GNU/Linux 7.5 (Wheezy) OS. File sharing is performed by Samba 3.6.6.
The filesystem of the storage is ext3. User and group quotas are on.
Code:
root@server:~# repquota -avu
*** Report for user quotas on device /dev/md0
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
user -- 3840 0 3840 39 0 0
Client-side:
The desctop has i686 architecture and Debian GNU/Linux 7.5 (Wheezy) OS. GUI is Gnome 3.
The user can't create any new files as he's out of granted disk space.
I'll be grateful for any ideas about how to made the server show to client just that amount of disk space which was granted to him - not the real volume of all storage.
Thank you.
P.S.: Here are links on topic which I've studied:
1.
http://samba.2283325.n4.nabble.com/P...td2420421.html - These guys succeed, but their case differs a bit from mine.
2.
https://bugzilla.samba.org/show_bug.cgi?id=5395 - Extremely close to my situation, but unfortunately doesn't consist a solution.
3.
http://fixunix.com/samba/141130-%5Bs...-question.html - I followed the proposed solution and added "strict allocate = yes" to my smb.conf, but obviously this works only for Windows clients.
Please, correct me if I'm wrong.