Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\quota.c Create Date:2022-07-28 20:33:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:quota_getinfo

Proto:static int quota_getinfo(struct super_block *sb, int type, void __user *addr)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
inttype
void __user *addr
122  If Not get_state Then Return -ENOSYS
124  ret = get_state(sb, & state)
125  If ret Then Return ret
127  tstate = Per quota type information + type
128  If Not (Flags QCI_* & Quota accounting enabled ) Then Return -ESRCH
130  memset( & uinfo, 0, size of uinfo )
131  dqi_bgrace = Time after which space softlimit is* enforced
132  dqi_igrace = Ditto for inode softlimit
133  If Flags QCI_* & Quota file is hidden from userspace Then DFQ_* |= Quota stored in a system file
135  If Flags QCI_* & Root squash turned on Then DFQ_* |= Root squash enabled (for v1 quota format)
137  dqi_valid = IIF_ALL
138  If copy_to_user(addr, & uinfo, size of uinfo ) Then Return -EFAULT
140  Return 0
Caller
NameDescribe
do_quotactlCopy parameters and call proper function