Function report |
Source Code:fs\quota\quota_v1.c |
Create Date:2022-07-28 20:33:04 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:v1_check_quota_file
Proto:static int v1_check_quota_file(struct super_block *sb, int type)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct super_block * | sb | |
int | type |
129 | inode = inodes of quotafiles [type] |
138 | If Not isize Then Return 0 |
140 | blocks = isize >> BLOCK_SIZE_BITS |
141 | off = isize & BLOCK_SIZE - 1 |
142 | If ( blocks % sizeof(structv1_disk_dqblk) * BLOCK_SIZE + off) % sizeof(structv1_disk_dqblk) Then Return 0 |
147 | size = quota_read(sb, type, (char * ) & dqhead, sizeof(structv2_disk_dqheader), 0) |
149 | If size != sizeof(structv2_disk_dqheader) Then Return 1 |
151 | If le32_to_cpu(Magic number identifying file ) != quota_magics[type] Then Return 1 |
156 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |