4 * Get version number for an inode on an ext2 file system.
13 #include <sys/fs/ext2fs.h>
16 main(int argc, char **argv)
22 fprintf(stderr, "usage: getiversion file ...\n");
26 for (i = 1; i < argc; i++) {
27 if ((fd = open(argv[i], O_RDONLY)) < 0
28 || ioctl(fd, EXT2_IOC_GETVERSION, &vers) < 0) {
32 printf("%-20s %d\n", argv[i], vers);