World Library  
Flag as Inappropriate
Email this Article

Transactional NTFS

Article Id: WHEBN0004040791
Reproduction Date:

Title: Transactional NTFS  
Author: World Heritage Encyclopedia
Language: English
Subject: NTFS, Kernel Transaction Manager, ReFS, List of Microsoft Windows components, .NET Framework
Collection: Microsoft Application Programming Interfaces, Transaction Processing, Windows Components, Windows Vista
Publisher: World Heritage Encyclopedia

Transactional NTFS

Transactional NTFS (abbreviated TxF) is a component of Windows Vista and later operating systems. It brings the concept of atomic transactions to the NTFS file system, allowing Windows application developers to write file output routines that are guaranteed either to succeed completely or to fail completely. Transactional NTFS is also known informally as NTFS 6.0, because it was introduced with Windows Vista, which has internal Windows version designation NT 6.0.

Due to its complexity and various nuances which developers need to consider as part of application development, Microsoft is considering deprecating TxF APIs in a future version of Windows. Therefore, Microsoft strongly recommends developers investigate using the alternatives rather than adopting the Transactional NTFS API platform which may not be available in future versions of Windows.[1]


  • Overview 1
  • See also 2
  • References 3
  • External links 4


Transactional NTFS allows for files and directories to be created, modified, renamed, and deleted atomically. Using transactions ensures correctness of operation; in a series of file operations (done as a transaction), the operation will be committed if all the operations succeed. In case of any failure, the entire operation will rollback and fail.

Transactional NTFS is implemented on top of the Kernel Transaction Manager (KTM), which is a Windows kernel component first introduced in Windows Vista that provides transactioning of objects in the kernel. The NTFS file system already supports journaling of low-level operations, such as writing a block of data. Transactional NTFS expands on this capability to include:

  • Atomic operations on a single file:
A common example of this is saving a file from an application; if the application or machine were to crash while writing the file, then only part of the file could be written, possibly resulting in a corrupted file. This would be a very significant problem if a previous version of the file was being over-written, as data would likely be lost.
  • Atomic operations spanning multiple files:
If an application needs to update several files at once with a set of changes, all the necessary file operations can be performed as a single transaction, preventing inconsistent updates in the event of a failure.
  • Atomic operations spanning multiple computers:
Performing the same operation on multiple computers is a fairly common administrative task in a corporate network; Transactional NTFS integrates with the Distributed Transaction Coordinator to ensure that the change is successfully applied to all machines.

Using Transactional NTFS for transactions on Encrypting File System files is not supported until Windows Vista Service Pack 1 (SP1) and Windows Server 2008.[2]

See also


  1. ^ "Alternatives to using Transactional NTFS". Microsoft. 
  2. ^ "When to Use Transactional NTFS (Windows)". KTM Reference. Microsoft. Retrieved 2008-06-04. 

External links

  • Because We Can, a Microsoft developer blog that discusses TxF both conceptually and in code
  • Kernel Transaction Manager documentation on the Microsoft Developer Network.
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.