use $(LIBENSCVECTOR) instead of libensc_vector.a
[util-vserver.git] / util-vserver / lib / syscall_setiattr-v13.hc
index 32768e7..bc59643 100644 (file)
 #endif
 
 #include "vserver.h"
-#include "vserver-internal.h"
 
 static inline ALWAYSINLINE int
-vc_set_iattr_v13(dev_t dev, ino_t ino, xid_t xid,  uint32_t flags, uint32_t mask)
+vc_set_iattr_v13(char const *filename, xid_t xid,  uint32_t flags, uint32_t mask)
 {
-  struct vcmd_ctx_iattr_v0     attr;
+  struct vcmd_ctx_iattr_v1     attr;
 
-  attr.dev   = dev;
-  attr.ino   = ino;
-  attr.xid   = xid;
+  attr.name  = filename;
+  attr.xid   = CTX_USER2KERNEL(xid);
   attr.flags = flags;
   attr.mask  = mask;
-  return vserver(VC_CMD(INODE, 1, 0), 0, &attr);
+  return vserver(VCMD_set_iattr, 0, &attr);
 }