File systems: Windows NT versus Linux

Download Report

Transcript File systems: Windows NT versus Linux

File Systems—
NTFS versus Ext2FS
Yingfei Wang
Course: Operating Systems
Instructor: Prof. Anvari
File Management System
A set of system software that provides services to
users and applications in the use of files
Functions:





Identify and locate the selected file
Directory management
Enforce user access control
Translate user command into file manipulation
commands
Optimize performance
 File allocation, disk scheduling
2
File Systems
Windows NT

NTFS (NT File
System)
Linux

Ext2FS (Second
Extended File System)
3
NTFS Structure
Sector

Smallest physical storage unit on disk
Cluster

Disk allocation unit for file
Volume

Disk partition formatted for use by file system
4
Ext2FS Structure
Block

Smallest file allocation unit
Block groups
5
Capabilities
NTFS
Ext2FS
Max FS size
2 TB
4 TB
Max file size
4GB – 64GB
2 GB
File name
Up to 255chars
Up to 255chars
Storage size
Variable Cluster fixed block
6
Volume Layout of NTFS
Partition boot sector


Master file table
Boot startup info
Volume layout info
System file
Partition
Boot
sector
Master
File table


File/folder info
Available space info
File area
System
files
File area
7
Master file table
File
MFT
position
Description
location
MFT
0
File for tracking files LCN000
on volume
MFT mirror
1
Metadata copy
…
Log file
2
Transaction record
…
…
…
…
…
User file 1
n
First file, R, …
LCN1668
Directory 1
n+1
First directory
LCN1888
8
Physical Layout of Ext2FS
Superblock: contains info about file system
Group descriptor: contains info about each group
Inode: contains info about each file and directory
9
Inode Structure
10
Number of file system supported
Linux
32
EXT, EXT2, XIA,
MINIX,UMSDOS,
MSDOS, VFAT, HPFS,
SYSV, SMB, etc
NT
3
FAT, NTFS, OS/2
11
Virtual File System in Ext2 FS
User process
System call
System calls interface
VFS
Linux
Kernel
DOS FS
Minix FS
Ext2 FS
Buffer Cache
Device Driver
I/O request
Hardware
Disk Controlor
12
NTFS
Sorry!
13
Security
NTFS





supports file-level security
Degrees of permissions include R, W, D, P, O
Protection against unauthorized physical access is
better than FAT
Still susceptible to physical access if some utilities
like NTFSDOS is used
Does not support file encryption
EXT2fs


Supports different levels of security
Can prevent unauthorized access.
14
Recoverability
NTFS:

Use log file to record the changes to volume



redo or undo
Mirror MFT for back up
Support hot fixing disk sectors
Ext2fs:


Also offer logging of system transactions
Every block group has a replicated control structure
for backup
15
Windows, Linux, Automobiles, etc.
16