Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jul 2015 20:38:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 201506] bsdtar fails on zfs compressed and/or sparse files
Message-ID:  <bug-201506-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201506

            Bug ID: 201506
           Summary: bsdtar fails on zfs compressed and/or sparse files
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: marcus@blazingdot.com

Test case 1: sparse file

  # truncate -s10g foo
  # echo "bar" >> foo
  # tar cf - foo | tar tf - 
  foo
  tar: Truncated input file (needed 10737418240 bytes, only 8192 available)
  tar: Error exit delayed from previous errors.

Test case 2: zfs compressed file
  (this is run on a zfs filesystem with lz4 compression turned on)

  # dd if=/dev/zero of=derp bs=1m count=10k
  # echo foo >> derp
  # tar cf - derp | tar tf -
  derp
  tar: Truncated input file (needed 10737418240 bytes, only 8192 available)
  tar: Error exit delayed from previous errors.

In a real-world scenario, I encountered this bug when restoring a large VM disk
image from a tape. The source image was on a compressed zfs filesystem.

These issues may have been fixed upstream. See:

  https://github.com/libarchive/libarchive/issues/464

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201506-8>