1 #ifndef _VX_DLIMIT_CMD_H
2 #define _VX_DLIMIT_CMD_H
5 /* dlimit vserver commands */
7 #define VCMD_add_dlimit VC_CMD(DLIMIT, 1, 0)
8 #define VCMD_rem_dlimit VC_CMD(DLIMIT, 2, 0)
10 #define VCMD_set_dlimit VC_CMD(DLIMIT, 5, 0)
11 #define VCMD_get_dlimit VC_CMD(DLIMIT, 6, 0)
13 struct vcmd_ctx_dlimit_base_v0 {
18 struct vcmd_ctx_dlimit_v0 {
20 uint32_t space_used; /* used space in kbytes */
21 uint32_t space_total; /* maximum space in kbytes */
22 uint32_t inodes_used; /* used inodes */
23 uint32_t inodes_total; /* maximum inodes */
24 uint32_t reserved; /* reserved for root in % */
28 #define CDLIM_UNSET ((uint32_t)0UL)
29 #define CDLIM_INFINITY ((uint32_t)~0UL)
30 #define CDLIM_KEEP ((uint32_t)~1UL)
32 #endif /* _VX_DLIMIT_CMD_H */