2 * fsetversion.c - Set 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)
8 * This file can be redistributed under the terms of the GNU Library General
24 #include <sys/ioctl.h>
28 int fsetversion (const char * name, unsigned long version)
33 fd = open (name, O_RDONLY|O_NONBLOCK);
37 r = ioctl (fd, EXT2_IOC_SETVERSION, &ver);
40 #else /* ! HAVE_EXT2_IOCTLS */
44 #endif /* ! HAVE_EXT2_IOCTLS */