vshost-util-vserver

Build script and sources for util-vserver.
git clone https://ccx.te2000.cz/git/vshost-util-vserver
Log | Files | Refs

dlimit_cmd.h (804B)


      1 #ifndef _VX_DLIMIT_CMD_H
      2 #define _VX_DLIMIT_CMD_H
      3 
      4 
      5 /*  dlimit vserver commands */
      6 
      7 #define VCMD_add_dlimit		VC_CMD(DLIMIT, 1, 0)
      8 #define VCMD_rem_dlimit		VC_CMD(DLIMIT, 2, 0)
      9 
     10 #define VCMD_set_dlimit		VC_CMD(DLIMIT, 5, 0)
     11 #define VCMD_get_dlimit		VC_CMD(DLIMIT, 6, 0)
     12 
     13 struct	vcmd_ctx_dlimit_base_v0 {
     14 	const char *name;
     15 	uint32_t flags;
     16 };
     17 
     18 struct	vcmd_ctx_dlimit_v0 {
     19 	const char *name;
     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 % */
     25 	uint32_t flags;
     26 };
     27 
     28 #define CDLIM_UNSET		((uint32_t)0UL)
     29 #define CDLIM_INFINITY		((uint32_t)~0UL)
     30 #define CDLIM_KEEP		((uint32_t)~1UL)
     31 
     32 #endif	/* _VX_DLIMIT_CMD_H */