Whamcloud - gitweb
fix some bugs of snapfs
[fs/lustre-release.git] / lustre / snapfs / utils / snapctl.h
1 /* snapctl.h */
2 #define DEV_NAME_MAX_LEN 64 
3 struct snap_device {
4         char name[DEV_NAME_MAX_LEN];
5         char mntpt[DEV_NAME_MAX_LEN];
6         unsigned long dev;
7         int fd;
8 };
9 struct snap_mnt {
10         struct snap_device device;
11         struct list_head snap_mnt_list;
12 };
13 struct open_snap_device {
14         struct snap_device device[10];  
15         int count;
16 };
17 extern void init_snap_list(void);
18
19 extern int snap_dev_open(int argc, char **argv);
20 extern int snap_dev_list(int argc, char **argv);
21 extern int snap_snap_add(int argc, char **argv);
22 extern int snap_snap_list(int argc, char **argv);