Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 25, 2013, 06:31:10 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: AddGap : ZoneBegin (and ZoneSize) Values are Incorrect  (Read 805 times)
grahamcopley
JkDefrag Senior
****
Posts: 47


View Profile
« on: November 08, 2011, 11:16:13 am »

In MyDefrag v4.3.1, when using AddGap - after processing a (non-empty) zone - ZoneBegin is given the value of ZoneEnd.

The relevant extract from my illustrative script is :-
----------------------------------------------------------------------------
  Title('SysVolInfo')
  FileSelect
    DirectoryName("System Volume Information")
  FileActions
    MoveUpToZone()
    AddGap(0.21*VolumeSize + ZoneEnd - ZoneBegin - ZoneSize,DoNotVacate)
  FileEnd
----------------------------------------------------------------------------

The extract from the Debuglog is :-
===========================================================
09:42:48     Vacating free area
09:42:48       Evaluating expression at line 18 column 12...
09:42:48       Evaluating expression at line 18 column 12...
09:42:48       Evaluating expression at line 18 column 12...
09:42:48       Evaluating expression at line 18 column 12...
09:42:48         Number 1 = 2.100000e-001 (0)
09:42:48       Value of macro !VolumeSize! = 40007729152.000000
09:42:48         Number 2 = 4.000773e+010 (40007729152)
09:42:48         Result = 8.401623e+009 (8401623121)
09:42:48         Number 1 = 8.401623e+009 (8401623121)
09:42:49       Value of macro !ZoneEnd! = 6033252352.000000
09:42:49         Number 2 = 6.033252e+009 (6033252352)
09:42:49         Result = 1.443488e+010 (14434875473)
09:42:49         Number 1 = 1.443488e+010 (14434875473)
09:42:49       Value of macro !ZoneBegin! = 6033252352.000000
09:42:49         Number 2 = 6.033252e+009 (6033252352)
09:42:49         Result = 8.401623e+009 (8401623121)
09:42:49         Number 1 = 8.401623e+009 (8401623121)
09:42:49       Value of macro !ZoneSize! = 0.000000
09:42:49         Number 2 = 0.000000e+000 (0)
09:42:49         Result = 8.401623e+009 (8401623121)
09:42:49       AddGap has set the beginning of the next zone to LCN=2051177.
09:42:49     Finished FileActions.
===========================================================

Also, ZoneSize is given a value of 0 (but this was reported in a post some time ago).

I appreciate the tremendous work done by Jeroen, but it now 18 months since this latest release of MyDefrag. It would be nice to hear some news from Jeroen on how the next release is progressing.

« Last Edit: November 08, 2011, 11:34:25 am by grahamcopley » Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #1 on: November 09, 2011, 04:01:14 am »

You are correct, when AddGap is executed the ZoneBegin is always equal to ZoneEnd. The ZoneEnd, ZoneBegin, and ZoneSize variables therefore cannot be used in AddGap calculations. In the next release this problem will be fixed.

By the way, the ZoneSize variable is always the difference between ZoneEnd and ZoneBegin ("ZoneSize = ZoneEnd - ZoneBegin"), so your partial formula "ZoneEnd - ZoneBegin - ZoneSize" will always result in zero.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!