Function report |
Source Code:fs\block_dev.c |
Create Date:2022-07-28 20:14:46 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ze_bdev -- lock a filesystem and force it into a consistent state*@bdev: blockdevice to lock* If a superblock is found on this device, we take the s_umount semaphore* on it to make sure nobody unmounts until the snapshot creation is done
Proto:struct super_block *freeze_bdev(struct block_device *bdev)
Type:struct super_block
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct block_device * | bdev |
| 536 | error = 0 |
| 538 | mutex_lock( & Mutex for freeze ) |
| 539 | If ++ The counter of freeze processes > 1 Then |
| 546 | If sb Then drop_super(sb) |
| 549 | Return sb |
| 555 | If freeze_super Then error = freeze_super(sb) |
| 559 | If error Then |
| 566 | out : |
| 569 | Return sb |
| 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 |