Hey guys, I just have a few questions:

What is a Transactional File System? Is Windows 7 a Transactional File System? If not what needs to be changed to make it transactional?

Any help would be appreciated.

Recommended Answers

All 2 Replies

A transaction is used in database processing where you want to make non-trivial changes. For example, in banking, when you want to make a transfer from one account to another you could do the following

1) deduct the given amount from the first account
2) add the given amount to the second account

Obviously, if step 2 fails you want to put the funds back into the first account. You can easily add appropriate error checking into your code to handle this. As the required changes become more complex (if you have more steps), the code becomes increasingly complex as you program in multiple "undo" scenarios. Instead of handling this in code you can use a transaction. Simply put you do something similar to

START TRANSACTION
do step 1
do step 2
.
.
.
do step n
END TRANSACTION

If any of the steps fails then the transaction is canceled. You don't have to worry about undoing all of the steps preceding the error. A transactional file system would be similar except on a file rather than a database level.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.