Recover from fsync fail on read-only filesystem (RhBug:1956361)
Recover from fsync fail on read-only filesystem (RhBug:1956361)

When `fsync` fails due to the file not supporting synchronization just log
the problem instead of failing the whole dnf run. This happens for
example with filesystems mounted read-only in which case there is no
point to `fsync` anyway.

Currently we also ignore return values from `FSETXATTR` which also fails
on read-only filesystem (so no checksum cache is set). This is fine however
since the checksum is recomputed when needed, dnf is just a bit slower.

https://bugzilla.redhat.com/show_bug.cgi?id=1956361

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