Whamcloud - gitweb
common.sh: move all of the portals setup from setup() to setup_portals().
[fs/lustre-release.git] / lustre / tests / truncate.c
index 66634dd..70fbbc7 100644 (file)
@@ -6,16 +6,17 @@
 
 int main(int argc, char **argv)
 {
-       unsigned long off;
+       unsigned long long off;
        int err;
 
        if (argc != 3) { 
-               printf("usage %s file offset\n", argv[0]); 
+               printf("usage %s file offset (kilobytes)\n", argv[0]); 
                return 1;
        }
 
        off = strtoul(argv[2], NULL, 0);
-       err = truncate(argv[1], off); 
+       off *= 1024;
+       err = truncate64(argv[1], off); 
        if ( err ) { 
                printf("Error truncating %s: %s\n", argv[1], strerror(errno));
        }