"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "drbd/drbd-kernel-compat/cocci/bdev_nr_sectors__no_present.cocci" between
drbd-9.1.8.tar.gz and drbd-9.1.9.tar.gz

About: DRBD (9.x) is a block device which is designed to build high availability clusters. This is done by mirroring a whole block device via (a dedicated) network. You could see it as a "network RAID-1". The driver code got integrated into the vanilla Linux kernel.

bdev_nr_sectors__no_present.cocci  (drbd-9.1.8):bdev_nr_sectors__no_present.cocci  (drbd-9.1.9)
@@ @@
struct block_device *bd; struct block_device *bd;
@@ @@
- bdev_nr_sectors(bd) - bdev_nr_sectors(bd)
+ get_capacity(bd->bd_disk) + i_size_read(bd->bd_inode) >> 9
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)