start the vserver with the '--rescue' option and execute operations
[util-vserver.git] / util-vserver / kernel / inode_cmd.h
index 5733aa6..f14c899 100644 (file)
@@ -27,13 +27,17 @@ struct      vcmd_ctx_iattr_v1 {
 
 #ifdef __KERNEL__
 
+#ifdef CONFIG_COMPAT
+
 struct vcmd_ctx_iattr_v1_x32 {
-       uint32_t __user name;
+       compat_uptr_t name_ptr;
        uint32_t xid;
        uint32_t flags;
        uint32_t mask;
 };
 
+#endif /* CONFIG_COMPAT */
+
 #include <linux/compiler.h>
 
 extern int vc_get_iattr_v0(uint32_t, void __user *);
@@ -42,5 +46,12 @@ extern int vc_set_iattr_v0(uint32_t, void __user *);
 extern int vc_get_iattr(uint32_t, void __user *);
 extern int vc_set_iattr(uint32_t, void __user *);
 
+#ifdef CONFIG_COMPAT
+
+extern int vc_get_iattr_x32(uint32_t, void __user *);
+extern int vc_set_iattr_x32(uint32_t, void __user *);
+
+#endif /* CONFIG_COMPAT */
+
 #endif /* __KERNEL__ */
 #endif /* _VX_INODE_CMD_H */