summaryrefslogtreecommitdiff
path: root/source3/smbd/quotas.c
AgeCommit message (Collapse)AuthorFilesLines
2012-09-11quota: move function again to its belonging ifdef blockBjörn Jacke1-11/+9
Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Tue Sep 11 04:44:28 CEST 2012 on sn-devel-104
2012-09-07s3-smbd: Remove OSF1 support from old (pre-sysquotas) codeBjörn Jacke1-65/+0
"recent" Tru64 releases had QUOTACTL_4B support
2012-09-06s3:quota: don't force the block size to 512Björn Jacke1-3/+0
there is no point in forcing the block size to 512 when curblocks is 1. This will only lead to false quota reporting. See bug #3272
2012-09-06s3-smbd: Remove remaining references to removed OS support in old-style ↵Andrew Bartlett1-6/+6
quota code Signed-off-by: Björn Jacke <bj@sernet.de> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Sep 6 10:47:18 CEST 2012 on sn-devel-104
2012-09-06s3-smbd: Remove IRIX support from old (pre-sysquotas) codeAndrew Bartlett1-129/+0
This should be essentially dead code, as while it is possible to disable sysquotas, the sysquotas has since 2003 supported the 4A varient used on IRIX. Andrew Bartlett Signed-off-by: Björn Jacke <bj@sernet.de>
2012-09-06s3-smbd: Remove HPUX support from old (pre-sysquotas) codeAndrew Bartlett1-19/+0
This should be essentially dead code, as while it is possible to disable sysquotas, the sysquotas has since 2003 supported the 4A varient used on HPUX. Andrew Bartlett Signed-off-by: Björn Jacke <bj@sernet.de>
2012-09-06s3-smbd: Remove BSD support from old (pre-sysquotas) codeAndrew Bartlett1-226/+3
This is essentially dead code, as while it is possible to disable sysquotas, the default for BSD is now to use sysquotas with the addition of 4B support via the recent Darwin patch by James Peach. NFS support has been in sysquotas for quite some time now. Andrew Bartlett Signed-off-by: Björn Jacke <bj@sernet.de>
2012-09-06s3-smbd: Remove Linux support from old (pre-sysquotas) codeAndrew Bartlett1-438/+1
This is essentially dead code, as while it is possible to disable sysquotas, the default for Linux has been to use sysquotas for quite some time now. Andrew Bartlett Signed-off-by: Björn Jacke <bj@sernet.de>
2012-09-06build: Remove Unicos support (quota in particular)Andrew Bartlett1-89/+0
Unicos machines are long gone now (Cray now make Linux compute nodes), so remove the quota support. Andrew Bartlett Signed-off-by: Björn Jacke <bj@sernet.de>
2012-09-02s3: remove some duplicate quota codeBjörn Jacke1-27/+12
2012-04-05build: Remove sys_fopen wrapperAndrew Bartlett1-1/+1
2012-04-05build: Remove sys_open wrapperAndrew Bartlett1-2/+2
2011-06-14s3:smbd/quotas: add #include "system/filesys.h" (bug #8224)Stefan Metzmacher1-0/+1
This should fix the build on FreeBSD metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jun 14 09:38:49 CEST 2011 on sn-devel-104
2011-03-30s3: include smbd/smbd.h where needed.Günther Deschner1-0/+1
Guenther
2010-08-25s3:smbd: add nfs quota support to the linux-non-sysquota codeMichael Adam1-0/+198
This is based on the implementation for solaris and FreeBSD. It makes rpc calls out to the nfs server to retrieve quota information.
2009-12-12s3: Fix a very embarrassing build failureVolker Lendecke1-2/+2
2009-11-29s3: "disk_quotas" only looks at the devicenumberVolker Lendecke1-17/+13
2009-11-29s3: Pass the "fake dir create times" parameter to sys_*statVolker Lendecke1-13/+19
Step 0 to restore it as a per-share paramter
2009-06-29s3:fix build of old linux quota system and other unixes' quota implementationMichael Adam1-14/+14
By fixing the use of struct stat_ex. Michael
2009-01-08s3:smbd: remove stupid static variables for the nfs quota codeStefan Metzmacher1-16/+20
metze
2008-10-14Use {u,}int64_t instead of SMB_BIG_{U,}INT.Jelmer Vernooij1-53/+53
2008-09-15Fix cut and paste error in quota code.Timur1-2/+2
2007-11-13Remove last pstring from smbd/*.cJeremy Allison1-180/+185
Jeremy. (This used to be commit f1680bada913af4eaf5c0d686983018d6c8b3e5f)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-17/+17
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10r25311: Patch from Heinrich Mislik <Heinrich.Mislik@univie.ac.at> to fix AIXVolker Lendecke1-0/+3
quotas. Heinrich, I trust you on that, I don't even have compiled this :-) Volker (This used to be commit a8312a1d7b7e3ad00265279dd0640261beaa287d)
2007-10-10r23786: Use linux/dqblk_xfs.h rather than a private copy of this header in theAndrew Tridgell1-1/+13
Samba3 tree. This is neater, plus it avoids the need to get legal approval from SGI to use their GPLv2-only code under GPLv3. If/when SGI legal sort things out, we could consider adding back this header for very old systems where linux/dqblk_xfs.h is not available. (This used to be commit cb435543f84955be75368a3294bc6b627414d876)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r22149: BUG 4500: patch from Jorge Santos <jorge_a_santos@hotmail.com>Gerald Carter1-1/+1
to fix compile bug ni quotas.c (typo calling unbecome_root()). (This used to be commit 22d550d62b5834e2c5155550756d3462a1bd6561)
2007-10-10r22096: become_root_uid_only() is unneeded - it's only used inJeremy Allison1-15/+15
messages.c. Refactor to use become_root() instead and make it local to messages.c Jeremy. (This used to be commit f3ffb3f98472b69b476b702dfe5c0575b32da018)
2007-10-10r22060: Fix for AIX quotas from Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.Jeremy Allison1-0/+30
Jeremy. (This used to be commit 8d95cdf8c0a46abc6b5cbcec3fd8bf246d49ee4b)
2007-10-10r19260: Fix for bug #3524 from tiamat@komi.mts.ru - Solaris quotas.Jeremy Allison1-7/+9
Jeremy. (This used to be commit ac510a90f3adf72b64a8e2a764b0500dcd223b3f)
2007-10-10r17296: Replace the understandable parts of the quotaJeremy Allison1-17/+13
code with become_root_uid_only()/unbecome_root_uid_only() pairs. This code needs working on..... Jeremy. (This used to be commit 0661d4e26614180636bc57de0c48adf8b9ce7a21)
2007-10-10r12477: Remove a gcc -O6 warningVolker Lendecke1-0/+2
(This used to be commit dd39a37f8e6ab7dad46b180959636f5e402c136d)
2007-10-10r12076: Ensure setmntent() returns with != NULL in the disk_quotas() LinuxLars Müller1-1/+3
version. The IRIX 6.2 version is still without this check as I'm not sure if setmntent() is implemented in the same way. (This used to be commit 519ed7ca0ecffbc341c7516758a678af59f98586)
2007-10-10r10901: BUG 3145: Fix build issue regarding quota support on SolarisGerald Carter1-3/+3
(This used to be commit b7de9a6c6963e7d3bb1a05ed15600dd50a8f4a08)
2007-10-10r6712: BUG 2362: fix quota support on DragonFly (Joerg Sonnenberger ↵Gerald Carter1-14/+14
<joerg@leaf.dragonflybsd.org>) (This used to be commit 0644a2abf646be35b345665558ca173004beedde)
2007-10-10r5958: BUG 1843: patch from james peach to fix quotas (with no soft limits) ↵Gerald Carter1-5/+10
on IRIX (This used to be commit aeb3cea54ea2e050aef38e38fd8519510a14a184)
2007-10-10r5157: BUG 2266: conditionally include rpc/nettype.h to work around missing ↵Gerald Carter1-0/+2
header onf FreeBSD4 (This used to be commit 314da604735696da4cf350f35d84592356e31861)
2007-10-10r4301: One more *alloc -> SMB_MALLOC (not compiled by default).Jeremy Allison1-2/+2
Jeremy. (This used to be commit 235a0c1698db48583a6860a3a9fca9f261544365)
2007-10-10r1333: NFS Quota support from Dan Peterson.Richard Sharpe1-1/+203
(This used to be commit 609828444d9126d8a6e8ff43e4b3c19079a9eb56)
2004-03-16BUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at ↵Gerald Carter1-0/+4
(Heinrich Mislik) (This used to be commit 760b63496ccc908c76ea5d3ed474cbbca268ad61)
2004-01-15* Fix XFS quotas: XFS_USER_QUOTA -> USRQUOTAStefan Metzmacher1-8/+9
XFS_GROUP_QUOTA -> GRPQUOTA * Fix disk_free calculation with group quotas. * Add debug class 'quota' and a lot of DEBUG()'s to the quota code. metze (This used to be commit e9e5e2036f13ff847aa3ef52e8be657bef7d5774)
2004-01-05Patch from Stefan (metze) Metzmacher <metze at metzemix.de> to revert to ↵Jeremy Allison1-63/+96
2.2.x quota methods. :-). "here's a patch which ports the samba 2.2 samba_linux_quota.h stuff to 3_0. This is needed because of so many broken quota files outthere. Please, test this with old, new kernels (strucr dqblk, struct mem_dqblk, and struct if_dqblk) , quota.user, aquota.user formats what is when a user is over soft quota and over hard quotas..." Jeremy. (This used to be commit 4350aa6ce6cfdaf71cdcfd2aebcdc9560fa7efcf)
2003-11-19Group quotas patch from "Heinreichsberger, Helmut" ↵Jeremy Allison1-19/+32
<Helmut.Heinreichsberger@wincor-nixdorf.com> Jeremy. (This used to be commit 06c9e9163010a1035f448f76c4084228dc95334f)
2003-05-14Evolve quotas configure check more. Patch from Stefan (metze) Metzemacher. ↵Alexander Bokovoy1-0/+5
Now we are defaulting to --with-quotas=no but anyway trying to test them in configure. This is done to get information about as much quota API variations as possible -- when --with-quotas=no this does not affect build but provides us with more detailed information on build farm. (This used to be commit 3786695c72e6ff6a52a527382ac77142e236971b)
2003-05-12Add NT quota support. Patch from Stefan (metze) MetzemacherAlexander Bokovoy1-0/+109
1. Allows to change quota settings for shared mount points from Win2K and WinXP from Explorer properties tab 2. Disabled by default and when requested, will be probed and enabled only on Linux where it works 3. Was tested for approx. two weeks now on Linux by two independent QA teams, have not found any bugs so far Documentation to follow (This used to be commit 4bf022ce9e45be85609426762ba2644ac2031326)
2003-05-01Fix disk quotas support on HP/UX (patch by David Nixon)Jelmer Vernooij1-1/+1
(This used to be commit a2c315dea6910e3f83ba2e9bad4312cf35f608da)
2003-03-11Fix up zero termination. Spotted by Sebastian Krahmer <krahmer@suse.de>.Jeremy Allison1-1/+2
Jeremy. (This used to be commit 289e2e25b91da20ac02b90e5a9d6de3619ad308d)
2003-01-28performance patch from HP-UX folks (cant remember who)Gerald Carter1-3/+14
(This used to be commit d6c22e693efee88c17f1f0f6c861e7101b3fec99)