diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-07-18 12:33:16 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-08-05 22:48:51 +0100 |
commit | 80813b0282a34501015a3bb8e0f1461c8bef5f74 (patch) | |
tree | c8568e22fef85d422c7eae94c4a7354a10599092 /src/inspect_fs_unix.c | |
parent | f10154e90f02d8aa77bff73687644be212cefafd (diff) | |
download | libguestfs-80813b0282a34501015a3bb8e0f1461c8bef5f74.tar.gz libguestfs-80813b0282a34501015a3bb8e0f1461c8bef5f74.tar.xz libguestfs-80813b0282a34501015a3bb8e0f1461c8bef5f74.zip |
tar-in: Add --no-same-owner flag to tar command when target filesystem doesn't support chown (RHBZ#840572).
When using tar-in or tools built around it such as virt-make-fs, if
the target filesystem is vfat then unpacking the tarball would fail
because tar tries to chown(2) files and fails.
You would see errors such as:
tar: <file>: Cannot change ownership to uid 500, gid 500: Operation not permitted
This change detects whether the target filesystem supports chown(2).
If not, it adds the --no-same-owner flag to tar to stop it from trying
to change the ownership of newly created files.
(cherry picked from commit 50780a84f65ec5d76605691cea889392c2730f54)
Diffstat (limited to 'src/inspect_fs_unix.c')
0 files changed, 0 insertions, 0 deletions