]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
generic/077: ignore errors occurred while accessing the filler files
authorLuis Henriques (SUSE) <luis.henriques@linux.dev>
Wed, 5 Jun 2024 16:32:10 +0000 (17:32 +0100)
committerZorro Lang <zlang@kernel.org>
Fri, 7 Jun 2024 10:19:41 +0000 (18:19 +0800)
commit84de2df901bb734f95407a4bb92f3cb1a2cafd37
tree6ca6f7815e9f4adcc13eb56e9b8c10aae6e8a0c6
parent2da0c88e3481c97d04a6d0ec5eb74a93b5c18884
generic/077: ignore errors occurred while accessing the filler files

When looking for data to fill in the filesystem, errors accessing files
may occur.  This will cause the test to fail as it'll show in the output
lines such as:

    du: cannot read directory '/usr/etc/sudoers.d': Permission denied

Ignoring these errors should be safe, so simply redirecting the stderr of
'du' to $seqres.full fixes it.  Unfortunately, this exposed a different
issue, which was the truncation of the $seqres.full file while copying files
into the filesystem.  This patch also fixes that.

Signed-off-by: "Luis Henriques (SUSE)" <luis.henriques@linux.dev>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/077