summaryrefslogtreecommitdiffstats
path: root/source3/smbd/quotas.c
Commit message (Collapse)AuthorAgeFilesLines
* quota: move function again to its belonging ifdef blockBjörn Jacke2012-09-111-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
* s3-smbd: Remove OSF1 support from old (pre-sysquotas) codeBjörn Jacke2012-09-071-65/+0
| | | | "recent" Tru64 releases had QUOTACTL_4B support
* s3:quota: don't force the block size to 512Björn Jacke2012-09-061-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
* s3-smbd: Remove remaining references to removed OS support in old-style ↵Andrew Bartlett2012-09-061-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
* s3-smbd: Remove IRIX support from old (pre-sysquotas) codeAndrew Bartlett2012-09-061-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>
* s3-smbd: Remove HPUX support from old (pre-sysquotas) codeAndrew Bartlett2012-09-061-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>
* s3-smbd: Remove BSD support from old (pre-sysquotas) codeAndrew Bartlett2012-09-061-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>
* s3-smbd: Remove Linux support from old (pre-sysquotas) codeAndrew Bartlett2012-09-061-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>
* build: Remove Unicos support (quota in particular)Andrew Bartlett2012-09-061-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>
* s3: remove some duplicate quota codeBjörn Jacke2012-09-021-27/+12
|
* build: Remove sys_fopen wrapperAndrew Bartlett2012-04-051-1/+1
|
* build: Remove sys_open wrapperAndrew Bartlett2012-04-051-2/+2
|
* s3:smbd/quotas: add #include "system/filesys.h" (bug #8224)Stefan Metzmacher2011-06-141-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
* s3: include smbd/smbd.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3:smbd: add nfs quota support to the linux-non-sysquota codeMichael Adam2010-08-251-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.
* s3: Fix a very embarrassing build failureVolker Lendecke2009-12-121-2/+2
|
* s3: "disk_quotas" only looks at the devicenumberVolker Lendecke2009-11-291-17/+13
|
* s3: Pass the "fake dir create times" parameter to sys_*statVolker Lendecke2009-11-291-13/+19
| | | | Step 0 to restore it as a per-share paramter
* s3:fix build of old linux quota system and other unixes' quota implementationMichael Adam2009-06-291-14/+14
| | | | | | By fixing the use of struct stat_ex. Michael
* s3:smbd: remove stupid static variables for the nfs quota codeStefan Metzmacher2009-01-081-16/+20
| | | | metze
* Use {u,}int64_t instead of SMB_BIG_{U,}INT.Jelmer Vernooij2008-10-141-53/+53
|
* Fix cut and paste error in quota code.Timur2008-09-151-2/+2
|
* Remove last pstring from smbd/*.cJeremy Allison2007-11-131-180/+185
| | | | | Jeremy. (This used to be commit f1680bada913af4eaf5c0d686983018d6c8b3e5f)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-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)
* r25311: Patch from Heinrich Mislik <Heinrich.Mislik@univie.ac.at> to fix AIXVolker Lendecke2007-10-101-0/+3
| | | | | | | | | quotas. Heinrich, I trust you on that, I don't even have compiled this :-) Volker (This used to be commit a8312a1d7b7e3ad00265279dd0640261beaa287d)
* r23786: Use linux/dqblk_xfs.h rather than a private copy of this header in theAndrew Tridgell2007-10-101-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)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r22149: BUG 4500: patch from Jorge Santos <jorge_a_santos@hotmail.com>Gerald Carter2007-10-101-1/+1
| | | | | to fix compile bug ni quotas.c (typo calling unbecome_root()). (This used to be commit 22d550d62b5834e2c5155550756d3462a1bd6561)
* r22096: become_root_uid_only() is unneeded - it's only used inJeremy Allison2007-10-101-15/+15
| | | | | | | messages.c. Refactor to use become_root() instead and make it local to messages.c Jeremy. (This used to be commit f3ffb3f98472b69b476b702dfe5c0575b32da018)
* r22060: Fix for AIX quotas from Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.Jeremy Allison2007-10-101-0/+30
| | | | | Jeremy. (This used to be commit 8d95cdf8c0a46abc6b5cbcec3fd8bf246d49ee4b)
* r19260: Fix for bug #3524 from tiamat@komi.mts.ru - Solaris quotas.Jeremy Allison2007-10-101-7/+9
| | | | | Jeremy. (This used to be commit ac510a90f3adf72b64a8e2a764b0500dcd223b3f)
* r17296: Replace the understandable parts of the quotaJeremy Allison2007-10-101-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)
* r12477: Remove a gcc -O6 warningVolker Lendecke2007-10-101-0/+2
| | | | (This used to be commit dd39a37f8e6ab7dad46b180959636f5e402c136d)
* r12076: Ensure setmntent() returns with != NULL in the disk_quotas() LinuxLars Müller2007-10-101-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)
* r10901: BUG 3145: Fix build issue regarding quota support on SolarisGerald Carter2007-10-101-3/+3
| | | | (This used to be commit b7de9a6c6963e7d3bb1a05ed15600dd50a8f4a08)
* r6712: BUG 2362: fix quota support on DragonFly (Joerg Sonnenberger ↵Gerald Carter2007-10-101-14/+14
| | | | | | <joerg@leaf.dragonflybsd.org>) (This used to be commit 0644a2abf646be35b345665558ca173004beedde)
* r5958: BUG 1843: patch from james peach to fix quotas (with no soft limits) ↵Gerald Carter2007-10-101-5/+10
| | | | | | on IRIX (This used to be commit aeb3cea54ea2e050aef38e38fd8519510a14a184)
* r5157: BUG 2266: conditionally include rpc/nettype.h to work around missing ↵Gerald Carter2007-10-101-0/+2
| | | | | | header onf FreeBSD4 (This used to be commit 314da604735696da4cf350f35d84592356e31861)
* r4301: One more *alloc -> SMB_MALLOC (not compiled by default).Jeremy Allison2007-10-101-2/+2
| | | | | Jeremy. (This used to be commit 235a0c1698db48583a6860a3a9fca9f261544365)
* r1333: NFS Quota support from Dan Peterson.Richard Sharpe2007-10-101-1/+203
| | | | (This used to be commit 609828444d9126d8a6e8ff43e4b3c19079a9eb56)
* BUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at ↵Gerald Carter2004-03-161-0/+4
| | | | | | (Heinrich Mislik) (This used to be commit 760b63496ccc908c76ea5d3ed474cbbca268ad61)
* * Fix XFS quotas: XFS_USER_QUOTA -> USRQUOTAStefan Metzmacher2004-01-151-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)
* Patch from Stefan (metze) Metzmacher <metze at metzemix.de> to revert to ↵Jeremy Allison2004-01-051-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)
* Group quotas patch from "Heinreichsberger, Helmut" ↵Jeremy Allison2003-11-191-19/+32
| | | | | | | <Helmut.Heinreichsberger@wincor-nixdorf.com> Jeremy. (This used to be commit 06c9e9163010a1035f448f76c4084228dc95334f)
* Evolve quotas configure check more. Patch from Stefan (metze) Metzemacher. ↵Alexander Bokovoy2003-05-141-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)
* Add NT quota support. Patch from Stefan (metze) MetzemacherAlexander Bokovoy2003-05-121-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)
* Fix disk quotas support on HP/UX (patch by David Nixon)Jelmer Vernooij2003-05-011-1/+1
| | | | (This used to be commit a2c315dea6910e3f83ba2e9bad4312cf35f608da)
* Fix up zero termination. Spotted by Sebastian Krahmer <krahmer@suse.de>.Jeremy Allison2003-03-111-1/+2
| | | | | Jeremy. (This used to be commit 289e2e25b91da20ac02b90e5a9d6de3619ad308d)
* performance patch from HP-UX folks (cant remember who)Gerald Carter2003-01-281-3/+14
| | | | (This used to be commit d6c22e693efee88c17f1f0f6c861e7101b3fec99)