#include <sys/buf.h>
#include <sys/vnode.h>
#include <sys/malloc.h>
+#include <sys/quota.h>
#include <miscfs/specfs/specdev.h>
switch (cmd) {
case Q_SYNC:
+ case Q_QUOTASTAT:
break;
case Q_GETQUOTA:
if (uid == p->p_cred->p_ruid)
switch (cmd) {
case Q_QUOTAON:
- error = quotaon(p, mp, type, arg);
+ error = quotaon(p, mp, type, arg, UIO_USERSPACE);
break;
case Q_QUOTAOFF:
error = qsync(mp);
break;
+ case Q_QUOTASTAT:
+ error = quotastat(mp, type, arg);
+ break;
+
default:
error = EINVAL;
break;