From mboxrd@z Thu Jan 1 00:00:00 1970 From: Douglas Gilbert Subject: Re: TRIM / UNMAP read response Date: Fri, 12 Aug 2011 10:55:29 -0400 Message-ID: <4E453EE1.4050705@interlog.com> References: <4E452A6E.4040809@shiftmail.org> Reply-To: dgilbert@interlog.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4E452A6E.4040809@shiftmail.org> Sender: linux-scsi-owner@vger.kernel.org To: joystick Cc: linux-ide@vger.kernel.org, "linux-scsi@vger.kernel.org" List-Id: linux-ide@vger.kernel.org On 11-08-12 09:28 AM, joystick wrote: > Hi all IDE and SCSI ml's, > > is it guaranteed by the standards that reading from a device a region that has > been TRIMmed (IDE) or UNMAPped (SCSI) will certainly return zeroes? ATA: In 'hdparm -I' you need to see this line: * Deterministic read ZEROs after TRIM [See the ATA IDENTIFY DEVICE command] SCSI: In the READ CAPACITY (16) response the LBPRZ needs to be set to 1. Recently the same LBPRZ bit was added to the Logical Block Provisioning VPD page (sbc3r27.pdf). Doug Gilbert