Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id A02CBB5DBCA for ; Mon, 10 Oct 2011 14:27:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 72898-08 for ; Mon, 10 Oct 2011 17:27:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-qy0-f174.google.com (mail-qy0-f174.google.com [209.85.216.174]) by mail.postgresql.org (Postfix) with ESMTP id A40A1B5DBC7 for ; Mon, 10 Oct 2011 14:27:28 -0300 (ADT) Received: by qyk30 with SMTP id 30so2588275qyk.19 for ; Mon, 10 Oct 2011 10:27:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=6m8TGo5mEbJyAT1JKUZK8kWYG70F2N+qj4hSatGiVHE=; b=LFk3s0tYNwH91btV/or664LZEURGx/K8pS0Vs1CMlMgCdnuZRXNtcmZNQpgCiC4rbe 2y9JlxRppcPXaqmXfFMCgIurJ6KaJHkfiYwJ2SjY4dP/4geYhQX03lDGXK3ucIuvMq6F vaVf50HeCzOfISNpsgwnZSxq15DQh+D1vYxSk= MIME-Version: 1.0 Received: by 10.229.69.198 with SMTP id a6mr2613498qcj.228.1318267646546; Mon, 10 Oct 2011 10:27:26 -0700 (PDT) Received: by 10.229.159.14 with HTTP; Mon, 10 Oct 2011 10:27:26 -0700 (PDT) In-Reply-To: <4DFC1351.2000002@2ndQuadrant.com> References: <201106171455.45391.achill@matrix.gatewaynet.com> <4DFC1351.2000002@2ndQuadrant.com> Date: Mon, 10 Oct 2011 13:27:26 -0400 Message-ID: Subject: Re: Small correction in http://www.postgresql.org/docs/9.0/interactive/wal-reliability.html From: Robert Haas To: Greg Smith Cc: pgsql-docs@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201110/17 X-Sequence-Number: 7017 On Fri, Jun 17, 2011 at 10:54 PM, Greg Smith wrote: > On 06/17/2011 07:55 AM, Achilleas Mantzios wrote: >> >> It reads : >> 'On FreeBSD, IDE drives can be queried using atacontrol, and SCSI drives >> using sdparm.' >> but it should be: >> 'On FreeBSD, IDE drives can be queried using atacontrol, and SCSI drives >> using camcontrol.' >> > > FreeBSD's Common Access Method (CAM) looks to be the preferred driver lay= er > to interrogate. =A0sdparm is available on Linux and FreeBSD, but it's a > second-class citizen talking to CAM on the latter. =A0To quote from one o= f the > docs on it, FreeBSD sdparm "SCSI commands are routed through the CAM > pass-through interface". =A0Talking directly to it with camcontrol does s= eem > to be the preferred route for some things. > > However, the UI to sdparm is a bit easier to use when it is available. > =A0Actually changing the write cache state with camcontrol requires black > magic--you have to construct the right SCSI packet by hand. =A0I can't fi= nd > any example. > > Bruce just touched this section of the docs recently, so this part actual= ly > reads just: > > =A0 =A0 =A0 =A0 SCSI drives use sdparm. > > Now. =A0Perhaps the following makes sense: > > =A0 =A0 =A0 =A0 SCSI drives can be queried using camcontrol > identify, and the write cache both queried and changed using > sdparm when available. Done, in master and REL9_1_STABLE. --=20 Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company