Hi Roland, its me again ....
I did some Brainstorming (with me) about disparity ... and have some Suggestions / Whishes / Questions :
NEW - Command SIMULATE
It would be useful if there is a Command like SIMULATE
Now, the only Chanche to see if there is a need for Update is to do it ...
What should SIMULATE do !? the same as UPDATE but without doing it ...
Dont Calculate XOR and DONT modify PARITY
But it lists every modified, moved, deleted File
and lists at end OldParitySIze, NewParitySize, moved,modified,deleted Filecount and Filesize.
NewParitySize in Bytes is needfull if want to be shure that ther is enoughe Parity Space ...
The other resaon for SIMULATE is ... with it its possible for GUI to know if DATA/PARITY is dirty and inform/warn user that he needs to UPDATE ...
MOD - OUTPUT FORMAT
The Output of disParity is the only way to know what happen or happend ...
But its not Structured, its not Machine reading optimized, and for Script or GUI its hard to read and interpret ...
Its more like an Debug output ... for Human reading its OK, but in future, to build a full featered GUI its hard to interpret.
Suggestions:
TIMESTAMP [ACTION] INFORMATION <STATUS>
2010-01-27 16:30:01 [COMMAND] UPDATE <OK>
2010-01-27 16:30:01 [PREINFO] C:\DEVRAID\RAID001\ | DRU001 <OK>
2010-01-27 16:30:02 [RECORDS] 134 <OK>
2010-01-27 16:30:03 [ADDS] 1 | 13467 Bytes <OK>
2010-01-27 16:30:04 [MOVES] 0 | 0 Bytes <OK>
2010-01-27 16:30:05 [DELETES] 0 | 0 Bytes <OK>
2010-01-27 16:30:06 [PREINFO] C:\DEVRAID\RAID002\ | DRU002 <OK>
2010-01-27 16:30:07 [RECORDS] 345 <OK>
2010-01-27 16:30:08 [ADDS] 0 | 0 Bytes <OK>
2010-01-27 16:30:09 [MOVES] 0 | 0 Bytes <OK>
2010-01-27 16:30:10 [DELETES] 0 | 0 Bytes <OK>
2010-01-27 16:30:11 [PREINFO] C:\DEVRAID\RAID003\ | DRU003 <OK>
2010-01-27 16:30:12 [RECORDS] 567 <OK>
2010-01-27 16:30:13 [ADDS] 0 | 0 Bytes <OK>
2010-01-27 16:30:14 [MOVES] 0 | 0 Bytes <OK>
2010-01-27 16:30:15 [DELETES] 0 | 0 Bytes <OK>
2010-01-27 16:30:16 [PROCESS] C:\DEVRAID\RAID001\ | DRU001 <OK>
The GUI can now initialize Progressbars ... Esteminate Time to complete .... or what else ....
2010-01-27 16:30:17 [ADD] F:\Mediafolder\Video\SomeFilm\Somefilm.avi <OK>
2010-01-27 16:30:18 [ADD] F:\Mediafolder\Video\SomeFilm\folder.jpg <HIDDEN-IGNORE>
2010-01-27 16:30:19 [PROCEND] C:\DEVRAID\RAID001\ | DRU001 <OK>
2010-01-27 16:30:20 [PROCESS] C:\DEVRAID\RAID002\ | DRU002 <OK>
2010-01-27 16:30:20 [PROCEND] C:\DEVRAID\RAID002\ | DRU002 <OK>
2010-01-27 16:30:21 [PROCESS] C:\DEVRAID\RAID003\ | DRU003 <OK>
2010-01-27 16:30:22 [PROCEND] C:\DEVRAID\RAID003\ | DRU003 <OK>
2010-01-27 16:30:23 [POSTINFO] EMPTY <OK>
2010-01-27 16:30:24 [SUMADDS] 1 | 13467 Bytes <OK>
2010-01-27 16:30:25 [SUMMOVES] 0 | 0 Bytes <OK>
2010-01-27 16:30:26 [SUMDELETES] 0 | 0 Bytes <OK>
2010-01-27 16:30:27 [SUMIGNORES] 1 | 3450 Bytes <OK>
2010-01-27 16:30:28 [SUMERRORS] 0 <OK>
2010-01-27 16:30:29 [SUMWARNINGS] 0 <OK>
2010-01-27 16:30:30 [SUMTIME] 22 Sec <OK>
2010-01-27 16:30:30 [END] EMPTY <OK>
The DRUxxx thing is DataRiskUnit (i stole the name form FlexRaid ...)
Why output DRUNumber!? Paths can Change but the DRUNumber (hopefully) stay the same.
Hmmmm. a Qestion ... Can (Base)Paths change ? Do you store (in Parity) Absolut Paths or Relative to Path given by "dataX=" in config !?
I tried to keep the order of the Current Log Output, so ther are only little Code changes needed ...
Its only an quick Example to think / talk about ....
If you are interested in reoranize the Output, i can think about it a little more and do a more complete list.
What do other disParity Users think about it ?
Specialy our GUI Builder klim ...