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, char **argv)
34 fprintf(stderr, "Usage: %s device\n", argv[0]);
38 retval = ext2fs_get_device_sectsize(argv[1], §size);
40 com_err(argv[0], retval,
41 "while calling ext2fs_get_device_sectsize");
44 printf("Device %s has a hardware sector size of %d.\n",