X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib%2Fvirtual.h;h=49784be16b89a77e3fe86923a704ee593bac94c3;hb=291f3df8996c5229b986f17fc7305f08f4d73b0a;hp=66add485a31fa48cb6934d100c0e3ca4a38aef4b;hpb=baf517f8c35f7b0eea57205866c0f6018db916a2;p=util-vserver.git diff --git a/util-vserver/lib/virtual.h b/util-vserver/lib/virtual.h index 66add48..49784be 100644 --- a/util-vserver/lib/virtual.h +++ b/util-vserver/lib/virtual.h @@ -141,21 +141,20 @@ struct vcmd_ctx_rlimit_mask_v0 { /* scheduler vserver commands */ -#define VCMD_get_sched VC_CMD(SCHED, 1, 1) -#define VCMD_set_sched VC_CMD(SCHED, 2, 1) +#define VCMD_set_sched VC_CMD(SCHED, 1, 1) +/* Options - these ones enable or disable the CTX_SCHED flag */ +#define TBF_SCHED_ENABLE 0x0001 +#define TBF_SCHED_DISABLE 0x0002 /* Structure for context's TBF scheduling priorities */ - -struct vcmd_tbf_sched_v1 { - uint32_t fill_level; - uint32_t fill_rate; - uint32_t period; - uint32_t bucket_size; +struct vcmd_set_sched_v1 { + int32_t fill_rate; + int32_t period; + int32_t fill_level; + int32_t bucket_size; }; -#define TBFS_PERIOD_AUTO (0ULL) -#define TBFS_KEEP_VALUE (~0ULL) /* inode vserver commands */ @@ -180,7 +179,7 @@ struct vcmd_ctx_iattr_v1 { #define IATTR_BARRIER 0x00010000 #define IATTR_IUNLINK 0x00020000 - +#define IATTR_IMMUTABLE 0x00040000 /* vinfo commands */ @@ -230,7 +229,7 @@ struct vcmd_ctx_flags_v0 { #define VCMD_get_ccaps VC_CMD(FLAGS, 3, 0) #define VCMD_set_ccaps VC_CMD(FLAGS, 4, 0) struct vcmd_ctx_caps_v0 { - uint64_t scaps; + uint64_t bcaps; uint64_t ccaps; uint64_t cmask; };