Power failures while writing

What happens when we switch the power off, and files are still open for write access? Do we get invalid files / bad blocks?

If the power is physically switched off without taking the proper precautions the following could happen:

For more information, see the Backing Up and Recovering Data chapter of the QNX Neutrino User's Guide.