Re: [PATCH] btrfs-progs: mkfs-test: Fix check for truncate command failing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 08, 2020 at 09:37:28AM -0300, Marcos Paulo de Souza wrote:
> From: Marcos Paulo de Souza <mpdesouza@xxxxxxxx>
> 
> Commit 31f477ee ("btrfs-progs: mkfs-tests: skip test if truncate fails
> with EFBIG") tried to detect a failure in truncate command by checking
> the $? expecting it to be an errno, when it actually returns 0 or 1.
> 
> To fix this test just check if the command failed (returned 1) and look
> for the output, skipping the test if the OS cannot create a 6E file.
> 
> Fixes: #241
> 
> Tested-by: Erhard Furtner <erhard_f@xxxxxxxxxxx>
> Signed-off-by: Marcos Paulo de Souza <mpdesouza@xxxxxxxx>

Added to devel, thanks.



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux