Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:v2_read_header

Proto:static int v2_read_header(struct super_block *sb, int type, struct v2_disk_dqheader *dqhead)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
inttype
struct v2_disk_dqheader *dqhead
64  size = quota_read(sb, type, (char * )dqhead, sizeof(structv2_disk_dqheader), 0)
66  If size != sizeof(structv2_disk_dqheader) Then
67  quota_error(sb, "Failed header read: expected=%zd got=%zd", sizeof(structv2_disk_dqheader), size)
69  If size < 0 Then Return size
71  Return -EIO
73  Return 0
Caller
NameDescribe
v2_check_quota_fileCheck whether given file is really vfsv0 quotafile
v2_read_file_infoRead information header from quota file