2 * tst_getsize.c --- this function tests the getsize function
4 * Copyright (C) 1997 by Theodore Ts'o.
7 * This file may be redistributed under the terms of the GNU Public
20 #include <sys/types.h>
28 int main(int argc, const char *argv[])
34 fprintf(stderr, "%s device\n", argv[0]);
37 retval = ext2fs_get_device_size(argv[1], 1024, &blocks);
39 com_err(argv[0], retval, "while getting device size");
42 printf("%s is device has %d blocks.\n", argv[1], blocks);