Skip to content

Add and improve (proc) entries

Glenn Washburn grub-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5loopback: Add procfs entry 'loopbacks' to output configured loopback devicesgrub-core/disk/loopback.c+57 -00 replies
2/5luks2: Add support for LUKS2 in (proc)/luks_scriptgrub-core/disk/cryptodisk.c+13 -80 replies
3/5cryptodisk: Add crypto disk name and source device names to (proc)/luks_scriptgrub-core/disk/cryptodisk.c+18 -40 replies
4/5cryptodisk: Add header line of field names to (procfs)/luks_scriptgrub-core/disk/cryptodisk.c+4 -20 replies
5/5procfs: Add (proc)/devices to get info on grub devices.grub-core/fs/proc.c+91 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PROCFS 0/5] Add and improve (proc) entries

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(-)
Signature · 1 line
2.27.0