[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YaXVXU77yvKUyVwg@sol.localdomain>
Date: Mon, 29 Nov 2021 23:40:13 -0800
From: Eric Biggers <ebiggers@...nel.org>
To: Hannes Reinecke <hare@...e.de>
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-api@...r.kernel.org, linux-scsi@...r.kernel.org,
linux-mmc@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Bart Van Assche <bvanassche@....org>
Subject: Re: [PATCH v2 3/3] blk-crypto: show crypto capabilities in sysfs
On Tue, Nov 30, 2021 at 07:49:54AM +0100, Hannes Reinecke wrote:
> > - "modes" is a sub-subdirectory, since there may be multiple supported
> > crypto modes, and sysfs is supposed to have one value per file.
> >
> Why do you have a sub-directory here?
> From what I can see, that subdirectory just contains the supported modes, so
> wouldn't it be easier to create individual files like 'mode_<modename>'
> instead of a subdirectory?
It is a group of attributes, so it makes sense to group them together rather
than put them all in the parent directory alongside other attributes. It also
allows the use of proper names like "AES-256-XTS" rather than weird names like
"mode_AES-256-XTS" or "mode_aes_256_xts".
- Eric
Powered by blists - more mailing lists