…P macros 1] SNAPSHOT_BLOCK_GROUP is wrong for PAGE_SIZE != 4K 2] use SNAPSHOT_BLOCK_TUPLE for debug prints 3] test if block is a bitmap is wrong for flex_bg 4] remove the assumption in snapshot_get_undo_access tha a bitmap block is the bitmap block of the group it is loacted in.
There are currently problems with the flex_bg feature, because some places in snapshots code assume that the block bitmap is in the block group (which is not true for flex_bg). This fix just avoids potential metadata corruption, but it doesn't avoid possible OOPS. There are other problem to solve, because snapshots created with flex_bg feature do not pass the fsck sanity test.
…snapshots 1] changed the config EXTENT_FL to HOOKS_EXTENT and using it instead of HOOKS_DATA in relation to extent files. 2] undid a change to create extent mapped snapshot files. 3] removed the ext4 options from 'next4 mkfs' script the same result can be achieved by creating a link named /sbin/mkfs.next4 pointing to /sbin/mkfs.next3. 4] added maxblocks argument for new get_move_access() API. it's value is not being checked on return. 5] fix uninitialized vaiable warning in extents.c
obtained from get_move_access. 2] Changed the comments for the functions get_move_access and get_delete_access and removed redundant ones.
1] rename EXT4_STATE_ to EXT4_SNAPSTATE_ 2] rename GETSTATEFLAGS to GETSNAPFLAGS ioctl 3] add SETSNAPFLAGS ioctl 4] various fixes
1. fix free blocks count in snapshot's copy of super block. 2. do not shrink/merge snapshot's copy of super block. 3. enable read access to deleted snapshot's copy of super block. 4. export progress of shrink/merge/clean via i_size:i_disksize ratio.
2) Converted all direct set/test/clear of SNAPFILE flags with ext4_set/test/clear_inode_flag/state macros
1] merged Aditya's branch 2] moved *maxblocks = count to end of test_and_move() and fixed small issues 3] fixed a bug in mb_test_bit_range() (end argument to mb_find_next_zero_bit was incorrect) and implemeted using mb_find_next_bit() 4] tested to find that it works!
snapshot files are in indirect mapped format.
…ow_bitmap. 2] In function ext4_snapshot_get_move_access added a new variable count to support the new API of ext4_snapshot_move
2. Added support for freeing n blocks that should not be moved to snapshot. 3. Changed API's of the following functions : 1] ext4_snapshot_get_delete_access 2] ext4_snapshot_move 3] ext4_snapshot_test_and_move 4] ext4_snapshot_test_cow_bitmap