diff --git a/components/engine/daemon/graphdriver/projectquota.go b/components/engine/daemon/graphdriver/projectquota.go index 82ee5011c4..e2004b950f 100644 --- a/components/engine/daemon/graphdriver/projectquota.go +++ b/components/engine/daemon/graphdriver/projectquota.go @@ -17,6 +17,8 @@ package graphdriver #include #include #include + +#ifndef FS_XFLAG_PROJINHERIT struct fsxattr { __u32 fsx_xflags; __u32 fsx_extsize; @@ -25,13 +27,26 @@ struct fsxattr { unsigned char fsx_pad[12]; }; #define FS_XFLAG_PROJINHERIT 0x00000200 +#endif +#ifndef FS_IOC_FSGETXATTR #define FS_IOC_FSGETXATTR _IOR ('X', 31, struct fsxattr) +#endif +#ifndef FS_IOC_FSSETXATTR #define FS_IOC_FSSETXATTR _IOW ('X', 32, struct fsxattr) +#endif +#ifndef PRJQUOTA #define PRJQUOTA 2 +#endif +#ifndef XFS_PROJ_QUOTA #define XFS_PROJ_QUOTA 2 +#endif +#ifndef Q_XSETPQLIM #define Q_XSETPQLIM QCMD(Q_XSETQLIM, PRJQUOTA) +#endif +#ifndef Q_XGETPQUOTA #define Q_XGETPQUOTA QCMD(Q_XGETQUOTA, PRJQUOTA) +#endif */ import "C" import (