Function report |
Source Code:fs\quota\quota_v2.c |
Create Date:2022-07-28 20:33:14 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Read information header from quota file
Proto:static int v2_read_file_info(struct super_block *sb, int type)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct super_block * | sb | |
| int | type |
| 103 | lock for reading |
| 104 | ret = v2_read_header(sb, type, & dqhead) |
| 107 | version = le32_to_cpu(File version ) |
| 114 | size = quota_read(sb, type, (char * ) & dinfo, sizeof(structv2_disk_dqinfo), Offset of info header in file ) |
| 116 | If size != sizeof(structv2_disk_dqinfo) Then |
| 117 | quota_error(sb, "Can't read info structure") |
| 122 | Go to out |
| 124 | dqi_priv = Allocation memory |
| 125 | If Not dqi_priv Then |
| 130 | If version == 0 Then |
| 132 | Maximum space limit [static] = 0xffffffffLL << QUOTABLOCK_BITS |
| 133 | Maximum inode limit [static] = 0xffffffff |
| 134 | Else |
| 140 | Maximum space limit [static] = 0x7fffffffffffffffLL |
| 141 | Maximum inode limit [static] = 0x7fffffffffffffffLL |
| 146 | DFQ_ flags [dq_data_lock] = 0 |
| 147 | Sb quota is on = sb |
| 148 | Quota type = type |
| 155 | If version == 0 Then |
| 156 | Size of quota entry in quota file = sizeof(structv2r0_disk_dqblk) |
| 158 | Else |
| 159 | Size of quota entry in quota file = sizeof(structv2r1_disk_dqblk) |
| 162 | ret = 0 |
| 163 | out : |
| 165 | Return ret |
| 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 |