Commit 6b00475
common/xfs: fix run_xfs_io_xstat for max atomics
When trying to find the value for max atomic write size, a user of
run_xfs_io_xstat calls something like the following:
statx_atomic_min=$(run_xfs_io_xstat /dev/"$md_dev" "stat.atomic_write_unit_max")
And run_xfs_io_xstat will grep for "stat.atomic_write_unit_max" in the raw
statx output. However, since new field "stat.atomic_write_unit_max_opt" was
added for statx, the grep returns 2x values (which is wrong).
Fix by changing the grep to cover the full field name.
This fixes md/002, nvme/059, and scsi/009.
Signed-off-by: John Garry <[email protected]>
Signed-off-by: Shin'ichiro Kawasaki <[email protected]>1 parent b4469a5 commit 6b00475
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
0 commit comments