diff options
author | Uday Shankar <ushankar@purestorage.com> | 2025-04-23 15:29:03 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-04-24 06:30:54 -0600 |
commit | 1d019736b6f812bebf3ef89d6e887d06e2a822fc (patch) | |
tree | a8e91865605d1ed4c59e5a213c526a1367e5fc93 /rust/helpers/helpers.c | |
parent | 6c9c56d94ea98755e52fae7970627f4ff1ca0f5c (diff) | |
download | linux-1d019736b6f812bebf3ef89d6e887d06e2a822fc.tar.gz linux-1d019736b6f812bebf3ef89d6e887d06e2a822fc.tar.bz2 linux-1d019736b6f812bebf3ef89d6e887d06e2a822fc.zip |
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>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions