Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6324502pxv; Thu, 29 Jul 2021 11:39:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJbLkq/ispGNABt7mtHHeppMdHCwRhCKyUoJI50Vym343WehStqzGy/msfFI3u1s6GvpUW X-Received: by 2002:a17:906:b811:: with SMTP id dv17mr5867245ejb.444.1627583987570; Thu, 29 Jul 2021 11:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627583987; cv=none; d=google.com; s=arc-20160816; b=jUKvlEWEI0e2X1LvCiiryhPO/p3dinSGp3GPBGyTReY3jy/oenKA25XQ+0f+0R5+zc dOvyvSoyRtDrm2WrWD+s4oDoPmqbyhwdjsib7WWkloK2TjwuCwwL5+FqON1Z1gzLeUja gW0wW8DMJugLVYqcrKSnZHwI/SwqwpyEyuEAaq+w3kobnfYVYoMSv3uVHAk/7cQFmkC4 bma6z6jSZ5AXKSgxEbSJ9Tn9tEqTxZzhz/ExVDtqpFl+ococGkW6XjOUNVT4+i9aTL/1 fP6ySdTQbDmoweBZkPfKCu+JkTv35Y83d4PoBwgGh1HlHORw9EJZxw3kMFoLD/TVYYyt gIHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Y5TssSi4Exunqtyb75xKNqYwU0Y3Dq3pzgSE740l0ew=; b=O0KdFUPNIyuPGfczUT18LwXVherjgqcpY3yof8aWL0ldHGGNHzwA2xHlnW0Xatcml7 Jv2rZHk4zFPRowbTqGLt2tvoLUjmg0ddJFIaX3NxGRsOaz57d0iDCa2pWVJ2yPOORYWy oTKFr9O8vCj43Y+MNbJdSkeDIkP00yC+dnbsL17NUJ1AonpDqppNO4Y7lAcCQafsTEI4 meuSTlpau1hMpBUaAjRfztgYIxuqWLnDSti7DLi2mWGhpfS6ttJMCkvT9pXZd70rZ+4d YVvzjNWh6p53Ka0lWJ/5CT51k69D4dVjOBzKAXFDsCjBOj9z/3ZJY6NZtkVUrJpYL8p4 9J8w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b12si2693253ede.46.2021.07.29.11.39.22; Thu, 29 Jul 2021 11:39:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229731AbhG2Sfs (ORCPT + 99 others); Thu, 29 Jul 2021 14:35:48 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:36352 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbhG2Sfq (ORCPT ); Thu, 29 Jul 2021 14:35:46 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id F14121C0B79; Thu, 29 Jul 2021 20:35:41 +0200 (CEST) Date: Thu, 29 Jul 2021 20:35:41 +0200 From: Pavel Machek To: Ian Pilcher Cc: linux-block@vger.kernel.org, linux-leds@vger.kernel.org, axboe@kernel.dk, linux-kernel@vger.kernel.org, kernelnewbies@kernelnewbies.org Subject: Re: [RFC PATCH 0/8] Add configurable block device LED triggers Message-ID: <20210729183541.GA6772@duo.ucw.cz> References: <20210729015344.3366750-1-arequipeno@gmail.com> <20210729085413.GA16945@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2021-07-29 12:03:04, Ian Pilcher wrote: > On 7/29/21 3:54 AM, Pavel Machek wrote: > > We normally have a trigger ("block device activity") which can then > > expose parameters ("I watch for read" and "I monitor sda1"). > >=20 > > Is there a reason normal solution can not be used? >=20 > This big difference is that this allows different devices to drive > different LEDs. For example, my NAS has 5 drive bays, each of which > has its own activity LED. With these patches, I can create a > separate trigger for each of those LEDs and associate the drive in each > bay with the correct LED: Yes, and I'd like to have that functionality, but I believe userland API should be similar to what we do elsewhere. Marek described it in more details. Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYQL0/QAKCRAw5/Bqldv6 8mF+AJ0WfDSWeTOfpy+dRFuYGXEO4Bl98gCfWa1EIMy+vpCphwJ2PRXsqEqniOc= =foRg -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB--