Menu

#1318 SysFileTree wrong for files > 4096 MB

5.0.0
closed
nobody
None
none
1
2023-01-01
2014-12-02
AvdP
No

My Rexx: ooRexx.5.0.0.10860-x86_32.exe
My OS: Win7 32bit

Attached script 'test.rex' grows a file (in 1MB steps).

It then uses 2 methods of getting the file size:

  • stream(bigfile, 'c', 'query size')
  • sysfiletree()

The two size methods give identical results.
Until the file size reaches 4096MB when sysfiletree() restarts at '0'.

When you run this code:
- make sure the filesystem can handle files > 4GB
- consider disabling your anti-virus for better performance
- a logfile is created in the same folder

Bottom lines from my log look similar to this:

4092 MB = 4290772992 (by query size) / 4290772992 (by sysfiletree)
4093 MB = 4291821568 (by query size) / 4291821568 (by sysfiletree)
4094 MB = 4292870144 (by query size) / 4292870144 (by sysfiletree)
4095 MB = 4293918720 (by query size) / 4293918720 (by sysfiletree)
4096 MB = 4294967296 (by query size) / 0 (by sysfiletree)
4097 MB = 4296015872 (by query size) / 1048576 (by sysfiletree)
4098 MB = 4297064448 (by query size) / 2097152 (by sysfiletree)
4099 MB = 4298113024 (by query size) / 3145728 (by sysfiletree)
4100 MB = 4299161600 (by query size) / 4194304 (by sysfiletree)

Andre

1 Attachments

Related

Bugs: #1318

Discussion

<< < 1 2 (Page 2 of 2)
  • Erich

    Erich - 2019-02-25

    Fixed column layout with revision [r11809].

     

    Related

    Commit: [r11809]

  • Erich

    Erich - 2019-12-22
    • status: accepted --> pending
    • Pending work items: doc+test --> none
     
  • Erich

    Erich - 2019-12-22

    Committed additional SysFileTree tests with revision [r11966]

     

    Related

    Commit: [r11966]

  • Rony G. Flatscher

    • Status: pending --> closed
     
<< < 1 2 (Page 2 of 2)

Anonymous
Anonymous

Add attachments
Cancel