What would be the total meteredBytes shown by the File Storage service after the hourly update cycle is complete when you overwrite 0.5 GB of a 1 GB file?
In Oracle Cloud Infrastructure (OCI) File Storage, when you overwrite a portion of a file, the service does not immediately reclaim the space occupied by the previous version of the file. The total meteredBytes reflects both the original data and the new data written.
Scenario Explanation: You start with a 1 GB file. When you overwrite 0.5 GB of this file, the file system retains both the 0.5 GB of the original file and the new 0.5 GB you wrote.
Calculation: The original 1 GB file contributes 1 GB to meteredBytes. When 0.5 GB is overwritten, the total usage becomes 1.5 GB (1 GB original + 0.5 GB new).
Thus, after the hourly update cycle, the total meteredBytes shown by the File Storage service will be 1.5 GB.
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit