| Kernel v2.1.101 /fs/noquot.c |
|---|
| Filename: | /fs/noquot.c |
| Lines Added: | 6 |
| Lines Deleted: | 70 |
| Also changed in: |
(Previous)
2.1.6
2.1.2
(Following) |
 2.1.101
 fs
 noquot.c
diff -u --recursive --new-file v2.1.100/linux/fs/noquot.c linux/fs/noquot.c
--- v2.1.100/linux/fs/noquot.c Mon Oct 28 04:21:41 1996
+++ linux/fs/noquot.c Fri May 8 17:54:39 1998
@@ -1,79 +1,15 @@
-/*
- * A Non implementation of disk quotas. Chainsawed from dquot.c by
- * Alan Cox <alan@lxorguk.ukuu.org.uk>. This saves us memory without
- * having zillions of #ifdefs (Or if it had been done right one
- *
- * QUOTA_OP(inode,func)
- *
- * macro.)
+/* noquot.c: Quota stubs necessary for when quotas are not
+ * compiled into the kernel.
*/
-#include <linux/errno.h>
#include <linux/kernel.h>
-#include <linux/sched.h>
#include <linux/types.h>
-#include <linux/string.h>
-#include <linux/fcntl.h>
-#include <linux/stat.h>
-#include <linux/tty.h>
-#include <linux/malloc.h>
-#include <linux/mount.h>
-
-#include <asm/uaccess.h>
-
-#ifndef min
-#define min(a,b) ((a) < (b)) ? (a) : (b)
-#endif
-
-int sync_dquots(kdev_t dev, short type)
-{
- return(0);
-}
-
-/*
- * Trash the cache for a certain type on a device.
- */
-
-void invalidate_dquots(kdev_t dev, short type)
-{
-}
-
-/*
- * Initialize pointer in an inode to the right dquots.
- */
-void dquot_initialize(struct inode *inode, short type)
-{
-}
-
-void dquot_drop(struct inode *inode)
-{
-}
-
-void dquot_init(void)
-{
-}
-
-/*
- * Turn quota off on a device. type == -1 ==> quotaoff for all types (umount)
- */
+#include <linux/errno.h>
-int quota_off(kdev_t dev, short type)
-{
- return(0);
-}
+int nr_dquots = 0, nr_free_dquots = 0;
+int max_dquots = 0;
-int quota_on(kdev_t dev, short type, char *path)
-{
- return(-ENOPKG);
-}
-
-/*
- * Ok this is the systemcall interface, this communicates with
- * the userlevel programs. Currently this only supports diskquota
- * calls. Maybe we need to add the process quotas etc in the future.
- * But we probably better use rlimits for that.
- */
asmlinkage int sys_quotactl(int cmd, const char *special, int id, caddr_t addr)
{
- return(-ENOPKG);
+ return(-ENOSYS);
}
|