计算机应用 ›› 2014, Vol. 34 ›› Issue (2): 417-420.

• 数据技术 • 上一篇    下一篇

基于NTFS大目录的文件创建方法

吴伟民,林水宾,江达强,黎海明,苏庆   

  1. 广东工业大学 计算机学院,广州510006
  • 收稿日期:2013-07-15 修回日期:2013-09-07 出版日期:2014-02-01 发布日期:2014-03-01
  • 通讯作者: 林水宾
  • 作者简介:吴伟民(1956-),男,广东深圳人,教授, CCF会员,主要研究方向:信息安全、数据结构、可视计算、虚拟机;林水宾(1989-),男,福建漳州人,硕士研究生,主要研究方向:文件系统结构、信息安全;江达强(1991-),男,广东广州人,主要研究方向:信息安全;黎海明(1992-),男,广东珠海人,主要研究方向:文件系统结构;苏庆(1979-),男,广东茂名人,讲师,博士研究生,主要研究方向:可视计算、虚拟机、计算机软硬件体系结构。〖JP〗
  • 基金资助:
    广州市科技计划资助项目

Method of creating file based on big directory of NTFS

WU Weimin,LIN Shuibin,JIANG Daqiang,LI Haiming,SU Qing   

  1. School of Computer Science,Guangdong University of Technology,Guangzhou Guangdong 510006,China
  • Received:2013-07-15 Revised:2013-09-07 Online:2014-02-01 Published:2014-03-01
  • Contact: LIN Shuibin

摘要: 在已有文献中,由于不依赖Windows应用程序编程接口(API)调用的在新技术文件系统(NTFS)下的文件创建都是在小目录下实现的,因此将对在大目录下创建文件的方法进行研究。运用B+树遍历,找到索引缓冲区,通过判断所找的索引缓冲区是否存在索引节点,分别将创建好的索引项插入到指定的索引缓冲区位置,将插入索引项的索引缓冲区写入磁盘,完成在大目录下对文件的创建。通过实验,实现了在大目录下的文件创建,证明了方法在不依赖于Windows API而实现文件创建的正确性。

关键词: 新技术文件系统, 大目录, B 树, 索引缓冲区, 索引节点

Abstract: In the available literatures, creating new files with New Technology File System (NTFS) that does not depend on calling Windows Application Program Interface (API) takes place in small directory. Therefore, a new technological realization of creating files in big directories was proposed in this paper. Firstly, it located the index buffer by traversaling the B+tree. Secondly, by judging whether the index buffer had an index node, it would put the created index entry into the specified location of index buffer respectively. Next, the index buffer inserted by the index was written to disk. Finally, it created new files in the big directories successfully. The experiments prove that the files can be created correctly in a large directory using the new creating technology.

Key words: New Technology File System (NTFS), big directory, B tree, index buffer, index node

中图分类号: