2 * getversion.c - Get a file version on an ext2 file system
4 * Copyright (C) 1993, 1994 Remy Card <card@masi.ibp.fr>
5 * Laboratoire MASI, Institut Blaise Pascal
6 * Universite Pierre et Marie Curie (Paris VI)
9 * This file may be redistributed under the terms of the GNU Library
10 * General Public License, version 2.
24 #include <sys/ioctl.h>
29 int getversion (int fd, unsigned long * version)
34 r = ioctl (fd, EXT2_IOC_GETVERSION, &ver);
37 #else /* ! HAVE_EXT2_IOCTLS */
41 #endif /* ! HAVE_EXT2_IOCTLS */