[Samba] Linux disk quota support

Ryan Novosielski novosirj at umdnj.edu
Thu Jan 10 23:24:51 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

emre wrote:
> Dear Listmembers,
> 
> I installed samba-3.0.28 and configured --with-quotas, but I don't seem
> to be getting quota support.  Is there a description on how to do quotas
> with samba?  Is there something I should know about besides the
> configuration
> option --with-quotas?
> 
> Thank you,
> Emre Brookes
> 
> --------example-----------------
> 
> Last login: Fri Jan 11 16:44:19 2008 from localhost
> Linux 2.4.33.3.
> testquota at samba2:~$ cp termcap termcap2
> testquota at samba2:~$ cp termcap termcap3
> sd(8,17): warning, user block quota exceeded.
> testquota at samba2:~$ rm termcap3
> testquota at samba2:~$ smbclient //localhost/homes
> Password:
> Domain=[SAMBA2] OS=[Unix] Server=[Samba 3.0.28]
> smb: \> put termcap termcap3
> putting file termcap as \termcap3 (8757.9 kb/s) (average 8758.8 kb/s)
> smb: \> put termcap termcap4
> putting file termcap as \termcap4 (8757.9 kb/s) (average 8758.8 kb/s)
> smb: \> put termcap termcap5
> putting file termcap as \termcap5 (89690000.0 kb/s) (average 13138.2 kb/s)
> smb: \> exit
> testquota at samba2:~$ ls
> abcd  termcap  termcap2  termcap3*  termcap4*  termcap5*
> testquota at samba2:~$

Something is amiss here. No quota support, to me, means that it won't
realize it's out of quota, yes. However, seems to me that the OS should
be enforcing this quota regardless of that fact (meaning that Samba
would not show an out of quota message, but something less intelligent,
like permission denied). Anyone else?

> --- additional configuration data
> 
> Linux 2.4.33.3 SMP i686 GNU/Linux
> FS is ext3
> ----
> 
> The configuration seemed to support this (from config.log)
> 
> configure:57624: checking whether to try disk-quotas support
> configure:57631: result: yes
> configure:57667: checking whether to try the new lib/sysquotas.c interface
> configure:57699: result: auto
> configure:57706: checking whether to try the lib/sysquotas.c interface
> on linux-gnu
> configure:57710: result: yes
> configure:57737: checking whether to use the lib/sysquotas_linux.c
> builtin support
> configure:57739: result: yes
> configure:57748: checking whether to use the lib/sysquotas_xfs.c builtin
> support
> configure:57750: result: yes
> 
> ...
> 
> configure:57919: checking sys/fs/vx_quota.h usability
> configure:57936: gcc -c -O -D_SAMBA_BUILD_=3  -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -DLDAP_DEPRECATED con\ftest.c >&5
> conftest.c:523:29: sys/fs/vx_quota.h: No such file or directory
> 
> ...
> configure:59087: checking whether the sys_quota interface works
> configure:59123: gcc -c -O -D_SAMBA_BUILD_=3  -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -DLDAP_DEPRECATED -Ii\nclude
> -I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include
> -I./libaddns -I./librpc -I./popt conftest.c >&5
> In file included from conftest.c:501:
> ./lib/sysquotas.c: In function `command_get_quota':
> ./lib/sysquotas.c:189: warning: assignment makes pointer from integer
> without a cast
> ./lib/sysquotas.c:216: warning: assignment makes pointer from integer
> without a cast
> In file included from conftest.c:501:
> ./lib/sysquotas.c: In function `command_set_quota':
> ./lib/sysquotas.c:341: warning: assignment makes pointer from integer
> without a cast
> ./lib/sysquotas.c:384: warning: assignment makes pointer from integer
> without a cast
> configure:59129: $? = 0
> configure:59146: result: yes
> configure:59149: checking whether to use the new lib/sysquotas.c interface
> configure:59163: result: yes
> configure:59173: checking whether the sys_quota interface works with XFS
> configure:59209: gcc -c -O -D_SAMBA_BUILD_=3  -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -DLDAP_DEPRECATED -Ii\nclude
> -I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include
> -I./libaddns -I./librpc -I./popt conftest.c >&5
> configure:59215: $? = 0
> configure:59232: result: yes
> configure:59245: checking whether the old quota support works
> configure:59279: gcc -c -O -D_SAMBA_BUILD_=3  -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -DLDAP_DEPRECATED -Ii\nclude
> -I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include
> -I./libaddns -I./librpc -I./popt conftest.c >&5
> configure:59285: $? = 0
> configure:59302: result: yes
> configure:59305: checking whether to use the old quota support
> configure:59321: result: no
> ....
> 
> ac_cv_header_sys_fs_vx_quota_h=n
> ....
> ac_cv_header_sys_quota_h=yes
> 
> 


- --
 ---- _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$&| |__| |  | |__/ | \| _| |novosirj at umdnj.edu - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHhqlDmb+gadEcsb4RAkrxAJ9HUg3jcCvHKYSwavloJ+cObmQFSwCfYBCR
w7wxmfi/h53nZl9d+u/SHig=
=v7ud
-----END PGP SIGNATURE-----


More information about the samba mailing list