Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#734 closed enhancement (fixed)

Total size of all biggiefiles

Reported by: vicgat Owned by: vicgat
Priority: normal Milestone: 3.2.0
Component: mondo Version: 3.0.4
Severity: normal Keywords: biggiefiles
Cc:

Description

I see in mondoarchive.log : "calculating total size of all biggiefiles"

That total size calculated should be added in mondoarchive.log file too, it could be useful, when mondorescue needs support.

Example :

Main] libmondo-filelist.c->chop_filelist#337: Filelist divided into 234 sets
	[Main] libmondo-files.c->estimate_noof_media_required#1266: Estimating number of media required...
	[Main] libmondo-files.c->size_of_all_biggiefiles_K#793: Calculating size of all biggiefiles (in total)
	[Main] libmondo-files.c->size_of_all_biggiefiles_K#795: biggielist = /mindi_mondo/temporal/gfa02306/mondo.tmp.V2PKXn/biggielist.txt
			[Main] libmondo-files.c->size_of_all_biggiefiles_K#800: Reading it...
	[Main] libmondo-files.c->size_of_all_biggiefiles_K#836: Closing...
	[Main] libmondo-files.c->size_of_all_biggiefiles_K#838: Finished calculating total size of all biggiefiles
Your backup will probably occupy a single nfs. Maybe two.

Change History (7)

comment:1 Changed 5 years ago by vicgat

The biggielist.txt content could be useful too, that file should be backuped.

comment:2 Changed 5 years ago by vicgat

Mondoarchive -K 5 option should print the size of all biggiefiles, but anyway (without -K option) we could have that size added to mondoarchive.log anytime, by the following.

Line 844 of libmondo-files.c, instead of :

return (scratchL);

We could have :

log_it("Total size of all biggiefiles = %ld Kb", scratchL);
return (scratchL);

comment:3 Changed 5 years ago by bruno

Victor, feel free to add your proposed patch to the 3.2 branch, so it's part of the next version.

comment:4 Changed 5 years ago by vicgat

  • Owner changed from bruno to vicgat
  • Status changed from new to assigned

comment:5 Changed 5 years ago by vicgat

I added my modification to libmondo-files.c in 3.2 branch.

Now there is :

log_it("Total size of all biggiefiles = %ld Kb", scratchL);
return (scratchL);

Rev is [3206].

comment:6 Changed 5 years ago by vicgat

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:7 Changed 5 years ago by bruno

  • Milestone changed from 3.0.5 to 3.2.0
Note: See TracTickets for help on using tickets.