Page 1 of 1

Quota write to flash

Posted: Fri May 29, 2015 5:34 am
by qawplo1
As I read in forums, quota is written to flash several times a day, right?
Is the number of writes per day somehow configurable?

Also, it is not written automatically after the limit is reached.
In my case, I have a router which is physically accessible by end users. After the limit is reached, the users will experience their internet connection not working. What will they do? Reset the router! And since the quota usage has not been written, they can start all over again!

Is this avoidable?

Re: Quota write to flash

Posted: Fri May 29, 2015 6:07 am
by Lantis
its a Cron job, so yes it's controllable.

Re: Quota write to flash

Posted: Fri May 29, 2015 6:37 am
by qawplo1
Great, thanks.

Now, is it somehow possible to trigger a write once the limit is reached so that I do not have to make too many flash writes?

Re: Quota write to flash

Posted: Fri May 29, 2015 6:40 am
by Lantis
in theory yes, but i don't know how. you'd be modifying the code.

Re: Quota write to flash

Posted: Fri May 29, 2015 4:44 pm
by ispyisail

Re: Quota write to flash

Posted: Sun May 31, 2015 8:52 am
by qawplo1
Thanks. I've edited the crontab directly so I ended with two entries. This should fix it.

About the triggered write - isn't it the logical thing to do? Maybe it can be added in future versions.

Re: Quota write to flash

Posted: Sun May 31, 2015 8:57 am
by qawplo1
The trigger could also be configurable, such as:
"Write quota data
a. periodically
b. after a limit is reached
c. after xx MB/GB/TB of traffic"