Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1546036pxb; Fri, 10 Sep 2021 08:15:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGH0dQdZ7BCb69WWuXCO+WFrKEfgGtoZ7DL0DYfrtLwXjM8ues4hH1W/74+WszL0wfEtqz X-Received: by 2002:a05:6638:dc8:: with SMTP id m8mr744310jaj.93.1631286922073; Fri, 10 Sep 2021 08:15:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631286922; cv=none; d=google.com; s=arc-20160816; b=PKdrNDtSHePIzmQQ8IEw2ccsMG2EMuWVMHXi7Ic3h0mAxBG9k5cZSQ1bKOGZmE4fSM 2pQcawwQE5kIp5IYrU5jJBk8KsVpOBwE4tXKPfo2/zXXG06ZHjCtZNqPDsfyHAAY7p1X 7GibdY1jWGTJhHaer2K4jLkebWWQ/O0WaJzdaKa4AE0IJzdkerG960zhPDAEt0Hl6uey eszbl3RKWPrCf5dK/WDPkLJhu4pUozUGwMFgcPTf6OGjKweihrFmcBg4jrmNqh8st4AX 0tuINjFJco97MpXZnz63LEolDG4i0K4NuSIG1QJZNt6f/+kKT5euECrcFbWOZRNn3LLV 9Mqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=LSRQz6T2RqWRHMnOsj1xIbun3ED++BM0Nh4W9dbINpw=; b=fZTIXt3rul2M7sqxeGdemLlIOXF0FgUQmF2SEW50szrIelzGI3TY6tRMmyNgLKf9Df tqUqRYEO3LdSsw5OlhHk77C/M/pfEW/hd7/g0ufSq0YIJlFKnNTEyEGnu6uuWHzLao/A pjB/azumsS+AauqzuOT1HS6UWDPQZSU3JDv7PPFQkFyMe7ERKcT9jQ4IVEwo6rLelvbj c9sNkle08EGkOWYUSTl0DMVJ7E1gETn7R7yDaZCHKvK4I7G2b7R75DOieovOrU2AFcvz nb0sor2iHnx8F+w4ZMl52FThRqXv6u9isqgyt9+HTuhD0Im5zavfyBGglQyxP8qhIEY6 hgpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PdFWexZR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i18si5782564jan.99.2021.09.10.08.15.06; Fri, 10 Sep 2021 08:15:22 -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=k20201202 header.b=PdFWexZR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234288AbhIJPN1 (ORCPT + 99 others); Fri, 10 Sep 2021 11:13:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:46326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234173AbhIJPN0 (ORCPT ); Fri, 10 Sep 2021 11:13:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CC73260C40; Fri, 10 Sep 2021 15:12:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631286735; bh=LSRQz6T2RqWRHMnOsj1xIbun3ED++BM0Nh4W9dbINpw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=PdFWexZRH1uFhUR7IZFejc/blWACrb+TkCGfyPwr6t/71LapGRstvVhnjHndIQ6Ft rtGi/23EBiGwpvk648rxz/WeAqV7P7GQd2kTJvXcX25br3Sq1moF2MeuXoTZXY0X2b E48V8G+ZCywNMEdYCggTLC7WryIB+tIuKZ9fNuebfsy5FvnGciNDtgENCsBJxaJJHu hAs6tTA5e01TcqLlwzaq1J6qk9XDqfA7/YS4FzIW1w1GdLbQLtBQPHWi9pyyazEbav jovLoB9gREnFSCS2Hf2vtCDU2bKtXrraou6pMjSnyjyVXoI/DvrwAiJLq0cmZuyOCD 8k22JKWArwmDA== Date: Fri, 10 Sep 2021 17:12:11 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Ian Pilcher Cc: axboe@kernel.dk, pavel@ucw.cz, linux-leds@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Subject: Re: [PATCH v2 09/15] leds: trigger: blkdev: Check devices for activity and blink LEDs Message-ID: <20210910171211.3c2236c3@thinkpad> In-Reply-To: <77111c57-dfb5-44c6-c4e9-e18afb468b6e@gmail.com> References: <20210909222513.2184795-1-arequipeno@gmail.com> <20210909222513.2184795-10-arequipeno@gmail.com> <20210910041713.4722760a@thinkpad> <77111c57-dfb5-44c6-c4e9-e18afb468b6e@gmail.com> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 10 Sep 2021 10:09:09 -0500 Ian Pilcher wrote: > On 9/9/21 9:17 PM, Marek Beh=C3=BAn wrote: > > So your code allows me to use a partition block device (like sda2) to > > register with the blkdev LED trigger, but when I do this, the code will > > disregard that I just want the LED to blink on activity on that one > > partition. Instead you will blink for whole sda, since you are looking > > at stats of only part0. > >=20 > > Am I right? =20 >=20 > You can't add partitions, only whole devices. But I should be able to, since partition is a block device in /dev. Any block device from /sys/class/block should be possible to add. Marek