Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754729AbaAMQdw (ORCPT ); Mon, 13 Jan 2014 11:33:52 -0500 Received: from mail-ea0-f175.google.com ([209.85.215.175]:57960 "EHLO mail-ea0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752120AbaAMQdp (ORCPT ); Mon, 13 Jan 2014 11:33:45 -0500 Message-ID: <52D41563.9050309@dev.mellanox.co.il> Date: Mon, 13 Jan 2014 18:33:39 +0200 From: Sagi Grimberg User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: dgilbert@interlog.com, "Martin K. Petersen" CC: Sagi Grimberg , "Nicholas A. Bellinger" , target-devel , linux-scsi , linux-kernel , Christoph Hellwig , Hannes Reinecke , Or Gerlitz , Nicholas Bellinger Subject: Re: [PATCH 07/14] target/sbc: Add P_TYPE + PROT_EN bits to READ_CAPACITY_16 References: <1389212157-14540-1-git-send-email-nab@daterainc.com> <1389212157-14540-8-git-send-email-nab@daterainc.com> <52CE78EB.60108@mellanox.com> <52D286D9.5050500@dev.mellanox.co.il> <52D2C4C2.2040800@interlog.com> <52D2E4A9.7010004@interlog.com> In-Reply-To: <52D2E4A9.7010004@interlog.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Back to the original question, I don't think Sagi was > asking if it was valid to do a legacy/unprotected READ, > it was what to expect with a protected READ on > unwritten blocks: > > > So this takes me to a corner I still don't understand, if > > a LUN is pre-formatted as T10-protected, what happens to > > unwritten blocks read? > > So the precise answer is: the PI will be all 0xff bytes, > unless logical provisioning is enabled, LBPRZ=0 and the > device's compliance predates sbc3r34.pdf (November 2012). > > Doug Gilbert > > Thanks Doug, This answer translates directly into a fix in my T10-PI offload API. Sagi. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/