[pve-devel] [PATCH tar v2 1/5] Remove fix-sparse-archives.patch

Emmanuel Kasper e.kasper at proxmox.com
Tue Apr 19 11:23:35 CEST 2016


the issue is fixed in tar-1.27.1
---
 Makefile                  |  1 -
 fix-sparse-archives.patch | 18 ------------------
 2 files changed, 19 deletions(-)
 delete mode 100644 fix-sparse-archives.patch

diff --git a/Makefile b/Makefile
index 64aa3ed..3ed2e94 100644
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,6 @@ deb ${DEB}: ${TARSRC}
 	echo "debian/SOURCE" >>${TARDIR}/debian/docs
 	mv ${TARDIR}/debian/changelog ${TARDIR}/debian/changelog.org
 	cat changelog ${TARDIR}/debian/changelog.org >${TARDIR}/debian/changelog
-	cd ${TARDIR}; patch -p1 <../fix-sparse-archives.patch
 	cd ${TARDIR}; dpkg-buildpackage -b -uc -us
 
 .PHONY: upload
diff --git a/fix-sparse-archives.patch b/fix-sparse-archives.patch
deleted file mode 100644
index 8ac6066..0000000
--- a/fix-sparse-archives.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-See https://bugzilla.redhat.com/show_bug.cgi?id=1024268
-
---- old/src/sparse.c	2013-03-14 16:18:10.000000000 -0400
-+++ new/src/sparse.c	2013-10-28 16:50:20.966528811 -0400
-@@ -221,9 +221,13 @@ sparse_scan_file (struct tar_sparse_file
- 
-   st->archive_file_size = 0;
- 
-+#if 0
-+  /* this shortcut is not safe because some filesystems such as Netapp
-+     can hold small files without allocating any blocks. */
-   if (ST_NBLOCKS (st->stat) == 0)
-     offset = st->stat.st_size;
-   else
-+#endif
-     {
-       if (!tar_sparse_scan (file, scan_begin, NULL))
- 	return false;
-- 
2.1.4





More information about the pve-devel mailing list