[PATCH blktests] common/nvme: do not truncate FULL file at nvme disconnect
Shin'ichiro Kawasaki
shinichiro.kawasaki at wdc.com
Thu Sep 3 05:57:32 PDT 2026
On Aug 28, 2026 / 17:27, Shin'ichiro Kawasaki wrote:
> Commit df7cf50409ce ("nvme: rely on nvme-cli status code") reworked the
> nvme-cli command error handling. As part of that change, the 'nvme
> disconnect' commands in _nvme_disconnect_ctrl() and
> _nvme_disconnect_subsys() were made to record their output in the FULL
> file using the '&>' redirect operator. However, '&>' truncates the file
> and so overwrites its existing content, wiping out the logs that each
> test case had already left in the FULL file.
>
> Use the '&>>' operator instead, which appends the command output while
> preserving the existing FULL file content.
>
> Fixes: df7cf50409ce ("nvme: rely on nvme-cli status code")
> Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki at wdc.com>
FYI, I applied the patch.
More information about the Linux-nvme
mailing list