X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Finode_cmd.h;h=39a825acc5194fb8bc2b6230b819e659782ba275;hb=b1dbdec10c0cadc46a58889d738c8ab1c92a07e9;hp=f14c899ffd86c215dfd9fabd0bb2d82602a19f10;hpb=9c78378bebc1a9f3d400f422df8ede9efea57dea;p=util-vserver.git diff --git a/kernel/inode_cmd.h b/kernel/inode_cmd.h index f14c899..39a825a 100644 --- a/kernel/inode_cmd.h +++ b/kernel/inode_cmd.h @@ -1,57 +1,27 @@ #ifndef _VX_INODE_CMD_H #define _VX_INODE_CMD_H -/* inode vserver commands */ -#define VCMD_get_iattr_v0 VC_CMD(INODE, 1, 0) -#define VCMD_set_iattr_v0 VC_CMD(INODE, 2, 0) +/* inode vserver commands */ #define VCMD_get_iattr VC_CMD(INODE, 1, 1) #define VCMD_set_iattr VC_CMD(INODE, 2, 1) -struct vcmd_ctx_iattr_v0 { - /* device handle in id */ - uint64_t ino; - uint32_t xid; - uint32_t flags; - uint32_t mask; -}; +#define VCMD_fget_iattr VC_CMD(INODE, 3, 0) +#define VCMD_fset_iattr VC_CMD(INODE, 4, 0) struct vcmd_ctx_iattr_v1 { - const char __user *name; + const char *name; uint32_t xid; uint32_t flags; uint32_t mask; }; - -#ifdef __KERNEL__ - -#ifdef CONFIG_COMPAT - -struct vcmd_ctx_iattr_v1_x32 { - compat_uptr_t name_ptr; +struct vcmd_ctx_fiattr_v0 { uint32_t xid; uint32_t flags; uint32_t mask; }; -#endif /* CONFIG_COMPAT */ - -#include - -extern int vc_get_iattr_v0(uint32_t, void __user *); -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 */