fsstress: allow afsync on directories too
authorFilipe Manana <fdmanana@suse.com>
Thu, 4 Apr 2019 16:30:06 +0000 (17:30 +0100)
committerEryu Guan <guaneryu@gmail.com>
Fri, 19 Apr 2019 07:25:09 +0000 (15:25 +0800)
commite1a9b1db892e1c559223752735e21575f2e08e9f
tree17ceaed4a0880bfba4c2ad87910c6b3ef81c1106
parent2c492c4d166b7ceb8bbfcf64c979324cecd66f3c
fsstress: allow afsync on directories too

Currently the afsync function can only be performed against regular files.
Allow it to operate on directories too, to increase test coverage and
allow for chances of finding bugs in a filesystem's implementation of
fsync against directories.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
ltp/fsstress.c