copy_file: call discard_range on destination file
discard the range in the output file we are going to overwrite anyway.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e488952 commit 9552f5150bb2654a0e52aad8c12973896f24f2ee
@Sascha Hauer Sascha Hauer authored on 13 Dec 2019
Showing 1 changed file
View
lib/libfile.c