This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / linux / vserver / inode_cmd.h
1 #ifndef _VX_INODE_CMD_H
2 #define _VX_INODE_CMD_H
3
4 /*  inode vserver commands */
5
6 #define VCMD_get_iattr_v0       VC_CMD(INODE, 1, 0)
7 #define VCMD_set_iattr_v0       VC_CMD(INODE, 2, 0)
8
9 #define VCMD_get_iattr          VC_CMD(INODE, 1, 1)
10 #define VCMD_set_iattr          VC_CMD(INODE, 2, 1)
11
12 struct  vcmd_ctx_iattr_v0 {
13         /* device handle in id */
14         uint64_t ino;
15         uint32_t xid;
16         uint32_t flags;
17         uint32_t mask;
18 };
19
20 struct  vcmd_ctx_iattr_v1 {
21         const char __user *name;
22         uint32_t xid;
23         uint32_t flags;
24         uint32_t mask;
25 };
26
27
28 #ifdef  __KERNEL__
29
30 #include <linux/compiler.h>
31
32 extern int vc_get_iattr_v0(uint32_t, void __user *);
33 extern int vc_set_iattr_v0(uint32_t, void __user *);
34
35 extern int vc_get_iattr(uint32_t, void __user *);
36 extern int vc_set_iattr(uint32_t, void __user *);
37
38 #endif  /* __KERNEL__ */
39 #endif  /* _VX_INODE_CMD_H */