[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210810004331.0f0094a5@thinkpad>
Date: Tue, 10 Aug 2021 00:43:31 +0200
From: Marek BehĂșn <kabel@...nel.org>
To: Ian Pilcher <arequipeno@...il.com>
Cc: pali@...nel.org, linux-block@...r.kernel.org,
linux-leds@...r.kernel.org, axboe@...nel.dk, pavel@....cz,
linux-kernel@...r.kernel.org, kernelnewbies@...nelnewbies.org
Subject: Re: [RFC PATCH v2 00/10] Add configurable block device LED triggers
On Mon, 9 Aug 2021 14:54:26 -0500
Ian Pilcher <arequipeno@...il.com> wrote:
> I'm not unalterably opposed to the idea, but I don't currently see a way
> to do that without resolving block devices (struct gendisk) by name, and
> that seems to be a no-no.
So a name like "sda1" is not viable? Why? What about "MAJOR:MINOR"?
I confess that I am not very familiar with internal blkdev API.
Quick look reveals that there is a struct block_device, containing a
member bd_disk, which is a pointer to struct gendisk.
What is the relationship between these two? Can there be a block device
without a gendisk, for example?
Marek
Powered by blists - more mailing lists