Alon Bar-Lev has uploaded a new change for review.

Change subject: utils: tar: support long file names within tar
......................................................................

utils: tar: support long file names within tar

Change-Id: I364d67dc408af21e08a20014c6a0c99a413fe3be
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/hostinstall/Tar.java
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/64/9164/1

diff --git 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/hostinstall/Tar.java
 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/hostinstall/Tar.java
index 96e20ce..4f1f30e 100644
--- 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/hostinstall/Tar.java
+++ 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/hostinstall/Tar.java
@@ -94,6 +94,8 @@
         TarArchiveOutputStream archive = null;
         try {
             archive = new TarArchiveOutputStream(os);
+            // TODO: use LONGFILE_POSIX in newer version of commons-compress
+            archive.setLongFileMode(TarArchiveOutputStream.LONGFILE_GNU);
             _recurse(archive, base, "./");
         }
         finally {


--
To view, visit http://gerrit.ovirt.org/9164
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I364d67dc408af21e08a20014c6a0c99a413fe3be
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to