LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-16-2014, 04:19 PM   #1
S4KmBL
LQ Newbie
 
Registered: Aug 2014
Posts: 11

Rep: Reputation: Disabled
SMB/CIFS share properties. Wrong disk space. Quotas. Debian Samba client.


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.

Last edited by S4KmBL; 08-17-2014 at 11:03 AM.
 
Old 08-17-2014, 01:55 PM   #2
S4KmBL
LQ Newbie
 
Registered: Aug 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Ok, I worked out a solution, but it looks more like a crutch.
If to add to [global] section of smb.conf the following:
Code:
unix extensions = No
the problem disappears. Now, total (and also available/used) disk space on the share is shown accordingly to granted user/group quotas to certain user. The "properties" doesn't lie on a user any more.
But for those who needs both: unix extensions and quota to work properly, this apparently won't be a good idea.
Hence, the question is still open: How to make Samba always send to client "SMB_QUERY_FS_SIZE_INFO" instead of "SMB_QUERY_POSIX_FS_INFO"?
 
1 members found this post helpful.
  


Reply

Tags
bugzilla, diskspace, quotas, samba, shares



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Debian's and debian based distros issue with disk space. darkstarbyte Linux - Software 3 08-14-2010 10:58 PM
LXer: Implementing quotas to restrict disk space usage LXer Syndicated Linux News 0 09-11-2007 03:50 PM
Samba + disk quotas DanWiFi Linux - Software 0 08-20-2004 10:19 AM
Samba 3 and disk quotas ducati Linux - Newbie 1 02-05-2004 08:30 AM
Gnome available disk space Peds222 Linux - General 3 09-10-2003 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration