X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Ftests%2Fmultiop.c;h=1152dc0df4c0bdff434d9eec15115e251e990283;hb=f112981702e67c182bd2467b10cefd44bc121f2e;hp=8772224311891e18e72c76aecff42d651278b28e;hpb=70e80ade90af09300396706b8910e196a7928520;p=fs%2Flustre-release.git diff --git a/lustre/tests/multiop.c b/lustre/tests/multiop.c index 8772224..1152dc0 100755 --- a/lustre/tests/multiop.c +++ b/lustre/tests/multiop.c @@ -16,8 +16,8 @@ * in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU General Public License - * version 2 along with this program; If not, see [sun.com URL with a - * copy of GPLv2]. + * version 2 along with this program; If not, see + * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf * * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, * CA 95054 USA or visit www.sun.com if you need additional information or @@ -47,6 +47,7 @@ #include #include #include +#include #include #define T1 "write data before unlink\n" @@ -56,7 +57,7 @@ char *buf, *buf_align; int bufsize = 0; #define ALIGN 65535 -char usage[] = +char usage[] = "Usage: %s filename command-sequence\n" " command-sequence items:\n" " c close\n" @@ -78,6 +79,7 @@ char usage[] = " T[num] ftruncate [optional position, default 0]\n" " u unlink\n" " U munmap\n" +" v verbose\n" " w[num] write optional length\n" " W write entire mmap-ed region\n" " y fsync\n" @@ -326,6 +328,8 @@ int main(int argc, char **argv) fprintf(stderr, "short read: %u/%u\n", rc, len); len -= rc; + if (verbose >= 2) + printf("%.*s\n", rc, buf_align); } break; case 'R': @@ -377,7 +381,7 @@ int main(int argc, char **argv) } break; case 'v': - verbose = 1; + verbose++; break; case 'w': len = atoi(commands+1);