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_setinfo

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

Type:int

Parameter:

TypeParameterName
struct super_block *sb
inttype
void __user *addr
148  If copy_from_user( & info, addr, size of info ) Then Return -EFAULT
150  If Not set_info Then Return -ENOSYS
152  If dqi_valid & ~( IIF_FLAGS | Structure used for setting quota information about file via quotactl* Following flags are used to specify which fields are valid | IIF_IGRACE) Then Return -EINVAL
154  memset( & qinfo, 0, size of qinfo )
155  If dqi_valid & IIF_FLAGS Then
156  If DFQ_* & ~Mask for flags modifiable from userspace Then Return -EINVAL
158  If DFQ_* & Root squash enabled (for v1 quota format) Then Flags QCI_* |= Root squash turned on
160  mask of fields to change in ->set_info() |= QC_FLAGS
162  If dqi_valid & Structure used for setting quota information about file via quotactl* Following flags are used to specify which fields are valid Then
163  Time after which space softlimit is* enforced = dqi_bgrace
164  mask of fields to change in ->set_info() |= QC_SPC_TIMER
166  If dqi_valid & IIF_IGRACE Then
167  Ditto for inode softlimit = dqi_igrace
168  mask of fields to change in ->set_info() |= QC_INO_TIMER
170  Return set_info(sb, type, & qinfo)
Caller
NameDescribe
do_quotactlCopy parameters and call proper function