pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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: Fri, 5 Dec 2014 13:56:43 +0200
Message-ID: <54819D7B.4020501@vmware.com> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 12/04/2014 10:24 AM, Heikki Linnakangas wrote:
> 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.

Ok, pushed a patch to mask out the extraneous bits in the file mode 
field. I only pushed it to git master, since this hasn't caused any 
problems in practice.

- Heikki



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)

Message-ID: <54819D7B.4020501@vmware.com>
Permalink:  ../54819D7B.4020501@vmware.com/
Also on:    postgresql.org/message-id/54819D7B.4020501@vmware.com

 · 

reply

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: <54819D7B.4020501@vmware.com>
  References: <20141112143632.2529.76272@wrigleys.postgresql.org> <547EEC2C.40202@vmware.com> <547EF22A.8090502@tu-dortmund.de> <54801A5B.8040907@vmware.com> <54819D7B.4020501@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