diff options
author | Neil Brown <neilb@suse.de> | 2007-03-16 15:56:14 +1100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-03-16 15:56:14 +1100 |
commit | f4a94f9c70e279aa72a2d6aa6874c8406f68987c (patch) | |
tree | 1fd2655a33ee4acd1910896797f0d92910e3bb3f /tools/getiversion/getiversion.c | |
parent | 6108478a99884f38c8afd1d1f2a0de1580113bd2 (diff) | |
download | nfs-utils-f4a94f9c70e279aa72a2d6aa6874c8406f68987c.tar.gz nfs-utils-f4a94f9c70e279aa72a2d6aa6874c8406f68987c.tar.xz nfs-utils-f4a94f9c70e279aa72a2d6aa6874c8406f68987c.zip |
Remove tools/getiversion
We don't need it (any more).
Also add AM_PROG_CC_C_O as we seem to need it..
Diffstat (limited to 'tools/getiversion/getiversion.c')
-rw-r--r-- | tools/getiversion/getiversion.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/tools/getiversion/getiversion.c b/tools/getiversion/getiversion.c deleted file mode 100644 index fdaf102..0000000 --- a/tools/getiversion/getiversion.c +++ /dev/null @@ -1,48 +0,0 @@ -/* - * getiversion - * - * Get version number for an inode on an ext2 file system. - */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#ifdef HAVE_SYS_IOCTL_H -#include <sys/ioctl.h> -#endif - -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - -#ifdef HAVE_FCNTL_H -#include <fcntl.h> -#endif - -#include <stdio.h> -#include <sys/fs/ext2fs.h> - -int -main(int argc, char **argv) -{ - int i, fd; - u_int32_t vers; - - if (argc <= 1) { - fprintf(stderr, "usage: getiversion file ...\n"); - return 1; - } - - for (i = 1; i < argc; i++) { - if ((fd = open(argv[i], O_RDONLY)) < 0 - || ioctl(fd, EXT2_IOC_GETVERSION, &vers) < 0) { - perror(argv[i]); - continue; - } else { - printf("%-20s %d\n", argv[i], vers); - } - close(fd); - } - return 0; -} |