btrfs-progs: subvol sync: fix reversed condition
David Sterba
maintainerPATCH 1/1 btrfs-progs: subvol sync: fix reversed condition
In my local change to 07cc891d1d9819d5cf0628af555e7727d289cf7b ("btrfs-progs: Simplify all-subvolumn-clean condition for wait_for_subvolume_cleaning") that reversed the meaning of the variable dirty -> clean, I made a mistake and broke 'subvol sync' that will not wait as expected and ends prematurely. Zhao Lei's original patch worked.
CC Zhao Lei <[email protected]>
Signed-off-by David Sterba <[email protected]>
--- cmds-subvolume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cmds-subvolume.c +1 -1
@@ -89,7 +89,7 @@ static int wait_for_subvolume_cleaning(int fd, int count, u64 *ids, clean =0 ; } } -if (clean ==0 ) +if (clean ==1 )break ;sleep (sleep_interval); }
Signature · 1 line
2.1.3