All of lore.kernel.org
 help / color / mirror / Atom feed
From: Glenn Washburn <development@efficientek.com>
To: grub-devel@gnu.org, Daniel Kiper <daniel.kiper@oracle.com>
Cc: Glenn Washburn <development@efficientek.com>
Subject: [PROCFS 0/5] Add and improve (proc) entries
Date: Fri, 19 Mar 2021 18:17:41 -0500	[thread overview]
Message-ID: <cover.1616194850.git.development@efficientek.com> (raw)

This patch series adds proc entries to show the user some of GRUB's internal
state on devices, loopback devices, and luks devices. This can be valuable
when debugging grub, either as a developer, or as a user trying to determine
why their config is not working as expected. Some of the same info can be
gotten from the "ls" command with no arguments, however the proc entry is a
lot less verbose, which is helpful when output is more than one screen's
worth of data.

Patch #1: Add (proc)/loopbacks which shows all configured loopback devices
Patch #2-4: Improve the existing luks proc entry by adding LUKS2 support,
  add field names for the cryptodisk names and source device names, and
  adding a header to make the file more easily comprehensible
Patch #5: Add (proc)/devices to show all devices grub knows about.

Glenn

Glenn Washburn (5):
  loopback: Add procfs entry 'loopbacks' to output configured loopback
    devices
  luks2: Add support for LUKS2 in (proc)/luks_script
  cryptodisk: Add crypto disk name and source device names to
    (proc)/luks_script
  cryptodisk: Add header line of field names to (procfs)/luks_script
  procfs: Add (proc)/devices to get info on grub devices.

 grub-core/disk/cryptodisk.c | 41 +++++++++++++----
 grub-core/disk/loopback.c   | 57 +++++++++++++++++++++++
 grub-core/fs/proc.c         | 91 +++++++++++++++++++++++++++++++++++++
 3 files changed, 179 insertions(+), 10 deletions(-)

-- 
2.27.0



             reply	other threads:[~2021-03-19 23:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-19 23:17 Glenn Washburn [this message]
2021-03-19 23:17 ` [PROCFS 1/5] loopback: Add procfs entry 'loopbacks' to output configured loopback devices Glenn Washburn
2021-03-19 23:17 ` [PROCFS 2/5] luks2: Add support for LUKS2 in (proc)/luks_script Glenn Washburn
2021-03-19 23:17 ` [PROCFS 3/5] cryptodisk: Add crypto disk name and source device names to (proc)/luks_script Glenn Washburn
2021-03-19 23:17 ` [PROCFS 4/5] cryptodisk: Add header line of field names to (procfs)/luks_script Glenn Washburn
2021-03-19 23:17 ` [PROCFS 5/5] procfs: Add (proc)/devices to get info on grub devices Glenn Washburn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1616194850.git.development@efficientek.com \
    --to=development@efficientek.com \
    --cc=daniel.kiper@oracle.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.