From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Hendrik Grewe <Hendrik.Grewe@tu-dortmund.de>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #11949: pg_basebackup creates defective tar file
Date: Thu, 4 Dec 2014 10:24:59 +0200
Message-ID: <54801A5B.8040907@vmware.com> (raw)
In-Reply-To: <547EF22A.8090502@tu-dortmund.de>
References: <20141112143632.2529.76272@wrigleys.postgresql.org>
<547EEC2C.40202@vmware.com>
<547EF22A.8090502@tu-dortmund.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 12/03/2014 01:21 PM, Hendrik Grewe wrote:
> Am 03.12.2014 um 11:55 schrieb Heikki Linnakangas:
>>
>> The conclusion on bug-tar list seems to be that this is a bug in
>> GNU tar, and the file created by pg_basebackup is correct.
>>
>> I just wanted to add that you can work-around this by passing the
>> "-b 1" option to tar. With that, it seems to work.
>
> So the structral defect within the tarfile:
> https://lists.gnu.org/archive/html/bug-tar/2014-11/msg00007.html
>
> Is not caused by pg_basebackup?
You're referring to this, from Jörg Schilling:
> The only structural defect in the tarfile is that it contains too many bits in
> the mode field.
That shouldn't cause the --append problem. The --append problem happens
because of GNU tar's bug in handling an archive with a "blocking factor"
different from its default.
The "too many bits in the mode field" problem seems to be that we store
the file type bits that stat(2) returns in st_mode & ST_IFMT, in the
archive's mode field, while the ustar file format only expects the
permission bits to be there. Tar program will ignore the extra bits,
which is why we haven't noticed, but I guess we should fix that anyway,
for the sake of cleanliness. But that's not the root cause of the
--append corruption.
- Heikki
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: hlinnakangas@vmware.com, Hendrik.Grewe@tu-dortmund.de
Subject: Re: BUG #11949: pg_basebackup creates defective tar file
In-Reply-To: <54801A5B.8040907@vmware.com>
References: <20141112143632.2529.76272@wrigleys.postgresql.org> <547EEC2C.40202@vmware.com> <547EF22A.8090502@tu-dortmund.de> <54801A5B.8040907@vmware.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox