]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
findfs: (man) be more accurate in describing non-tags
authorKarel Zak <kzak@redhat.com>
Mon, 8 Apr 2024 08:19:56 +0000 (10:19 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Apr 2024 08:19:56 +0000 (10:19 +0200)
Addresses: https://github.com/util-linux/util-linux/discussions/2914
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/evaluate.c
misc-utils/findfs.8.adoc

index cd2f3a377a59e9b4a664149cbb5a6ab61189facd..26e556c0896654321a6c2cdff8b16f016aef2834 100644 (file)
@@ -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)
index 560a5bada7444074a1fe39c928818f38f97565ab..4ff6a14b824066430be3fb8be31aa653b29f662b 100644 (file)
@@ -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