implemented new iattr interface
[util-vserver.git] / util-vserver / lib / syscall_setiattr-v13.hc
index 6a97412..754a341 100644 (file)
 #include "vserver.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.ino   = ino;
-  attr.xid   = CTX_USER2KERNEL(xid);
-  attr.flags = flags;
-  attr.mask  = mask;
-  return vserver(VCMD_set_iattr, dev, &attr);
+  attr.file_name = filename;
+  attr.xid       = CTX_USER2KERNEL(xid);
+  attr.flags     = flags;
+  attr.mask      = mask;
+  return vserver(VCMD_set_iattr, 0, &attr);
 }