Received: by 10.223.185.116 with SMTP id b49csp3764717wrg; Mon, 19 Feb 2018 05:42:49 -0800 (PST) X-Google-Smtp-Source: AH8x224aWC4X6KZpH7fdVWYPEIqytno02Wz1KrE8qt8A5i0wk71ZSILKsuC0yEuA3xFRxE2akR4e X-Received: by 2002:a17:902:bc41:: with SMTP id t1-v6mr14509245plz.436.1519047769024; Mon, 19 Feb 2018 05:42:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519047768; cv=none; d=google.com; s=arc-20160816; b=aUejek8kmjM3gPBu4Vcztk/E3bDBhM290uXFvNvUrymP9u7Jl2du4rleCFASM/+i5v i6dYAJ6y1/v5A+fWCtW/aN6MxIO6bI85LVDmk5caLj8MgAuaq9OMlFdfaY9kVoS37+pY Os7GGelwtyuoMSFGIRyqkk5Q+L7A9XMGmGs4wvXscEQQNBlxnTEx0c1kA9tHmIWf+u+V 2Df8DjpTuT+1aTnzO21yG03l0SQCdP4Q4AvD4WGUdNhmd5HG7dPGaWJjLnT1TZkMLMJi WuPqzZ1GgRxkgwLhRK5Ueed2X1ew+/dlAekNVsC78WnCEBoAW8BbaAitd6bsZPVkBxDk UxqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=EZ1YKD2TcaWH5H0WLMaTjp8vLnwG2DweeoaUtVqOo3E=; b=DSxD9CQB4Q4dSeaRIkcDpPSPUPdE36GlatSUI6hkvtif3G20GcZC2Oymnm4EL5lg34 hQH1GLa/lFzU1AJniL/6/KNloTHtSd4OVHNnDQBliwSapPzB7wleIf7MW/OhFBYcxy86 vK2K0SbZytb7a8u/vNd631uwV7U56CvfvMXpUjBiSKWNFyp86o8mvs/6QLj3Th3E4SI9 PNz0tFWSQVkRysh7eTdu/LfrCinObvkBcsgeSMM1owsNQz8eMWDUkUejKSzuk3VW1blR 13L5CZLMYCsfigb7bxP3gYei2Q3/+RKQ+2myHOYa4+/651y4ynBRzn4YP1y8sbeB+fQs jF9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k2AhDnY7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7-v6si4286507plv.501.2018.02.19.05.42.34; Mon, 19 Feb 2018 05:42:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k2AhDnY7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752867AbeBSNkj (ORCPT + 99 others); Mon, 19 Feb 2018 08:40:39 -0500 Received: from mail-lf0-f52.google.com ([209.85.215.52]:33808 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752666AbeBSNkg (ORCPT ); Mon, 19 Feb 2018 08:40:36 -0500 Received: by mail-lf0-f52.google.com with SMTP id l191so13136758lfe.1; Mon, 19 Feb 2018 05:40:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=EZ1YKD2TcaWH5H0WLMaTjp8vLnwG2DweeoaUtVqOo3E=; b=k2AhDnY7Bmd//NfQKvIZTpN2mh88+t13lgEf1sC23irQil0IlPKbvRsQpQtlcetO1/ XXvgvwfDBfcVZgkJpGykNtoE9ao1P+2B/ZaQeTwGkzAI+DTUWV6iLx8DQJAQNh0307is US9AptWAVPu548avLkb2GOexIz0nZxEvW31dXdA5fX8du9n5+gpAMxTZfzG+N98O9eAO mHDCSx8Xajk+E7cLUyURba/4cluv2OED2kPKvorrPb3f8Y6XYWdDsgyUoMJ1LlwHXqaO CV6VX5/w/IYce5Meylc6Ryxdu36JdEdDO8+zDniMiZkHo0r7MHdsL0O5kY0O8VJ5MjoP WPTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=EZ1YKD2TcaWH5H0WLMaTjp8vLnwG2DweeoaUtVqOo3E=; b=ptMegeiqVOotUc7E3PYwwCza0WRiPlDzsXNQ9aPLgPtqWby27QtuwNeCOIpLyKWsG1 jub4w5UfRR3gJ8xWdT21Aw1b5iTrekGNW/SKDyfDhemRCf77Q6zjDq/4kR8qtOrg+RDz veFuyUpKvIGc4qc+0l6WDKykWGiZyb+eX1cFkNJ77hLQKhVAntvtB8r7MLofp1d5jr3d VOBEhWu+7Skkpddg3R1sE+3TQdAAWfQJ5pnrqGG5kSk7CwJDJ8RoJ1S3YiqZ++KyslQc b3GBAZWn6GfOY3HhzmRBOdH8x4RxI5cM/j7wMGsviq8uUafyKYggoTvrwLgatAToR8Nx c8Og== X-Gm-Message-State: APf1xPCeTO1S8OyQFy61gQ4uBm7c9PvhPw6+5WqpBVNiLya2KqMNDNlM SZx8lhAYPmks0A2UbOA6CDP3DI/f X-Received: by 10.25.193.78 with SMTP id r75mr9440585lff.124.1519047634679; Mon, 19 Feb 2018 05:40:34 -0800 (PST) Received: from [192.168.1.31] (x1-6-48-83-c7-90-44-8a.cpe.webspeed.dk. [80.163.36.44]) by smtp.gmail.com with ESMTPSA id x69sm2230890ljb.50.2018.02.19.05.40.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 05:40:33 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: [PATCH 2/8] lightnvm: show generic geometry in sysfs From: =?utf-8?Q?Javier_Gonz=C3=A1lez?= X-Mailer: iPhone Mail (15D60) In-Reply-To: Date: Mon, 19 Feb 2018 14:40:32 +0100 Cc: Javier Gonzalez , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-nvme@lists.infradead.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <1518530768-20956-1-git-send-email-javier@cnexlabs.com> <1518530768-20956-3-git-send-email-javier@cnexlabs.com> To: =?utf-8?Q?Matias_Bj=C3=B8rling?= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> This breaks user-space. The intention is for user-space to decide >>> based on version id. Then it can either retrieve the 1.2 or 2.0 >>> attributes. The 2.0 attributes should not be available when a device >>> is 1.2. >>>=20 >> Why does it break it? I'm only adding new entries. >> The objective is to expose the genneric geometry, since this is the >> structure that is passed on to the targets. Since some of the values are >> calculated, there is value on exposing this information, I believe. >> Another way of doing it, is adding the generic geometry at the target >> level, showing what base values it is getting, including the real number >> of channels/groups and luns/pus. >> Would this be better in your opinion? >=20 > No. It should be one set of attributes for 1.2 (keep the way it is today),= and then separate 2.0 attributes. User-space should then identify either by= either 1 or 2 in the version attribute. >=20 >>>> ... >>> csecs and sos are derived from the the generic block device data structu= res. >> As mentioned above, it is to represent the generic geometry. >=20 > They are not part of the 2.0 spec. The fields can be derived from elsewher= e. >>>=20 Ok. Thanks for looking into it.=20 Javier.=20=