From patchwork Tue Apr 20 18:59:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Samoylenko X-Patchwork-Id: 12214975 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 194ECC43460 for ; Tue, 20 Apr 2021 18:59:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D28EB613E0 for ; Tue, 20 Apr 2021 18:59:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233618AbhDTTA1 (ORCPT ); Tue, 20 Apr 2021 15:00:27 -0400 Received: from mta-02.yadro.com ([89.207.88.252]:52954 "EHLO mta-01.yadro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233541AbhDTTA1 (ORCPT ); Tue, 20 Apr 2021 15:00:27 -0400 Received: from localhost (unknown [127.0.0.1]) by mta-01.yadro.com (Postfix) with ESMTP id 7CD0841399; Tue, 20 Apr 2021 18:59:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yadro.com; h= content-type:content-type:content-transfer-encoding:mime-version :x-mailer:message-id:date:date:subject:subject:from:from :received:received:received; s=mta-01; t=1618945193; x= 1620759594; bh=mBFonvNyfhwXdP0YxwKa9464TvbOOHPM9Cs3w/vkPaU=; b=Q 8h7vS+zKHh6pxxoHnzKdGkd30KrWEQSbGCqbpBcqT7VJ+8zK7f83aAJMH/A/n3XL 340FV7Yow/YjBFGEfQimki5dzkxvXREFpj8gOgDZQrU3CvfiQ63625EY7X4vELTr M8PkZ132jLrS/QK9uBMDbFI/d9OFLDpKVJWuuuVte4= X-Virus-Scanned: amavisd-new at yadro.com Received: from mta-01.yadro.com ([127.0.0.1]) by localhost (mta-01.yadro.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gZIlNBgBdjlF; Tue, 20 Apr 2021 21:59:53 +0300 (MSK) Received: from T-EXCH-03.corp.yadro.com (t-exch-03.corp.yadro.com [172.17.100.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mta-01.yadro.com (Postfix) with ESMTPS id 816BE41318; Tue, 20 Apr 2021 21:59:53 +0300 (MSK) Received: from yadro.com (10.199.0.227) by T-EXCH-03.corp.yadro.com (172.17.100.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.32; Tue, 20 Apr 2021 21:59:53 +0300 From: Sergey Samoylenko To: Martin Petersen , Mike Christie , CC: David Disseldorp , , , Sergey Samoylenko Subject: [PATCH RESEND 0/2] scsi: target: user configurable IEEE Company ID Date: Tue, 20 Apr 2021 21:59:18 +0300 Message-ID: <20210420185920.42431-1-s.samoylenko@yadro.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Originating-IP: [10.199.0.227] X-ClientProxiedBy: T-EXCH-01.corp.yadro.com (172.17.10.101) To T-EXCH-03.corp.yadro.com (172.17.100.103) Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org The series allows to change IEEE Company ID component of NAA LUN identifier returned on the SCSI INQUIRY VPD page (aka WWID). Company ID can be changed via the target/core/$backstore/$name/wwn/company_id ConfigFS path. Sergey Samoylenko (2): scsi: target: core: Unify NAA identifer generation scsi: target: core: Add IEEE Company ID attribute drivers/target/target_core_configfs.c | 50 +++++++++++++++++++++++++++ drivers/target/target_core_device.c | 5 +++ drivers/target/target_core_pr.h | 2 +- drivers/target/target_core_spc.c | 47 ++++++++++++------------- drivers/target/target_core_xcopy.c | 17 ++------- include/target/target_core_base.h | 1 + 6 files changed, 82 insertions(+), 40 deletions(-)