Re: Per disk quota

2005-07-11 Thread Igor Robul

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 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Per disk quota

2005-07-11 Thread alexandre . delay
 Alexandre D. wrote:

 Hi guys,
 
 I'm searching for a way to set a limit per directory.
 for example:
 
 directorylimit
 /web/dir11Go
 /web/dir210Mo
 /web/dir3100Mo
 /web/dir4175Mo
 
 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?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Per disk quota

2005-07-11 Thread Igor Robul

[EMAIL PROTECTED] wrote:


Nice idea! I didn't think about it!

I have a wonder about that. Does this procedure include a delay in file access
time?
 

I cant give you exact numbers, but I think that for _one_ application 
you'll not get big performance reduction.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Per disk quota

2005-07-10 Thread Alexandre D.
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?

cheers

Alex
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]