From ae7b76e245b8d3c378493e244ea1ba1b7e3b6d7f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 20 Feb 2013 10:46:21 +0100 Subject: [PATCH] xbps_fetch_file: don't fsync(3) before closing fd; slowdowns considerably slow storage. --- include/xbps_api.h.in | 2 +- lib/download.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/xbps_api.h.in b/include/xbps_api.h.in index 0353878d..3258b0e0 100644 --- a/include/xbps_api.h.in +++ b/include/xbps_api.h.in @@ -64,7 +64,7 @@ */ #define XBPS_PKGINDEX_VERSION "1.6" -#define XBPS_API_VERSION "20130207-1" +#define XBPS_API_VERSION "20130220" #ifndef XBPS_VERSION #define XBPS_VERSION "UNSET" diff --git a/lib/download.c b/lib/download.c index 090591d7..7429486d 100644 --- a/lib/download.c +++ b/lib/download.c @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2009-2012 Juan Romero Pardines + * Copyright (c) 2009-2013 Juan Romero Pardines * Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav * All rights reserved. * @@ -273,8 +273,6 @@ xbps_fetch_file(struct xbps_handle *xhp, const char *uri, const char *flags) rv = -1; goto out; } - /* sync and close fd */ - (void)fsync(fd); (void)close(fd); fd = -1;