From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1935BC433F5 for ; Thu, 14 Oct 2021 08:03:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 06DCD610F9 for ; Thu, 14 Oct 2021 08:03:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230185AbhJNIFk (ORCPT ); Thu, 14 Oct 2021 04:05:40 -0400 Received: from verein.lst.de ([213.95.11.211]:49081 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230180AbhJNIFj (ORCPT ); Thu, 14 Oct 2021 04:05:39 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id BEB7968B05; Thu, 14 Oct 2021 10:03:32 +0200 (CEST) Date: Thu, 14 Oct 2021 10:03:32 +0200 From: Christoph Hellwig To: Hannes Reinecke Cc: Christoph Hellwig , Jens Axboe , "Martin K. Petersen" , "J. Bruce Fields" , Chuck Lever , linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: [PATCH 2/7] sd: implement ->get_unique_id Message-ID: <20211014080332.GA29337@lst.de> References: <20211012120445.861860-1-hch@lst.de> <20211012120445.861860-3-hch@lst.de> <0a7d87ef-fff2-6a63-8edd-604ad8868dbd@suse.de> <20211014080134.GA28835@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211014080134.GA28835@lst.de> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Thu, Oct 14, 2021 at 10:01:34AM +0200, Christoph Hellwig wrote: > On Thu, Oct 14, 2021 at 09:30:51AM +0200, Hannes Reinecke wrote: > > What's wrong with scsi_vpd_lun_id() ? > > It doesn't allow the caller to pick a specific ID type. ... and of course that it returns an ASCSII string instead of the binary ID.