f2fs_utils: Fix for f2fs-tools v1.8.0

 - struct f2fs_configuration must be shared by a pointer.
 - Properly handle sector_size and total_sectors.
 - Trim must be disabled during sparse image creation.
 - Additionally print details if dlopen() fails.

Fixes: 81584836841ef50 ("f2fs_utils: Update for f2fs-tools v1.8.0")

Change-Id: I238b4a787ca71b352322305df48e0e90176f0d7a
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
3 files changed