[bind10-dev] "Percentage done", was Re: questions about task 88 and 89
zhanglikun
zlkzhy at gmail.com
Wed May 12 02:28:24 UTC 2010
> [ ignoring the largely correct clarification you sent ]
>
> On Thu, 2010-05-06 at 05:22 -0500, Jeremy C. Reed wrote:
> > "%done" is for periodically showing the percentage of the master file
> > data that is loaded until complete. I am not sure how relevant or easy
> > that is to do now as I don't know if it pre-parses the loaded data to
> > get something to compare with. It is probably not required in the first
> > "verbose" option.
>
> The basic idea is to have some idea of how long one has to wait. This
> can be done by doing something that looks a bit like:
>
> $ b10-loadzone example.db
> Using SQLite3 database file "/var/lib/bind10/test-sqlite.db"
> Zone name is "xn--fsqu00a.cn"
> 5342 Resource Record(s) loaded in 2 second(s) (0.5% of file)
>
How b10-loadzone display percentage done for included zone file?
if zone file 'cn.zone' includes 'sub.cn.zone', and zone file 'sub.cn.zone'
includes
'sub.sub.cn.zone',
My suggestion is :
When loading records in file 'cn.zone', just report the percentage of zone
file 'cn.zone', like:
5 Resource Record(s) loaded in 456 second(s) (1% of file 'cn.zone')
Then, when loading records in included file, add percentage report for the
included zone file, like:
10 Resource Record(s) loaded in 456 second(s) (10% of file 'cn.zone', 15%
of included file 'sub.cn.zone')
seconds later would display like:
345 Resource Record(s) loaded in 456 second(s) (10% of file 'cn.zone', 90%
of included file 'sub.cn.zone')
seconds later would display like:
2664 Resource Record(s) loaded in 456 second(s) (10% of file 'cn.zone', 40%
of included file 'sub.sub.cn.zone')
seconds later would display like:
4664 Resource Record(s) loaded in 456 second(s) (10% of file 'cn.zone', 80%
of included file 'sub.sub.cn.zone')
seconds later would display like:
25444 Resource Record(s) loaded in 456 second(s) (15% of file 'cn.zone')
Any other suggestions?
Zhang Likun
More information about the bind10-dev
mailing list