root/fs/noquot.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. sync_dquots
  2. invalidate_dquots
  3. dquot_initialize
  4. dquot_drop
  5. dquot_init
  6. quota_off
  7. quota_on
  8. sys_quotactl

   1 /*
   2  *      A Non implementation of disk quotas. Chainsawed from dquot.c by
   3  *      Alan Cox <alan@lxorguk.ukuu.org.uk>. This saves us memory without
   4  *      having zillions of #ifdefs (Or if it had been done right one
   5  *      
   6  *      QUOTA_OP(inode,func)
   7  *
   8  *      macro.)
   9  */
  10 
  11 #include <linux/errno.h>
  12 #include <linux/kernel.h>
  13 #include <linux/sched.h>
  14 #include <linux/types.h>
  15 #include <linux/string.h>
  16 #include <linux/fcntl.h>
  17 #include <linux/stat.h>
  18 #include <linux/tty.h>
  19 #include <linux/malloc.h>
  20 #include <linux/mount.h>
  21 
  22 #include <asm/segment.h>
  23 
  24 #ifndef min
  25 #define min(a,b) ((a) < (b)) ? (a) : (b)
  26 #endif
  27 
  28 int sync_dquots(kdev_t dev, short type)
     /* [previous][next][first][last][top][bottom][index][help] */
  29 {
  30         return(0);
  31 }
  32 
  33 /*
  34  * Trash the cache for a certain type on a device.
  35  */
  36 
  37 void invalidate_dquots(kdev_t dev, short type)
     /* [previous][next][first][last][top][bottom][index][help] */
  38 {
  39 }
  40 
  41 /*
  42  * Initialize pointer in a inode to the right dquots.
  43  */
  44 void dquot_initialize(struct inode *inode, short type)
     /* [previous][next][first][last][top][bottom][index][help] */
  45 {
  46 }
  47 
  48 void dquot_drop(struct inode *inode)
     /* [previous][next][first][last][top][bottom][index][help] */
  49 {
  50 }
  51 
  52 void dquot_init(void)
     /* [previous][next][first][last][top][bottom][index][help] */
  53 {
  54 }
  55 
  56 /*
  57  * Turn quota off on a device. type == -1 ==> quotaoff for all types (umount)
  58  */
  59 
  60 int quota_off(kdev_t dev, short type)
     /* [previous][next][first][last][top][bottom][index][help] */
  61 {
  62         return(0);
  63 }
  64 
  65 int quota_on(kdev_t dev, short type, char *path)
     /* [previous][next][first][last][top][bottom][index][help] */
  66 {
  67         return(-ENOPKG);
  68 }
  69 
  70 /*
  71  * Ok this is the systemcall interface, this communicates with
  72  * the userlevel programs. Currently this only supports diskquota
  73  * calls. Maybe we need to add the process quotas etc in the future.
  74  * But we probably better use rlimits for that.
  75  */
  76 asmlinkage int sys_quotactl(int cmd, const char *special, int id, caddr_t addr)
     /* [previous][next][first][last][top][bottom][index][help] */
  77 {
  78         return(-ENOPKG);
  79 }

/* [previous][next][first][last][top][bottom][index][help] */