diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-08-15 16:20:46 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-08-15 16:20:46 +0000 |
commit | ced2b072a977a1f4d74ad8723ec9538d865fbf9f (patch) | |
tree | 28ed13f1afe0598c8ee7e274302ad5962cedb0e3 | |
parent | c574bf0ced36bf94646a3d324c0d74c8820bc6fe (diff) | |
download | samba-ced2b072a977a1f4d74ad8723ec9538d865fbf9f.tar.gz samba-ced2b072a977a1f4d74ad8723ec9538d865fbf9f.tar.xz samba-ced2b072a977a1f4d74ad8723ec9538d865fbf9f.zip |
Document get quota command
(This used to be commit 19f8f26f0bb1b2de18c35c203d0912bcde07bfe2)
-rw-r--r-- | docs/docbook/smbdotconf/vfs/getquotacommand.xml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/docs/docbook/smbdotconf/vfs/getquotacommand.xml b/docs/docbook/smbdotconf/vfs/getquotacommand.xml new file mode 100644 index 00000000000..162baf5d839 --- /dev/null +++ b/docs/docbook/smbdotconf/vfs/getquotacommand.xml @@ -0,0 +1,52 @@ +<samba:parameter name="get quota command" + context="G" + advanced="1" developer="1" + xmlns:samba="http://samba.org/common"> +<listitem> + <para>The <command>set quota command</command> should only be used + whenever there is no operating system API available from the OS that + samba can use.</para> + + <para>This parameter should specify the path to a script that + queries the quota information for the specified + user/group for the partition that + the specified directory is on.</para> + + <para>Such a script should take 3 arguments:</para> + + <itemizedlist> + <listitem><para>directory</para></listitem> + <listitem><para>type of query</para></listitem> + <listitem><para>uid of user or gid of group</para></listitem> + </itemizedlist> + + <para>The type of query can be one of :</para> + + <itemizedlist> + <listitem><para>1 - user quotas</para></listitem> + <listitem><para>2 - user default quotas (uid = -1)</para></listitem> + <listitem><para>3 - group quotas</para></listitem> + <listitem><para>4 - group default quotas (gid = -1)</para></listitem> + </itemizedlist> + + <para>This script should output according to the following format:</para> + + <itemizedlist> + <listitem><para>Line 1 - quota flags (0 = no quotas, 1 = quotas enabled, 2 = quotas enabled and enforced)</para></listitem> + <listitem><para>Line 2 - number of currently used blocks</para></listitem> + <listitem><para>Line 3 - the softlimit number of blocks</para></listitem> + <listitem><para>Line 4 - the hardlimit number of blocks</para></listitem> + <listitem><para>Line 5 - currently used number of inodes</para></listitem> + <listitem><para>Line 6 - the softlimit number of inodes</para></listitem> + <listitem><para>Line 7 - the hardlimit number of inodes</para></listitem> + <listitem><para>Line 8(optional) - the number of bytes in a block(default is 1024)</para></listitem> + </itemizedlist> + + <para>See also the <link linkend="SETQUOTACOMMAND"><parameter moreinfo="none">set quota command</parameter></link> parameter. + </para> + + <para>Default: <command moreinfo="none">set quota command = </command></para> + + <para>Example: <command moreinfo="none">set quota command = /usr/local/sbin/query_quota</command></para> +</listitem> +</samba:parameter> |