4 * Copyright (C) 2001 Cluster File Systems, Inc.
6 * This code is issued under the GNU General Public License.
7 * See the file COPYING in this distribution
10 #include <linux/obd_class.h>
12 #define OBD_SNAP_MAGIC 0xfffffff3 /* an unlikely block number */
14 #ifndef OBD_SNAP_DEVICENAME
15 #define OBD_SNAP_DEVICENAME "obdsnap"
18 /* ioctls for manipulating snapshots 40 - 60 */
19 #define OBD_SNAP_SETTABLE _IOWR('f', 40, long)
20 #define OBD_SNAP_PRINTTABLE _IOWR('f', 41, long)
21 #define OBD_SNAP_DELETE _IOWR('f', 42, long)
22 #define OBD_SNAP_RESTORE _IOWR('f', 43, long)
24 void snap_use(int table_no, int snap_index) ;
25 void snap_unuse(int table_no, int snap_index) ;
26 int snap_is_used(int table_no, int snap_index) ;
27 int snap_table_attach(int tableno, int snap_index);