gboolean lr_checksum_fd_cmp(LrChecksumType type, int fd, const char *expected, gboolean caching, gboolean *matches, GError **err)
gboolean lr_checksum_fd_compare(LrChecksumType type, int fd, const char *expected, gboolean caching, gboolean *matches, gchar **calculated, GError **err)