updated
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 21 Jan 2004 01:24:33 +0000 (01:24 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 21 Jan 2004 01:24:33 +0000 (01:24 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@656 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/lib/virtual.h

index a89388f..f83d18f 100644 (file)
@@ -51,6 +51,9 @@
        
 #define VC_CAT_PROCTRL         12
 
+#define VC_CAT_SCHED           14
+#define VC_CAT_INODE           38
+
 #define VC_CAT_RLIMIT          60
 
 #define VC_CAT_SYSTEST         61
@@ -142,4 +145,29 @@ struct  vcmd_tbf_sched_v1 {
 #define TBFS_KEEP_VALUE                (~0ULL)
 
 
+/*  inode vserver commands */
+
+#define VCMD_get_iattr         VC_CMD(INODE, 1, 0)
+#define VCMD_set_iattr         VC_CMD(INODE, 2, 0)
+
+struct  vcmd_ctx_iattr_v0 {
+       uint64_t dev;
+       uint64_t ino;
+       uint32_t xid;
+       uint32_t flags;
+       uint32_t mask;
+};
+
+#define IATTR_XID      0x01000000
+
+#define IATTR_ADMIN    0x00000001
+#define IATTR_WATCH    0x00000002
+#define IATTR_HIDE     0x00000004
+
+#define IATTR_BARRIER  0x00010000
+#define        IATTR_IUNLINK   0x00020000
+
+
+
+
 #endif /* _LINUX_VIRTUAL_H */