You are not logged in.
Pages: 1
As you know, an OS crash may lead to reducing of size of an opened for writing file to zero, i.e. to data loss, see http://en.wikipedia.org/wiki/Ext4#Delay … _data_loss. Is there an example, how am I supposed to work with files to avoid data loss; not a hand-wavy explanation, but an example. I just want a file system to behave like a database, i.e. to perform update of a file in a single transaction. BTW is this problem present in btrfs, nilfs?
we are not condemned to write ugly code
Offline
The `sync` command performs any cached filesystem operations, but I don't know how to stop them from being cached in the first place.
Offline
'sync' is also a mount option ('defaults' uses async)
also, always have backups of important files
☃ Snowman ☃
Offline
The `sync` command performs any cached filesystem operations, but I don't know how to stop them from being cached in the first place.
I am afraid that "sync" does not replace transactions. E.g. I open a file and perform a long-term write. During it OS crashes. This reduces file size to zero, is not it?
we are not condemned to write ugly code
Offline
Pages: 1