ordered(tm) brand
ordered(tm) brand
Posted Mar 16, 2009 13:24 UTC (Mon) by nye (guest, #51576)In reply to: ordered(tm) brand by njs
Parent article: Garrett: ext4, application expectations and power management
>These three patches (with git id’s bf1b69c0, f32b730a, and 8411e347) will cause a file to have any delayed allocation blocks to be allocated immediately when a file is replaced.
I interpreted that to mean that those blocks would be written to disk as if fsync() had been used, but is that incorrect?
Am I correct in believing that your interpretation is as follows:
When a file is replaced, it is not marked for delayed allocation, so its data will be written immediately before its metadata, *whenever that happens to be*. In other words, the disk will be spun up only at the same time it would have been without those patches, but now the data will be written in addition to the metadata.
If that's correct, then it appears to be the correct resolution to me.
