2012-05-30 14:58:55

by Jeff Liu

[permalink] [raw]
Subject: [PATCH 01/12] container quota: add kernel configuration for container quota.

Add kernel configuration for container quota.

Signed-off-by: Jie Liu <[email protected]>
---
fs/quota/Kconfig | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/fs/quota/Kconfig b/fs/quota/Kconfig
index 880fd98..2dd3e83 100644
--- a/fs/quota/Kconfig
+++ b/fs/quota/Kconfig
@@ -16,6 +16,15 @@ config QUOTA
with the quota tools. Probably the quota support is only useful for
multi user systems. If unsure, say N.

+config NS_QUOTA
+ bool "Mount namespace quota support"
+ depends on QUOTA
+ default n
+ help
+ If you say Y here, you will be able to set per container user limits
+ for disk usage (also called disk quotas). Currently, it works for the
+ ext4 file system only for demonstration purpose.
+
config QUOTA_NETLINK_INTERFACE
bool "Report quota messages through netlink interface"
depends on QUOTACTL && NET
--
1.7.9


2012-05-31 09:00:08

by Glauber Costa

[permalink] [raw]
Subject: Re: [PATCH 01/12] container quota: add kernel configuration for container quota.

On 05/30/2012 06:58 PM, [email protected] wrote:
> Add kernel configuration for container quota.
>
> Signed-off-by: Jie Liu<[email protected]>
> ---
> fs/quota/Kconfig | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/fs/quota/Kconfig b/fs/quota/Kconfig
> index 880fd98..2dd3e83 100644
> --- a/fs/quota/Kconfig
> +++ b/fs/quota/Kconfig
> @@ -16,6 +16,15 @@ config QUOTA
> with the quota tools. Probably the quota support is only useful for
> multi user systems. If unsure, say N.
>
> +config NS_QUOTA
> + bool "Mount namespace quota support"
> + depends on QUOTA
> + default n
> + help
> + If you say Y here, you will be able to set per container user limits
> + for disk usage (also called disk quotas). Currently, it works for the
> + ext4 file system only for demonstration purpose.
> +

That should depend on mount namespaces as well.

2012-05-31 09:01:32

by Glauber Costa

[permalink] [raw]
Subject: Re: [PATCH 01/12] container quota: add kernel configuration for container quota.

On 05/31/2012 01:00 PM, Glauber Costa wrote:
> On 05/30/2012 06:58 PM, [email protected] wrote:
>> Add kernel configuration for container quota.
>>
>> Signed-off-by: Jie Liu<[email protected]>
>> ---
>> fs/quota/Kconfig | 9 +++++++++
>> 1 files changed, 9 insertions(+), 0 deletions(-)
>>
>> diff --git a/fs/quota/Kconfig b/fs/quota/Kconfig
>> index 880fd98..2dd3e83 100644
>> --- a/fs/quota/Kconfig
>> +++ b/fs/quota/Kconfig
>> @@ -16,6 +16,15 @@ config QUOTA
>> with the quota tools. Probably the quota support is only useful for
>> multi user systems. If unsure, say N.
>>
>> +config NS_QUOTA
>> + bool "Mount namespace quota support"
>> + depends on QUOTA
>> + default n
>> + help
>> + If you say Y here, you will be able to set per container user limits
>> + for disk usage (also called disk quotas). Currently, it works for the
>> + ext4 file system only for demonstration purpose.
>> +
>
> That should depend on mount namespaces as well.
>

Which it already does, since there seems to be no switch for it.
duh