From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 29 19:22:41 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C255837B401 for ; Sun, 29 Jun 2003 19:22:41 -0700 (PDT) Received: from mail.econolodgetulsa.com (mail.econolodgetulsa.com [198.78.66.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 636E043FF5 for ; Sun, 29 Jun 2003 19:22:41 -0700 (PDT) (envelope-from user@mail.econolodgetulsa.com) Received: from mail (mail [198.78.66.163])h5U2MgnW011929 for ; Sun, 29 Jun 2003 19:22:42 -0700 (PDT) (envelope-from user@mail.econolodgetulsa.com) Date: Sun, 29 Jun 2003 19:22:42 -0700 (PDT) From: Josh Brooks To: freebsd-hackers@freebsd.org Message-ID: <20030629191542.F57224-100000@mail.econolodgetulsa.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: per-directory quotas possible on 5.x ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2003 02:22:42 -0000 Normally, quotas work on a per-user, per-filesystem basis - so if a user has a home directory and other processes _not owned by that user_ are placing files and using up space into that directory, it will not count toward the quota (unless they get chowned/chgrpd to that user/group). Is there any way to enforce a quota on a directory, regardless of what ownership or group ownership the files and dirs inside the directory - that is to say, take directory X, located at an arbitrary spot on the system, I want it to grow no larger than size Y. I know this can be done by creating a lot of little partitions - maybe even vn-backed parttion-on-file, but that seems like a hack, as they would be hard to resize. I am looking for a way to force a changeable quota on a directory, regardless of what gets put in it, or who owns what gets put in it. Any hacks/asuggestions/comments of any kind are very appreciated.