svn commit: samba r10065 - in branches/tmp/RPCREWRITE/source: . modules

jra at samba.org jra at samba.org
Wed Sep 7 15:42:37 GMT 2005


Author: jra
Date: 2005-09-07 15:42:36 +0000 (Wed, 07 Sep 2005)
New Revision: 10065

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10065

Log:
Merge with HEAD.
Jeremy.

Modified:
   branches/tmp/RPCREWRITE/source/configure.in
   branches/tmp/RPCREWRITE/source/modules/vfs_default_quota.c


Changeset:
Modified: branches/tmp/RPCREWRITE/source/configure.in
===================================================================
--- branches/tmp/RPCREWRITE/source/configure.in	2005-09-07 15:12:54 UTC (rev 10064)
+++ branches/tmp/RPCREWRITE/source/configure.in	2005-09-07 15:42:36 UTC (rev 10065)
@@ -957,7 +957,16 @@
 #include <stdlib.h>
 #include <stddef.h>
 #endif
-#include <time.h>
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+#  include <sys/time.h>
+# else
+#  include <time.h>
+# endif
+#endif
 #if HAVE_AIO_H
 #include <aio.h>
 #endif

Modified: branches/tmp/RPCREWRITE/source/modules/vfs_default_quota.c
===================================================================
--- branches/tmp/RPCREWRITE/source/modules/vfs_default_quota.c	2005-09-07 15:12:54 UTC (rev 10064)
+++ branches/tmp/RPCREWRITE/source/modules/vfs_default_quota.c	2005-09-07 15:42:36 UTC (rev 10065)
@@ -18,6 +18,56 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+/*
+ * This module allows the default quota values,
+ * in the windows explorer GUI, to be stored on a samba server.
+ * The problem is that linux filesystems only store quotas
+ * for users and groups, but no default quotas.
+ *
+ * Samba returns NO_LIMIT as the default quotas by default
+ * and refuses to update them.
+ *
+ * With this module you can store the default quotas that are reported to
+ * a windows client, in the quota record of a user. By default the root user
+ * is taken because quota limits for root are typically not enforced.
+ *
+ * This module takes 2 parametric parameters in smb.conf:
+ * (the default prefix for them is 'default_quota',
+ *  it can be overwrittem when you load the module in
+ *  the 'vfs modules' parameter like this:
+ *  vfs modules = default_quota:myprefix)
+ * 
+ * "<prefix>:uid" parameter takes a integer argument,
+ *     it specifies the uid of the quota record, that will be taken for
+ *     storing the default USER-quotas.
+ *
+ *     - default value: '0' (for root user)
+ *     - e.g.: default_quota:uid = 65534
+ *
+ * "<prefix>:uid nolimit" parameter takes a boolean argument,
+ *     it specifies if we should report the stored default quota values,
+ *     also for the user record, or if you should just report NO_LIMIT
+ *     to the windows client for the user specified by the "<prefix>:uid" parameter.
+ *     
+ *     - default value: yes (that means to report NO_LIMIT)
+ *     - e.g.: default_quota:uid nolimit = no
+ * 
+ * "<prefix>:gid" parameter takes a integer argument,
+ *     it's just like "<prefix>:uid" but for group quotas.
+ *     (NOTE: group quotas are not supported from the windows explorer!)
+ *
+ *     - default value: '0' (for root group)
+ *     - e.g.: default_quota:gid = 65534
+ *
+ * "<prefix>:gid nolimit" parameter takes a boolean argument,
+ *     it's just like "<prefix>:uid nolimit" but for group quotas.
+ *     (NOTE: group quotas are not supported from the windows explorer!)
+ *     
+ *     - default value: yes (that means to report NO_LIMIT)
+ *     - e.g.: default_quota:uid nolimit = no
+ *
+ */
+
 #include "includes.h"
 
 #undef DBGC_CLASS



More information about the samba-cvs mailing list