QUOTACTL(8)

NAME
quotactl - send commands to the kernel disk quota subsystem

SYNOPSIS
quotactl [- DragonFly] file-system [plist]

DESCRIPTION
quotactl reads a property list of commands from the specified file or stdin, and sends it to the kernel for the specified file system through the quotactl(2) system call.

Available options:

-D  Debug: print plist sent to and received from kernel to stderr.

-x  Do not parse reply from kernel for errors and print it to stdout.

If -x is not specified, quotactl parses the reply from the kernel, looking at each command return value and reporting errors.

EXIT STATUS
quotactl exists with 0 on success. If there was problems parsing the command plist, or the reply from the kernel, or if the quotactl(2) system call returned an error, the exit status will be 1. Unless -x is present, a message is printed to stderr for each failed command, and the exit status will be 2 if any comand failed.

EXAMPLES
This will set the quota limits for user id 100 on the file system /home:

    quotactl /home << EOF
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
            <key>commands</key>
            <array>
                    <dict>
                            <key>command</key>
                            <string>set</string>
                            <key>data</key>
                            <array>
                                    <dict>
                                            <key>block</key>
                                            <dict>
                                                    <key>expire time</key>
                                                    <integer>0</integer>
                                                    <key>grace time</key>
                                                    <integer>2419200</integer>
                                                    <key>hard</key>
                                                    <integer>0x2000</integer>
                                                    <key>soft</key>
                                                    <integer>0x1000</integer>
                                                    <key>usage</key>
                                                    <integer>0x0</integer>
                                            </dict>
                                            <key>file</key>
                                            <dict>
                                                    <key>expire time</key>
                                                    <integer>0</integer>
                                                    <key>grace time</key>
                                                    <integer>172800</integer>
                                                    <key>hard</key>
                                                    <integer>0x800</integer>
                                                    <key>soft</key>
                                                    <integer>0x400</integer>
                                                    <key>usage</key>
                                                    <integer>0x0</integer>
                                            </dict>
                                            <key>id</key>
                                            <integer>100</integer>
                                    </dict>
                            </array>
                            <key>type</key>
                            <string>user</string>
                    </dict>
            </array>
            <key>interface version</key>
            <integer>0x1</integer>
    </dict>
    </plist>
    EOF

SEE ALSO
quota(1), quotactl(2), proplib(3), edquota(8), repquota(8)

HISTORY
The quotactl command appeared in NetBSD 6.0.