From owner-freebsd-questions@FreeBSD.ORG Mon Jul 11 11:43:53 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8513D16A41C for ; Mon, 11 Jul 2005 11:43:53 +0000 (GMT) (envelope-from alexandre.delay@free.fr) Received: from postfix3-1.free.fr (postfix3-1.free.fr [213.228.0.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F6C043D46 for ; Mon, 11 Jul 2005 11:43:53 +0000 (GMT) (envelope-from alexandre.delay@free.fr) Received: from imp5-q.free.fr (imp5-q.free.fr [212.27.42.5]) by postfix3-1.free.fr (Postfix) with ESMTP id B2DAE17348E; Mon, 11 Jul 2005 13:43:51 +0200 (CEST) Received: by imp5-q.free.fr (Postfix, from userid 33) id 9DB1D1DA98; Mon, 11 Jul 2005 13:38:49 +0200 (MEST) Received: from proxy8.sncf.fr (proxy8.sncf.fr [171.16.4.10]) by imp5-q.free.fr (IMP) with HTTP for ; Mon, 11 Jul 2005 13:38:49 +0200 Message-ID: <1121081929.42d25a4981bb7@imp5-q.free.fr> Date: Mon, 11 Jul 2005 13:38:49 +0200 From: alexandre.delay@free.fr To: Igor Robul References: <42D236B3.6080508@speechpro.com> In-Reply-To: <42D236B3.6080508@speechpro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 171.16.4.10 Cc: freebsd-questions@freebsd.org Subject: Re: Per disk quota X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2005 11:43:53 -0000 > Alexandre D. wrote: > > >Hi guys, > > > >I'm searching for a way to set a limit per directory. > >for example: > > > >directory limit > >/web/dir1 1Go > >/web/dir2 10Mo > >/web/dir3 100Mo > >/web/dir4 175Mo > > > >This system would be used by only one program (image grabber) > > > >Do you have any idea? > > > > > use file backed md(4) devices. And then mount these devices. > Example (newfs is nessesary only first time): > > # dd if=/dev/zero of=dir2md bs=1m count=10 > 10+0 records in > 10+0 records out > > # mdconfig -a -t vnode -f dir2md > md0 > > #newfs /dev/md0 > /dev/md0: 10.0MB (20480 sectors) block size 16384, fragment size 2048 > using 4 cylinder groups of 2.52MB, 161 blks, 384 inodes. > super-block backups (for fsck -b #) at: > 160, 5312, 10464, 15616 > > #mount /dev/md0 /web/dir2 > Nice idea! I didn't think about it! I have a wonder about that. Does this procedure include a delay in file access time?