14
Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

Embed Size (px)

Citation preview

Page 1: Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

Linux File SystemsPresented by: Lloyd Brown, James Frazee, & Travis Wertz

Page 2: Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

File System Capabilities

File types Permissions

Page 3: Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

File Types

Regular Files Directories Links

Symbolic Hard

Page 4: Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

Permissions

Old Unix-style Standard Permissions: Universal User, Group, Others Example:

user@host~$ ls -lh procmail.log-rw------- 1 lbrown lbrown 47K Mar 30

14:17 procmail.log

Page 5: Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

Permissions Access Control List (ACL)

Allows arbitrary users/groups to be given permissions to files

Example:user@host# getfacl www# file: www# owner: root# group: clusterstatuser::rwxuser:36:r-xgroup::rwxgroup:clusterstat:rwxgroup:clusterstat_ro:r-xmask::rwxother::---default:user::rwxdefault:user:36:r-xdefault:group::rwxdefault:group:clusterstat:rwxdefault:group:clusterstat_ro:r-xdefault:mask::rwxdefault:other::---

Page 6: Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

Virtual File Systems

Inodes Dentrys Superblocks

Page 7: Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

Inode

I(ndex)Node Describes location of each file,

directory, or link within every FS Identified by a tuple containing

unique number

Page 8: Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

Dentry

Directory Entry Used to map file descriptors to

inodes Contains name of file or directory File descriptor points to a dentry,

which points to inode.

Page 9: Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

Dentry Example

/home/chris /home/jim

/home

/home/chris/foo /home/chris/bar /home/chris/txt

Dentry

Pointer

Page 10: Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

Superblock

When FS is mounted, contents are attached to primary directory tree

Superblock contains information about mounted FS Type Root inode location Items that protect integrity

Created by kernel Resides in memory

Page 11: Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

Specific Types

General File Systems Network File Systems Special Purpose File Systems

Page 12: Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

General File Systems

Ext 2/3 ReiserFS JFS XFS

Page 13: Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

Network File Systems

NFS SMB/CIFS

Page 14: Linux File Systems Presented by: Lloyd Brown, James Frazee, & Travis Wertz

Memory File Systems

ProcFS TmpFS SysFS RamFS