ext4: use mkfs.ext4 -F instead of piping in yes
authorTheodore Ts'o <tytso@mit.edu>
Mon, 29 Sep 2014 02:47:02 +0000 (12:47 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 29 Sep 2014 02:47:02 +0000 (12:47 +1000)
commitc50db10dfb240d60b32a877b57d6aeea59afbe81
treefcf7385926d4016e75527931bf1643f839a29cb5
parent4e2fa4d0db6f4bdf89e91c79c0ab86befb167b7e
ext4: use mkfs.ext4 -F instead of piping in yes

Using "yes | mkfs.ext4 ..." results in the error message results in
the test failing, at least for some versions of e2fsprogs:

    +yes: standard output: Broken pipe
    +yes: write error

It better to use the -F option, which will eliminate the questions.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/ext4/003
tests/ext4/306