OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [fs/] [noquot.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1627 jcastillo
/*
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)
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)
38
{
39
}
40
 
41
/*
42
 * Initialize pointer in a inode to the right dquots.
43
 */
44
void dquot_initialize(struct inode *inode, short type)
45
{
46
}
47
 
48
void dquot_drop(struct inode *inode)
49
{
50
}
51
 
52
void dquot_init(void)
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)
61
{
62
        return(0);
63
}
64
 
65
int quota_on(kdev_t dev, short type, char *path)
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)
77
{
78
        return(-ENOPKG);
79
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.