On Thu, Jan 27, 2022 at 10:58 AM Richard W.M. Jones <rjones(a)redhat.com> wrote:
On Wed, Jan 26, 2022 at 09:31:14PM -0800, anemade wrote:
> I am using libguestfs Golang binding APIs(version 1.44)
> Followed this document
https://libguestfs.org/guestfs-golang.3.html to create
> the disk, add the disk, format the partition, launch the appliance and
> performing some copy_in and copy_out operations.
>
> While doing copy_in, I am seeing this strange issue
>
> error: copy_in: tar subprocess failed: tar: .: file changed as we read it:
> errno 0
>
> This issue is not all time reproducible. It comes like 1 out of 10
> runs. In my case, data is stable while doing copy_in. There is
> absolutely no change in the data while guestfs_copy_in operation
> going on. Any leads to issue or anything that I need to understand
> for copy_in or copy_out?
Can you share exactly how you are using copy_in? A small
reproducer would be good.
Do you copy from GlusterFS mount?
Gluster has this bug:
https://bugzilla.redhat.com/1104618
Which was fixed by adding a new configuration:
cluster.consistent-metadata on
but the old configuration
cluster.consistent-metadata no
is still the default in some cases.
Nir