1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

88 Commits

Author SHA1 Message Date
Stefan Metzmacher
8096b1a9a4 s3:smbd/quotas: add #include "system/filesys.h" (bug #8224)
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-06-14 09:38:49 +02:00
Günther Deschner
8c24ebf371 s3: include smbd/smbd.h where needed.
Guenther
2011-03-30 01:13:08 +02:00
Michael Adam
be598569bb s3:smbd: add nfs quota support to the linux-non-sysquota code
This is based on the implementation for solaris and FreeBSD.
It makes rpc calls out to the nfs server to retrieve quota
information.
2010-08-25 14:05:51 +02:00
Volker Lendecke
24a398b5b4 s3: Fix a very embarrassing build failure 2009-12-12 16:57:49 +01:00
Volker Lendecke
359e71d956 s3: "disk_quotas" only looks at the devicenumber 2009-11-29 11:22:03 +01:00
Volker Lendecke
44ce5603dd s3: Pass the "fake dir create times" parameter to sys_*stat
Step 0 to restore it as a per-share paramter
2009-11-29 11:22:01 +01:00
Michael Adam
57d3ada2c9 s3:fix build of old linux quota system and other unixes' quota implementation
By fixing the use of struct stat_ex.

Michael
2009-06-29 16:51:53 +02:00
Stefan Metzmacher
256101b022 s3:smbd: remove stupid static variables for the nfs quota code
metze
2009-01-08 12:22:20 +01:00
Jelmer Vernooij
4746f79d50 Use {u,}int64_t instead of SMB_BIG_{U,}INT. 2008-10-14 01:59:36 +02:00
Timur
a59618e88b Fix cut and paste error in quota code. 2008-09-15 18:21:02 -07:00
Jeremy Allison
052efa9a33 Remove last pstring from smbd/*.c
Jeremy.
(This used to be commit f1680bada913af4eaf5c0d686983018d6c8b3e5f)
2007-11-13 12:51:31 -08:00
Jeremy Allison
30191d1a57 RIP BOOL. Convert BOOL -> bool. I found a few interesting
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-18 17:40:25 -07:00
Volker Lendecke
fb7ee0804c r25311: Patch from Heinrich Mislik <Heinrich.Mislik@univie.ac.at> to fix AIX
quotas.

Heinrich, I trust you on that, I don't even have compiled this :-)

Volker
(This used to be commit a8312a1d7b7e3ad00265279dd0640261beaa287d)
2007-10-10 12:30:58 -05:00
Andrew Tridgell
ef591178d0 r23786: Use linux/dqblk_xfs.h rather than a private copy of this header in the
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-10 12:28:24 -05:00
Andrew Tridgell
5e54558c6d r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10 12:28:20 -05:00
Gerald Carter
1790c67780 r22149: BUG 4500: patch from Jorge Santos <jorge_a_santos@hotmail.com>
to fix compile bug ni quotas.c (typo calling unbecome_root()).
(This used to be commit 22d550d62b5834e2c5155550756d3462a1bd6561)
2007-10-10 12:19:16 -05:00
Jeremy Allison
bc45c82904 r22096: become_root_uid_only() is unneeded - it's only used in
messages.c. Refactor to use become_root() instead and
make it local to messages.c
Jeremy.
(This used to be commit f3ffb3f98472b69b476b702dfe5c0575b32da018)
2007-10-10 12:19:11 -05:00
Jeremy Allison
9b807d4f87 r22060: Fix for AIX quotas from Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
Jeremy.
(This used to be commit 8d95cdf8c0a46abc6b5cbcec3fd8bf246d49ee4b)
2007-10-10 12:19:07 -05:00
Jeremy Allison
0c72a09e7d r19260: Fix for bug #3524 from tiamat@komi.mts.ru - Solaris quotas.
Jeremy.
(This used to be commit ac510a90f3adf72b64a8e2a764b0500dcd223b3f)
2007-10-10 12:15:26 -05:00
Jeremy Allison
981350a03c r17296: Replace the understandable parts of the quota
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-10 11:38:24 -05:00
Volker Lendecke
bd08ae25dc r12477: Remove a gcc -O6 warning
(This used to be commit dd39a37f8e6ab7dad46b180959636f5e402c136d)
2007-10-10 11:05:57 -05:00
Lars Müller
f6a46f3329 r12076: Ensure setmntent() returns with != NULL in the disk_quotas() Linux
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-10 11:05:43 -05:00
Gerald Carter
9e1cf0d51c r10901: BUG 3145: Fix build issue regarding quota support on Solaris
(This used to be commit b7de9a6c6963e7d3bb1a05ed15600dd50a8f4a08)
2007-10-10 11:04:55 -05:00
Gerald Carter
dba540214a r6712: BUG 2362: fix quota support on DragonFly (Joerg Sonnenberger <joerg@leaf.dragonflybsd.org>)
(This used to be commit 0644a2abf646be35b345665558ca173004beedde)
2007-10-10 10:56:52 -05:00
Gerald Carter
cf99ec8296 r5958: BUG 1843: patch from james peach to fix quotas (with no soft limits) on IRIX
(This used to be commit aeb3cea54ea2e050aef38e38fd8519510a14a184)
2007-10-10 10:56:12 -05:00
Gerald Carter
6c6e231f15 r5157: BUG 2266: conditionally include rpc/nettype.h to work around missing header onf FreeBSD4
(This used to be commit 314da604735696da4cf350f35d84592356e31861)
2007-10-10 10:55:30 -05:00
Jeremy Allison
ad94eabdc6 r4301: One more *alloc -> SMB_MALLOC (not compiled by default).
Jeremy.
(This used to be commit 235a0c1698db48583a6860a3a9fca9f261544365)
2007-10-10 10:53:43 -05:00
Richard Sharpe
7b4151e173 r1333: NFS Quota support from Dan Peterson.
(This used to be commit 609828444d9126d8a6e8ff43e4b3c19079a9eb56)
2007-10-10 10:52:07 -05:00
Gerald Carter
9073c95b97 BUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at (Heinrich Mislik)
(This used to be commit 760b63496ccc908c76ea5d3ed474cbbca268ad61)
2004-03-16 19:06:03 +00:00
Stefan Metzmacher
9343c89cb4 * Fix XFS quotas: XFS_USER_QUOTA -> USRQUOTA
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-15 08:49:30 +00:00
Jeremy Allison
31876a8478 Patch from Stefan (metze) Metzmacher <metze at metzemix.de> to revert to 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)
2004-01-05 19:36:02 +00:00
Jeremy Allison
2d41ca7198 Group quotas patch from "Heinreichsberger, Helmut" <Helmut.Heinreichsberger@wincor-nixdorf.com>
Jeremy.
(This used to be commit 06c9e9163010a1035f448f76c4084228dc95334f)
2003-11-19 02:19:34 +00:00
Alexander Bokovoy
2c01eef4d7 Evolve quotas configure check more. Patch from Stefan (metze) Metzemacher. 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-14 14:38:11 +00:00
Alexander Bokovoy
e8573c8fa9 Add NT quota support. Patch from Stefan (metze) Metzemacher
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-12 01:20:17 +00:00
Jelmer Vernooij
bac83636a5 Fix disk quotas support on HP/UX (patch by David Nixon)
(This used to be commit a2c315dea6910e3f83ba2e9bad4312cf35f608da)
2003-05-01 11:02:54 +00:00
Jeremy Allison
71708c9c07 Fix up zero termination. Spotted by Sebastian Krahmer <krahmer@suse.de>.
Jeremy.
(This used to be commit 289e2e25b91da20ac02b90e5a9d6de3619ad308d)
2003-03-11 18:10:27 +00:00
Gerald Carter
db56e6f8f0 performance patch from HP-UX folks (cant remember who)
(This used to be commit d6c22e693efee88c17f1f0f6c861e7101b3fec99)
2003-01-28 02:15:11 +00:00
Jelmer Vernooij
7cfe3919f3 small patch to makesure we fallback to <xfs/xqm.h> if <linux/xqm.h> doesn't exist (e.g. in SuSE 8.1) (by Metze)
(This used to be commit da8794afe8ca8f454937f06d1c43cc5d844b6037)
2002-11-13 21:54:31 +00:00
Tim Potter
cd68afe312 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
(This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-30 06:08:46 +00:00
Jeremy Allison
a9750b2006 XFS quota patch for Linux.
Jeremy.
(This used to be commit ce099faf6ce07e14bd9610960bd09f56c5bee864)
2001-11-30 21:50:02 +00:00
Jeremy Allison
f8e2baf39e Added NT_USER_TOKEN into server_info to fix extra groups problem.
Got "medieval on our ass" about const warnings (as many as I could :-).
Jeremy.
(This used to be commit ee5e7ca547eff016818ba5c43b8ea0c9fa69b808)
2001-11-03 23:34:24 +00:00
Tim Potter
dc1fc3ee8e Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-10-02 04:29:50 +00:00
Jeremy Allison
d76dfbb879 Attempt to make quotas work with RH7.1, and with other Linuxen... This is
*HARD*, dammit !
Jeremy.
(This used to be commit 59a4684201fb72989698db5ac8169bd8880bd9a7)
2001-09-21 22:06:03 +00:00
Simo Sorce
61b2794968 move to SAFE_FREE()
(This used to be commit a95943fde0ad89ae3f2deca2f7ba9cb5ab612b74)
2001-09-17 11:25:41 +00:00
Andrew Tridgell
527e824293 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
(This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
2001-07-04 07:36:09 +00:00
Jeremy Allison
c11887e325 More debug %d -> %u issues.
Jeremy.
(This used to be commit 6fcb600dcd23c61d1a7d2ce8c2b7b2eea2e58623)
2001-04-27 22:17:10 +00:00
Jeremy Allison
8f88c7cf4e Fixes for problems in NFS server code from Michael Gerdts <Michael.Gerdts@usa.alcatel.com>.
Jeremy.
(This used to be commit 2fd5e0bf141807d31f6f1a817d271548d0ccfadc)
2001-04-27 19:56:15 +00:00
Jeremy Allison
5d60916596 Fix from "Romeril, Alan" <a.romeril@ic.ac.uk> to get his NFS quota code
to work on Solaris 2.6.
Jeremy.
(This used to be commit bd2fe239db24b8b3fa6a906542af2e238f435331)
2001-04-05 20:46:15 +00:00
Jeremy Allison
f439f72cee Integrated solaris nfs quota code from Alan Romeril <a.romeril@ic.ac.uk>
Jeremy
(This used to be commit 181d41572ceb17dc765d3c0f1a05934e35f56a61)
2001-04-01 19:00:43 +00:00