Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9D91B2E0051 for ; Wed, 27 Feb 2008 02:08:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 45283-02 for ; Wed, 27 Feb 2008 02:08:40 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 32CDC2E0059 for ; Wed, 27 Feb 2008 02:08:40 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m1R68cGN014601; Wed, 27 Feb 2008 01:08:38 -0500 (EST) To: "Scott Marlowe" cc: "Phillip Smith" , pgsql-admin@postgresql.org Subject: Re: Backup to Tape Incomplete In-reply-to: References: <020401c878f8$1194b500$9b0014ac@wbaus090> Comments: In-reply-to "Scott Marlowe" message dated "Tue, 26 Feb 2008 23:23:03 -0600" Date: Wed, 27 Feb 2008 01:08:38 -0500 Message-ID: <14600.1204092518@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/364 X-Sequence-Number: 28438 "Scott Marlowe" writes: > I wonder what it's meaning by invalid arg? On my Fedora machine, "man write" explains EINVAL thusly: EINVAL fd is attached to an object which is unsuitable for writing; or the file was opened with the O_DIRECT flag, and either the address specified in buf, the value specified in count, or the current file offset is not suitably aligned. I'm not sure that writing to a tape is quite like O_DIRECT, but the mention of an un-aligned count seems pretty relevant. If you grant the assumption that the underlying problem is that the tape drive has to be written to in multiples of its blocksize, then this supports the idea that a violation of that rule would be reported as EINVAL. regards, tom lane