Issue Details (XML | Word | Printable)

Key: CORE-5796
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: Alexander Peshkov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Firebird Core

gstat may produce faulty report about presence of some none-encrypted pages in database

Created: 18/Apr/18 04:48 PM   Updated: 26/Apr/19 05:23 AM
Component/s: GSTAT
Affects Version/s: 4.0 Initial, 3.0.0, 3.0.1, 3.0.2, 4.0 Alpha 1, 3.0.3
Fix Version/s: 3.0.4, 4.0 Beta 1

QA Status: Done with caveats
Test Details: See details in .fbt file.


 Description  « Hide
Right after encryption an attempt to run:
gstat -e dbname.fdb
returns the following crypt-pages report:

Data pages: total 884803, encrypted 884803, non-crypted 1
Index pages: total 161487, encrypted 161487, non-crypted 0
Blob pages: total 108078, encrypted 108078, non-crypted 0

or

Data pages: total 884803, encrypted 884803, non-crypted 0
Index pages: total 161487, encrypted 161487, non-crypted 0
Blob pages: total 108078, encrypted 108078, non-crypted 124


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Peshkov added a comment - 18/Apr/18 04:57 PM
An issue happened because gbak did not take into an account possible presence of free space in the end of database. Deallocated pages in that space were getting into the report as not enecrypted though actually they were not present in database no matter of the fact that were present in the file.