Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751364AbaALMNT (ORCPT ); Sun, 12 Jan 2014 07:13:19 -0500 Received: from mail-ee0-f41.google.com ([74.125.83.41]:41075 "EHLO mail-ee0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbaALMNR (ORCPT ); Sun, 12 Jan 2014 07:13:17 -0500 Message-ID: <52D286D9.5050500@dev.mellanox.co.il> Date: Sun, 12 Jan 2014 14:13:13 +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: "Martin K. Petersen" , Sagi Grimberg CC: "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> In-Reply-To: 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 On 1/10/2014 10:39 PM, Martin K. Petersen wrote: >>>>>> "Sagi" == Sagi Grimberg writes: > Sagi> What about FORMAT_UNIT emulation? The backstore protection > Sagi> configuration is done at the target side via configfs/targetcli, > > I don't know of any non-disk devices that actually implement FORMAT > UNIT. Usually such configuration is done using the array management > interface. > Hmm, 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? I mean, SCSI login executes some reads from sevel LBAs which will probably fail as blocks are unwritten. What is the usage model? perform Initiator login and then format the LUN on the target node? This is why I thought FORMAT_UNIT should be implemented. I understand this corner will disappear in DIF v2 (following DIX1.1 draft) with ESCAPE flags. -- 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/