From patchwork Wed May 30 14:58:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "jeff.liu" X-Patchwork-Id: 161988 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id DAF16B6FC5 for ; Thu, 31 May 2012 01:00:57 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751184Ab2E3PAx (ORCPT ); Wed, 30 May 2012 11:00:53 -0400 Received: from acsinet15.oracle.com ([141.146.126.227]:24782 "EHLO acsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750739Ab2E3PAw (ORCPT ); Wed, 30 May 2012 11:00:52 -0400 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q4UF0YE5005156 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 30 May 2012 15:00:35 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q4UF0YRI029302 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 May 2012 15:00:34 GMT Received: from abhmt105.oracle.com (abhmt105.oracle.com [141.146.116.57]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q4UF0YL6009742; Wed, 30 May 2012 10:00:34 -0500 Received: from localhost.localdomain (/123.119.107.100) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 30 May 2012 08:00:33 -0700 From: jeff.liu@oracle.com To: containers@lists.linux-foundation.org Cc: cgroups@vger.kernel.org, jack@suse.cz, glommer@parallels.com, daniel.lezcano@free.fr, tytso@mit.edu, bpm@sgi.com, chris.mason@oracle.com, hch@infradead.org, christopher.jones@oracle.com, david@fromorbit.com, tinguely@sgi.com, tm@tao.ma, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, Jie Liu Subject: [PATCH 01/12] container quota: add kernel configuration for container quota. Date: Wed, 30 May 2012 22:58:55 +0800 Message-Id: <1338389946-13711-2-git-send-email-jeff.liu@oracle.com> X-Mailer: git-send-email 1.7.9 In-Reply-To: <1338389946-13711-1-git-send-email-jeff.liu@oracle.com> References: <1338389946-13711-1-git-send-email-jeff.liu@oracle.com> X-Source-IP: acsinet21.oracle.com [141.146.126.237] Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Add kernel configuration for container quota. Signed-off-by: Jie Liu --- 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