| The advantages of NTFS are high performance, high reliability and security. However, Microsoft Company doesn't publish anything about on-disk structure and implementation of NTFS file system, and the the on-disk structure of NTFS file system is too complex, so it is very difficult to implement NTFS driver on Linux platform. Aiming at this problem, Linux-ntfs work group has made great progress. They have implemented read-only NTFS driver on Linux.On the basis of the research on disk structure of NTFS file system, this paper designs and implements KD-NTFS, a NTFS filesystem dirver on Linux. KD-NTFS has two advantages: firstly, it can read and write NTFS filesystem with high efficiency; secondly, it has better structure and expansibility and on the basis of KD-NTFS, it is easier to implement high-lever functions.KD-NTFS is designed with 3 layers: VFS operation layer, KD-NTFS abstract operation layer and NTFS structure layer. VFS operation layer implements the operations betwwens VFS and KD-NTFS. On one hand, KD-NTFS abstract operation layer provide sample and useful operations for VFS operation layer; on the other hand, KD-NTFS abstract operation layer encapsulates the structure of NTFS filesystem for NTFS structure layer. NTFS structure layer handles the structure of NTFS filesystem. KD-NTFS abstract operation layer is the keystone of the design and implementation. |