Hello. Justing wondering, how would you implement your own commit-rollback mechanism (akin to that in databases) for moving files from one place to another?
Since moving a bunch of files could take several minutes, during which a disaster might strike and you don't want the files ending up scattering randomly in two places, a commit-rollback mechanism would be nice. So, how to do that on a file system without resorting to sorcery, prayers, databases or application servers?
Are there generalized approaches or theories (as opposed to criteria) as to how to do transaction in general?
Thanks.