Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp949777pxu; Wed, 7 Oct 2020 22:15:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0tSpLYs/tIICiL/kkLy2AyXuoy2PBWdL8yow8KG+KFB7yNQrxAlQCuiEps+cVinjsoTB9 X-Received: by 2002:a17:906:c0c4:: with SMTP id bn4mr6836408ejb.27.1602134126660; Wed, 07 Oct 2020 22:15:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602134126; cv=none; d=google.com; s=arc-20160816; b=0BHNgtcAUX6Op1pu6nGm+EXOVsyPxvXhhZsfr0yV2w9q/TTAJJrX9db3kbULXXDixT bWBWBsawCA/azhJNxWgaQ2jDCNIcflTHLm8z2ajX9x5EYEqZLWQnmGjHlMIQaNwVY3dk N4UG6dn6b3soAizF5tOjWbKZ6SjNjHTNvw/PnmAxQlxMXxdxrOL1TD8YyZTXcoL5uZ+9 FDtSvkJhID1Oxs4V4BV8DQBjDrbvqksNkvuJgvE3+3MfCispXkODJaTPU3VjtjVFZ2fG iff7H570AMbspskheX7M5FkrCtDngew87xCtOipR3lK2UBbzDGqZ5A69jcFBXqUSTbKk ZBwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HTib+z4wRJQE8qJ7+tXgpMzEjEmYA7OUQO5AnGXRyBY=; b=js9SKAHk/6k8ijaUwJy8dFdvIW5ADDDwW82cOuQtq65lmGg8lxtFzXts4ykkZ6dsDc H3Q6wVvo3uzqyw1Yu0zylJFb3MbB/4lpZAObgXxYb+jYeE6kTGMrwsxxLpuMzohIC6u2 vqetgKn4Uqu+3k0T6eKawCM66A3+Yr0F57mIpFXAaHNR2c94rohwBfqw9khfLL5Ro1Lw 8LAQfXp3MMOeR6/coOnAnH6HWjfFp8ge6k5Wllo0wmOw974VUCZ55JyqR41rfhwivAwe DnOqXq2lCj9KtBGlZNUpSWZ+S4QjK51WxuJyXky4Y5yjPchJkOvAzLSp6pq/IiecyN4Z NDSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ABpoieST; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do3si2953008ejc.210.2020.10.07.22.15.03; Wed, 07 Oct 2020 22:15:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ABpoieST; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728243AbgJHEsH (ORCPT + 99 others); Thu, 8 Oct 2020 00:48:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:36392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726216AbgJHEsH (ORCPT ); Thu, 8 Oct 2020 00:48:07 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AC2E820789; Thu, 8 Oct 2020 04:48:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602132485; bh=l0qrHjPVsW78fE4iMqd/aK426rQMlUvVabMpWWXIv5g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ABpoieSTLK2pGJRb7l8G+YYhkXZSdwzaOO/m7N+bSzrNFB4q+2EV+X0dRaOM4KHvd lHvfyyomiEY6Rc4IP3GqgBefL4UfaSAJ++GoZhbeQ96L4yo/sgkCfwO/j9RRJpm5U1 SIK+0EYkm1skyFjC7mAvrEH0SyCMpX9GcNjisLow= Date: Thu, 8 Oct 2020 06:48:49 +0200 From: Greg Kroah-Hartman To: Tony Asleson Cc: Christoph Hellwig , linux-scsi@vger.kernel.org, linux-block@vger.kernel.org, linux-ide@vger.kernel.org, Hannes Reinecke , pmladek@suse.com, David Lehman , sergey.senozhatsky@gmail.com, jbaron@akamai.com, James.Bottomley@hansenpartnership.com, linux-kernel@vger.kernel.org, rafael@kernel.org, martin.petersen@oracle.com, kbusch@kernel.org, axboe@fb.com, sagi@grimberg.me, akpm@linux-foundation.org, orson.zhai@unisoc.com, viro@zeniv.linux.org.uk Subject: Re: [v5 01/12] struct device: Add function callback durable_name Message-ID: <20201008044849.GA163423@kroah.com> References: <20200925161929.1136806-1-tasleson@redhat.com> <20200925161929.1136806-2-tasleson@redhat.com> <20200929175102.GA1613@infradead.org> <20200929180415.GA1400445@kroah.com> <20e220a6-4bde-2331-6e5e-24de39f9aa3b@redhat.com> <20200930073859.GA1509708@kroah.com> <20201001114832.GC2368232@kroah.com> <72be0597-a3e2-bf7b-90b2-799d10fdf56c@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <72be0597-a3e2-bf7b-90b2-799d10fdf56c@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 07, 2020 at 03:10:17PM -0500, Tony Asleson wrote: > On 10/1/20 6:48 AM, Greg Kroah-Hartman wrote: > > On Wed, Sep 30, 2020 at 09:35:52AM -0500, Tony Asleson wrote: > >> On 9/30/20 2:38 AM, Greg Kroah-Hartman wrote: > >>> On Tue, Sep 29, 2020 at 05:04:32PM -0500, Tony Asleson wrote: > >>>> I'm trying to figure out a way to positively identify which storage > >>>> device an error belongs to over time. > >>> > >>> "over time" is not the kernel's responsibility. > >>> > >>> This comes up every 5 years or so. The kernel provides you, at runtime, > >>> a mapping between a hardware device and a "logical" device. It can > >>> provide information to userspace about this mapping, but once that > >>> device goes away, the kernel is free to reuse that logical device again. > >>> > >>> If you want to track what logical devices match up to what physical > >>> device, then do it in userspace, by parsing the log files. > >> > >> I don't understand why people think it's acceptable to ask user space to > >> parse text that is subject to change. > > > > What text is changing? The format of of the prefix of dev_*() is well > > known and has been stable for 15+ years now, right? What is difficult > > in parsing it? > > Many of the storage layer messages are using printk, not dev_printk. Ok, then stop right there. Fix that up. Don't try to route around the standard way of displaying log messages by creating a totally different way of doing things. Just use the dev_*() calls, and all will be fine. Kernel log messages are not "ABI" in that they have to be preserved in any specific way, so adding a prefix to them as dev_*() does, will be fine. thanks, greg k-h