diff options
| author | Tom Rini <[email protected]> | 2025-11-18 12:51:22 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-11-18 12:51:22 -0600 |
| commit | b8872deb4450b09586e28550c23d33a71084d94f (patch) | |
| tree | 8dd5e2c78ed30bd1c0983f5e134ac2a77b85ddf0 /doc/usage | |
| parent | abf15eb60c8a87f833f7e75e5e8a51a7eb115e0b (diff) | |
| parent | 30890051ab23a0293f6404c9a49e86f33e45df66 (diff) | |
Merge patch series "'part name' subcommand and some robustification"
Rasmus Villemoes <[email protected]> says:
Implement a "part name" subcommand, mirroring the existing "part
number" subcommand.
In the discussion for v1 of that, it came up that there's a bit of
inconsistency in how much and what one can assume to be initialized in
'struct disk_partition' after a successful call of one of the
get_info* family of functions. Patch 1/2 tries to consolidate
that by making sure all ->get_info invocations go through a common
helper that at least always initializes the string members.
Quentin, I've taken the liberty of including your Acks, as the
incremental diff in patch 1 is quite minor, but do speak up if I
should not have done that.
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'doc/usage')
| -rw-r--r-- | doc/usage/cmd/part.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/usage/cmd/part.rst b/doc/usage/cmd/part.rst index 72f5d8b8de7..299f2ac15c5 100644 --- a/doc/usage/cmd/part.rst +++ b/doc/usage/cmd/part.rst @@ -16,6 +16,7 @@ Synopsis part start <interface> <dev> <part> <varname> part size <interface> <dev> <part> <varname> part number <interface> <dev> <part> <varname> + part name <interface> <dev> <part> <varname> part set <interface> <dev> <part> <type> part type <interface> <dev>:<part> [varname] part types @@ -86,6 +87,18 @@ part must be specified as partition name. varname a variable to store the current partition number value into +The 'part name' command sets an environment variable to the partition name using the partition number, +part must be specified as partition number. + + interface + interface for accessing the block device (mmc, sata, scsi, usb, ....) + dev + device number + part + partition number + varname + a variable to store the current partition name into + The 'part set' command sets the type of a partition. This is useful when autodetection fails or does not do the correct thing: |
