summaryrefslogtreecommitdiff
path: root/quotaops.h
diff options
context:
space:
mode:
authorYang Lin <lin.a.yang@intel.com>2012-05-30 19:43:21 +0800
committerYang Lin <lin.a.yang@intel.com>2012-05-30 19:43:21 +0800
commit8c82de96cd23e4823a2d29eb2de2295c0866b0c9 (patch)
tree4c255e87442eb17f710f1674e13303ff56be0c7a /quotaops.h
downloadquota-8c82de96cd23e4823a2d29eb2de2295c0866b0c9.tar.gz
quota-8c82de96cd23e4823a2d29eb2de2295c0866b0c9.tar.bz2
quota-8c82de96cd23e4823a2d29eb2de2295c0866b0c9.zip
Initial commit to Gerrittizen/20120530.11.0_branch1.0
Diffstat (limited to 'quotaops.h')
-rw-r--r--quotaops.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/quotaops.h b/quotaops.h
new file mode 100644
index 0000000..acd8d30
--- /dev/null
+++ b/quotaops.h
@@ -0,0 +1,18 @@
+#ifndef GUARD_QUOTAOPS_H
+#define GUARD_QUOTAOPS_H
+
+#include "quotaio.h"
+
+struct dquot *getprivs(qid_t id, struct quota_handle ** handles, int quiet);
+int putprivs(struct dquot * qlist, int flags);
+int editprivs(char *tmpfile);
+int writeprivs(struct dquot * qlist, int outfd, char *name, int quotatype);
+int readprivs(struct dquot * qlist, int infd);
+int writeindividualtimes(struct dquot * qlist, int outfd, char *name, int quotatype);
+int readindividualtimes(struct dquot * qlist, int infd);
+int writetimes(struct quota_handle ** handles, int outfd);
+int readtimes(struct quota_handle ** handles, int infd);
+void freeprivs(struct dquot * qlist);
+void update_grace_times(struct dquot *q);
+
+#endif /* GUARD_QUOTAOPS_H */