简体   繁体   English

NTFS与FAT32搜索时间

[英]NTFS vs FAT32 Search Time

I'm doing a paper on NTFS vs FAT32 and showing a comparison between both file systems. 我正在做一篇关于NTFS与FAT32的论文,并展示了两个文件系统之间的比较。 As far as my knowledge goes, I know that NTFS uses the MFT for holding all the files and directories whereas FAT32 only knows the following cluster for a specific file or directory. 据我所知,我知道NTFS使用MFT来保存所有文件和目录,而FAT32只知道特定文件或目录的以下群集。 This means that FAT32 doesn't know a-priori the first block of a file if not found first by looking up in a specific directory. 这意味着如果首先通过查找特定目录找不到FAT32,则FAT32不知道文件的第一个块。

My question is the following, if NTFS holds all information regarding the file system in a file does it mean it's going to be faster when doing a raw search for a filename "test.txt" within the system? 我的问题如下,如果NTFS保存文件中有关文件系统的所有信息,是否意味着在系统中对文件名“test.txt”进行原始搜索时会更快? From what I know, FAT will have to scan every directory in the hard drive and in each directory look if the filename exists whereas in NTFS, it only needs to scan the MFT file which is contiguous for a record that has name : "text.txt". 据我所知,FAT必须扫描硬盘驱动器中的每个目录,并在每个目录中查看文件名是否存在,而在NTFS中,它只需要扫描与名称为“text”的记录连续的MFT文件。文本”。 Am I right or I'm missing something? 我是对的还是我错过了什么?

I don't know, probably yes(40% bet), but to turn your problem into Stack Overflow coding on-topic here are some resources where you can find your answer and give us your self-answer : 我不知道,可能是的(40%的赌注),但是将你的问题转化为Stack Overflow编码主题这里有一些资源,你可以找到你的答案并给我们你的自我回答

  • probably, by reading "text": 可能,通过阅读“文字”:

  • for sure, by reading "code": 当然,通过阅读“代码”:

    • GitHub: /torvalds/linux/fs/ntfs - C source code of the NTFS file system driver used by Linux - " Linux is a clone of the operating system Unix , written from scratch by Linus Torvalds with assistance from a loosely-knit team of hackers across the Net. It aims towards POSIX and Single UNIX Specification compliance " GitHub:/ torvalds / linux / fs / ntfs - Linux使用的NTFS文件系统驱动程序的C源代码 - “ Linux是操作系统Unix的克隆,由Linus Torvalds从头开始编写,并得到松散编织的团队的帮助。网络上的黑客。它的目标是POSIX和单一UNIX规范合规性
    • svn.reactos.org: /reactos/drivers/filesystems/ntfs - C source code of the NTFS file system driver used by ReactOS - " free open source operating system based on the best design principles found in the Windows NT® architecture (Windows versions such as Windows XP, Windows 7, Windows Server 2012 are built on Windows NT architecture). Written completely from scratch, ReactOS is not a Linux based system, and shares none of the UNIX architecture " svn.reactos.org:/ reactos / drivers / filesystems / ntfs - ReactOS使用的NTFS文件系统驱动程序的C源代码 - “ 基于WindowsNT®架构中最佳设计原则的免费开源操作系统(Windows版本)例如Windows XP,Windows 7,Windows Server 2012都是基于Windows NT架构构建的。完全从头开始编写, ReactOS 不是基于Linux的系统,并且没有共享任何 UNIX架构

All of the above resources should agree on the concept and the two last resources show how the machines really treat the problem without some marketing talk (machines don't understand marketing and advertising very well) 所有上述资源都应该就这个概念达成一致,最后两个资源显示机器如何在没有一些营销谈话的情况下真正处理问题(机器不能很好地理解营销和广告)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM