Hello;
I use an extension that adds functionality to a website I visit. One of the features allows me to make notes about individual users for future reference. This question is not about that particular extension, but I am going to use it as an example to illustrate my question.
Some background:
I like to periodically backup the .localstorage and the .localstorage-journal files for that extension so that I don't lose my notes if my HDD fails. I have noticed that on my computer, the file sizes for that extension never seem to change. The .localstorage file is always 2.04 MB (2,146,304 bytes) and the .localstorage-journal file is always 16.0 KB (16,384 bytes). I add notes frequently, so I would expect the file sizes to increase over time.
My question:
When an extension is installed that saves information to a .localstorage file, does Chrome create an initial .localstorage file of a pre-determined size? Sort of like how when you create a virtual machine in a program like VirtualBox or VMWare, you can choose to have the virtual HDD file take up a pre-determined amount of space when the file is created, and data is added to the file without increasing the virtual HDD file size.
From what I can tell, I am not losing any previously-saved notes when I add a new one. I posted this question because I'm trying to figure out whether this is normal behaviour for all extensions or if this is something particular to the extension I am using. If this is expected/normal behaviour for .localstorage file usage, will the file size increase at some point? I have read that there is a size limit of 5MB for local storage files, so if the file size is allocated in advance, it seems odd that it would be less than half of the maximum size.
Thank you in advance for any answers.