翻译windows internals 第12章文件系统

原创 2016年06月01日 15:47:53

In this chapter, we present an overview of the file system formats supported by Windows. We then describe the types of file system drivers and their basic operation, including how they interact with other system components, such as the memory manager and the cache manager. Following that is adescription of how to use Process Monitor from Windows Sysinternals (at http://www.microsoft.com/technet/sysinternals) to troubleshoot a wide variety of file system access problems.


In the balance of the chapter, we first describe the Common Log File System (CLFS), a transactional
logging virtual file system implemented on the native Windows file system format, NTFS. Then we
focus on the on-disk layout of NTFS and its advanced features, such as compression, recoverability,
quotas, symbolic links, transactions (which use the services provided by CLFS), and encryption.
To fully understand this chapter, you should be familiar with the terminology introduced in
Chapter 9, “Storage Management,” including the terms volume and partition. You’ll also need to be
acquainted with these additional terms:

  • Sectors are hardware-addressable blocks on a storage medium. Hard disks usually define a
    512-byte sector size, but they are moving to 4,096-byte sectors. (See Chapter 9.) Thus, if the
    sector size is 512 bytes and the operating system wants to modify the 632nd byte on a disk, it
    must write a 512-byte block of data to the second sector on the disk.
    File system formats define the way that file data is stored on storage media, and they affect a
    file system’s features. For example, a format that doesn’t allow user permissions to be associated
    with files and directories can’t support security. A file system format can also impose
    limits on the sizes of files and storage devices that the file system supports. Finally, some file
    system formats efficiently implement support for either large or small files or for large or small
    disks. NTFS and exFAT are examples of file system formats that offer a different set of features
    and usage scenarios.
    文件系统格式定义了数据存储在存储介质上的方式,他们影响文件系统的特性。例如,一种格式不允许用户权限和文件相关联,目录不支持安全特性。一种文件系统格式也限制了文件的大小以及所支持的存储设备。最后,一些文件系统格式有效实现对不同大小文件以及不同大小磁盘磁盘的支持。NTFS和exFAT 也是提供不同特征和使用场景的文件系统格式的例子。
    Clusters are the addressable blocks that many file system formats use. Cluster size is always a multiple of the sector size, as shown in Figure 12-1. File system formats use clusters to manage disk space more efficiently; a cluster size that is larger than the sector size divides a disk into more manageable blocks. The potential trade-off of a larger cluster size is wasted disk space, or internal fragmentation, that results when file sizes aren’t exact multiples of the cluster size.
    Metadata is data stored on a volume in support of file system format management. It isn’t
    typically made accessible to applications. Metadata includes the data that defines the placement
    of files and directories on a volume, for example.


Windows File System Formats   //windows文件系统的格式


CDFS (%SystemRoot%\System32\Drivers\Cdfs.sys), or CD-ROM file system, is a read-only file system
driver that supports a superset of the ISO-9660 format as well as a superset of the Joliet disk format.
While the ISO-9660 format is relatively simple and has limitations such as ASCII uppercase names with
a maximum length of 32 characters, Joliet is more flexible and supports Unicode names of arbitrary
length. If structures for both formats are present on a disk (to offer maximum compatibility), CDFS
uses the Joliet format. CDFS has a couple of restrictions:
■■ A maximum file size of 4 GB
■■ A maximum of 65,535 directories
CDFS is considered a legacy format because the industry has adopted the Universal Disk Format
(UDF) as the standard for optical media.

CDFS(%SystemRoot%\System32\Drivers\Cdfs.sys ),或者CD-ROM文件系统是只读的支持ISO-9660格式以及Joliet磁盘格式超级的文件系统驱动。然而ISO-9660格式是相对简单,有某些限制,例如:ASCII大写字母名字最大长度为32个字符。Joliet是更加灵活,支持任意长度的Unicode名字。如果两种格式在磁盘上都存在(提供最大的兼容性),CDFS使用Joliet格式。::
最大有5个子目录          CDFS被认为是一种传统的格式,因为工业已经采用通用磁盘格式(UDF)作为光盘的标准。



翻译windows internals 第12章文件系统(持续更新)

The root directory of FAT12 and FAT16 volumes is preassigned enough space at the start of a volume t...

翻译windows internals 第12章文件系统 (持续更新)exFAT

exFAT Designed by Microsoft, the Extended File Allocation Table file system (exFAT, also called FA...

翻译windows internals 第12章文件系统 (持续更新)NTFS

As noted at the beginning of the chapter, the NTFS file system is the native file system format of W...

翻译windows internals 第12章文件系统

UDF The Windows UDF file system implementation is OSTA (Optical Storage Technology Association)UDF-...


标 题: 【分享】整理一份我对Windows文件系统过滤驱动的sFilter工程代码的详细说明 作 者: tianhz 时 间: 2012-06-19,18:32:07 链 接: http://...


硬盘分区结构及windows文件系统结构 1.关于硬盘分区:     IDE接口硬盘中,不管什么操作系统,都有如下结构: MBR(Master Boot Record)及基本...