PDA

View Full Version : Exclude dir from BQUOTA like in ioTrial


Coffee
02-13-2004, 02:57 AM
any way of excluding certain sections in quota?

greetz

bounty
02-13-2004, 12:21 PM
Originally posted by Coffee
any way of excluding certain sections in quota?

greetz

eheh are you kidding ? ;)

Coffee
02-21-2004, 03:26 PM
uh no, i wanna exclude the request dir, but dunno how to do it

greetz

alturismo
02-22-2004, 03:34 AM
if you want to exclude a section, u have to make sep. sections

in ioFTPD itself (.ini),

so section 0 would be your regular sections

SEC1 = 0 /SEC1/*
SEC2 = 0 /SEC2/*
SEC3 = 0 /SEC3/*
REQUEST = 1 /REQUEST/*
DEFAULT = 0 *

this way now /REQUEST is a sep section (ratio, etc,..)

now in init.itcl

set bquota(SECTIONS) "0:<whatever.name>:<amount>"

will only count quota for section 0, so section 1 /REQUEST

will be ignored for quota

Coffee
02-23-2004, 03:27 AM
k, not really what i'm looking for, so hope that bounty can do an update to just exclude the request folder. Or any folder users like.

greetz

Mouton
02-23-2004, 02:18 PM
ioFTPD sections feature is used for that. Why would u need something else ? U say it's not exactly what you want, but u don't explain what's different in what you want and what sections offers.

fyi, script can't explude dirs from stats if you didn't make a separate stats section. ioFTPD store stats information per section, so to exclude a specific dir without using sections, the script would have to catch EACH upload and check the filesize and substract stats from the right stats section...

Coffee
02-24-2004, 04:24 AM
k, thx for the answers.

other trial script from snype has the abbility to exclude a certain folder. I just leave it like this.

greetz

Mouton
02-24-2004, 04:32 PM
I think that snype's iotrial does indeed what i just said, counting on each file upload...
kinda un-efficient, but i guess some ppl don't care about effiency.
that's just a guess. never checked how ioTrial worked.

alturismo
02-24-2004, 04:54 PM
also might consider ioTRiAL doesnt count deleted files

nor nukes, etc ...

due its using its own stats instead of real section(s)

and that isnt (at least wasnt) implented in latest php version

so you can decide what you prefer ;)