Function report | 
Source Code:fs\quota\quota_tree.c | 
Create Date:2022-07-28 20:33:25 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Find entry in block
Proto:static loff_t find_block_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint blk)
Type:loff_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct qtree_mem_dqinfo * | info | |
| struct dquot * | dquot | |
| uint | blk | 
| 537 | ret = 0 | 
| 544 | If ret < 0 Then | 
| 545 | quota_error( superblock this applies to , "Can't read quota tree block %u", blk) | 
| 547 | Go to out_buf | 
| 549 | ddquot = buf + sizeof(structqt_disk_dqdbheader) | 
| 550 | When i < Number of entries in one blocks cycle | 
| 555 | If i == Number of entries in one blocks Then | 
| 556 | quota_error( superblock this applies to , "Quota for id %u referenced but not present", from_kqid( & userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ?, ID this applies to (uid, gid, projid) )) | 
| 560 | Go to out_buf | 
| 561 | Else | 
| 562 | ret = (blk << Block size of quota file ) + sizeof(structqt_disk_dqdbheader) + i * Size of quota entry in quota file | 
| 565 | out_buf : | 
| 567 | Return ret | 
| Name | Describe | 
|---|---|
| find_tree_dqentry | Find entry for given id in the tree | 
| 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  |