xfstests: fsx: do not print fallocate support warning in quiet mode
[xfstests-dev.git] / ltp / fsx.c
index fe072d3a0c56cad1712d5e13ec717a7179cee4fb..0eebc70a368c2358001cd2e9473fdc823fe5bee9 100644 (file)
--- a/ltp/fsx.c
+++ b/ltp/fsx.c
@@ -1424,7 +1424,8 @@ main(int argc, char **argv)
 #ifdef FALLOCATE
        if (!lite && fallocate_calls) {
                if (fallocate(fd, 0, 0, 1) && errno == EOPNOTSUPP) {
-                       warn("main: filesystem does not support fallocate, disabling");
+                       if(!quiet)
+                               prt("fsx: main: filesystem does not support fallocate, disabling\n");
                        fallocate_calls = 0;
                } else
                        ftruncate(fd, 0);