Date: Mon, 11 Jul 2005 13:06:59 +0400 From: Igor Robul <igorr@speechpro.com> To: "Alexandre D." <alexandre.delay@free.fr> Cc: freebsd-questions@freebsd.org Subject: Re: Per disk quota Message-ID: <42D236B3.6080508@speechpro.com> In-Reply-To: <MAEBLPAGHGPMOKCBICBNKELLCGAA.alexandre.delay@free.fr> References: <MAEBLPAGHGPMOKCBICBNKELLCGAA.alexandre.delay@free.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42D236B3.6080508>