Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XwrVS-00073l-3E for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Dec 2014 11:57:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XwrVR-0000mD-KV for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Dec 2014 11:57:05 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XwrVQ-0000m7-Vh for pgsql-bugs@postgresql.org; Fri, 05 Dec 2014 11:57:05 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XwrVN-0002VL-Tg for pgsql-bugs@postgresql.org; Fri, 05 Dec 2014 11:57:03 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id EA82629320; Fri, 5 Dec 2014 03:56:59 -0800 (PST) Received: from EX13-CAS-003.vmware.com (EX13-CAS-003.vmware.com [10.113.191.53]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id E3BFF415A6; Fri, 5 Dec 2014 03:56:59 -0800 (PST) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-005.vmware.com (10.113.191.25) with Microsoft SMTP Server (TLS) id 15.0.913.22; Fri, 5 Dec 2014 03:56:59 -0800 Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.913.22; Fri, 5 Dec 2014 03:56:58 -0800 Message-ID: <54819D7B.4020501@vmware.com> Date: Fri, 5 Dec 2014 13:56:43 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0 MIME-Version: 1.0 To: Hendrik Grewe , Subject: Re: BUG #11949: pg_basebackup creates defective tar file References: <20141112143632.2529.76272@wrigleys.postgresql.org> <547EEC2C.40202@vmware.com> <547EF22A.8090502@tu-dortmund.de> <54801A5B.8040907@vmware.com> In-Reply-To: <54801A5B.8040907@vmware.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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