aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2024-04-08 10:19:56 +0200
committerKarel Zak <kzak@redhat.com>2024-04-08 10:19:56 +0200
commit07aacb371470b5561f13b95e399e5ff77e417b8f (patch)
tree83797ae9749e94d345fc4bc14728ec2c70d85058
parent5d86856a890f9e542e8a6ed01de5f53f10d8e70e (diff)
downloadutil-linux-07aacb371470b5561f13b95e399e5ff77e417b8f.tar.gz
findfs: (man) be more accurate in describing non-tags
Addresses: https://github.com/util-linux/util-linux/discussions/2914 Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--libblkid/src/evaluate.c3
-rw-r--r--misc-utils/findfs.8.adoc2
2 files changed, 4 insertions, 1 deletions
diff --git a/libblkid/src/evaluate.c b/libblkid/src/evaluate.c
index cd2f3a377a..26e556c089 100644
--- a/libblkid/src/evaluate.c
+++ b/libblkid/src/evaluate.c
@@ -224,6 +224,9 @@ static char *evaluate_by_scan(const char *token, const char *value,
* @value: token data (e.g. "foo")
* @cache: pointer to cache (or NULL when you don't want to re-use the cache)
*
+* If the @value is NULL and @token is not in the NAME=value format, then return
+* a copy of the @token.
+ *
* Returns: allocated string with a device name.
*/
char *blkid_evaluate_tag(const char *token, const char *value, blkid_cache *cache)
diff --git a/misc-utils/findfs.8.adoc b/misc-utils/findfs.8.adoc
index 560a5bada7..4ff6a14b82 100644
--- a/misc-utils/findfs.8.adoc
+++ b/misc-utils/findfs.8.adoc
@@ -32,7 +32,7 @@ Specifies partition UUID. This partition identifier is supported for example for
*PARTLABEL*=_<label>_::
Specifies partition label (name). The partition labels are supported for example for GUID Partition Table (GPT) or MAC partition tables.
-If the filesystem or partition is found, the device name will be printed on stdout.
+If the filesystem or partition is found, the device name will be printed on stdout. If the input is not in the format of NAME=value, then the input will be copied to the output without any modification.
The complete overview about filesystems and partitions you can get for example by