linux/tools
Uday Shankar 1d019736b6 selftests: ublk: common: fix _get_disk_dev_t for pre-9.0 coreutils
Some distributions, such as centos stream 9, still have a version of
coreutils which does not yet support the %Hr and %Lr formats for stat(1)
[1, 2]. Running ublk selftests on these distributions results in the
following error in tests that use the _get_disk_dev_t helper:

line 23: ?r: syntax error: operand expected (error token is "?r")

To better accommodate older distributions, rewrite _get_disk_dev_t to
use the much older %t and %T formats for stat instead.

[1] https://github.com/coreutils/coreutils/blob/v9.0/NEWS#L114
[2] https://pkgs.org/download/coreutils

Signed-off-by: Uday Shankar <ushankar@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250423-ublk_selftests-v1-2-7d060e260e76@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2025-04-24 06:30:54 -06:00
..
accounting getdelays: fix error format characters 2025-02-17 22:40:02 -08:00
arch perf tools changes for v6.15 2025-03-31 08:52:33 -07:00
bootconfig tools/bootconfig: Fix the wrong format specifier 2025-01-28 23:27:01 +09:00
bpf bpf-next-6.15 2025-03-30 12:43:03 -07:00
build perf tools changes for v6.15 2025-03-31 08:52:33 -07:00
certs
cgroup
counter tools/counter: add direction change event to watcher 2025-02-05 13:22:04 +09:00
crypto
debugging taint: Add TAINT_FWCTL 2025-03-06 15:13:13 -04:00
firewire
firmware
gpio
hv
iio iio: introduce the FAULT event type 2025-02-08 15:16:29 +00:00
include - The 7 patch series "powerpc/crash: use generic crashkernel 2025-04-01 10:06:52 -07:00
kvm/kvm_stat
laptop
leds
lib - The 7 patch series "powerpc/crash: use generic crashkernel 2025-04-01 10:06:52 -07:00
memory-model tools/memory-model: glossary.txt: Fix indents 2025-02-25 10:22:34 -08:00
mm tools/mm: fix build warnings with musl-libc 2025-02-17 22:40:02 -08:00
net netlink: specs: wireless: add a spec for nl80211 2025-02-12 19:32:26 -08:00
objtool These are objtool fixes and updates by Josh Poimboeuf, centered 2025-04-02 10:30:10 -07:00
pcmcia
perf perf tools changes for v6.15 2025-03-31 08:52:33 -07:00
power printk changes for 6.15 2025-03-27 19:22:24 -07:00
rcu
sched_ext tools/sched_ext: Sync with scx repo 2025-04-02 09:08:33 -10:00
scripts tracing tooling updates for 6.15: 2025-03-27 17:03:01 -07:00
sound ASoC: dapm-graph: set fill colour of turned on nodes 2025-02-24 18:35:54 +00:00
spi
testing selftests: ublk: common: fix _get_disk_dev_t for pre-9.0 coreutils 2025-04-24 06:30:54 -06:00
thermal tools: Remove redundant quiet setup 2025-02-18 16:27:43 -03:00
time
tracing tracing tooling updates for 6.15: 2025-03-27 17:03:01 -07:00
usb
verification tracing tooling updates for 6.15: 2025-03-27 17:03:01 -07:00
virtio tools: virtio/linux/module.h add MODULE_DESCRIPTION() define. 2025-02-25 07:10:45 -05:00
wmi
workqueue
writeback
Makefile tools/Makefile: Remove pci target 2025-03-08 14:35:32 +00:00