Sync data before writing checksum xattr
Sync data before writing checksum xattr

Writes to extended attributes are considered metadata, so can be
commited to storage before data is fully synced. The upshot of this is
that the checksum is cached but the file could be truncated. We attempt
to sync data first to mitigate this problem.

Tojaj/librepo,Tojaj/librepo,rpm-software-management/librepo,rpm-software-management/librepo,Tojaj/librepo,rpm-software-management/librepo