Bug 840572 - virt-make-fs / tar-in should support vfat properly
virt-make-fs / tar-in should support vfat properly
Product: Virtualization Tools
Classification: Community
Component: libguestfs (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Richard W.M. Jones
Depends On:
  Show dependency treegraph
Reported: 2012-07-16 11:37 EDT by Richard W.M. Jones
Modified: 2012-07-18 08:10 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-07-18 08:10:26 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Richard W.M. Jones 2012-07-16 11:37:50 EDT
Description of problem:

At the moment if you try to use 'virt-make-fs' to create
a msdos/vfat filesystem you're fairly well bound to hit the
following annoying error:

virt-make-fs: error copying contents into filesystem
An error here usually means that the program did not estimate the
filesystem size correctly.  Please read the BUGS section of the manpage.
tar_in: tar subcommand failed on directory: /: tar: ./answerfile: Cannot change ownership to uid 500, gid 500: Operation not permitted
tar: .: Cannot change ownership to uid 500, gid 500: Operation not permitted

Although it is well understood why this error occurs, we really
should just make it work.

It seems as if passing tar --no-same-owner would fix this.  We
could change the tar-in APIs to allow this and other flags.

Version-Release number of selected component (if applicable):

libguestfs 1.19.19
Comment 1 Richard W.M. Jones 2012-07-18 08:10:26 EDT
Fixed upstream in these commits:
and in libguestfs >= 1.19.21.

Note You need to log in before you can comment on or make changes to this bug.