Homework
What is the OS (Linux) view of a file
Not so quick answers
- Read IBM developerWorks® Anatomy of the Linux file system
- The stat system call
- Call Python’s os.stat() and use the stat module to pull out useful information
- Run the stat program
Links
- device id and inode numbe — “address” of a file
- reference counts — number of hard links
- symbolic links — soft links
- Using the ln command
- Making links with Python with the
os module —
os.link
Access Control Lists
- Required for SELinux
- getfacl and setfacl
- You better just find some examples to ponder
- task — make a file than can only be read by you and two others
just checking
Have you writen Python programs to read and write files?
Very quick look at hardware
File systems
- Comparison of file systems
- Microsoft EFI FAT32 File System Specification
- ext4 disk layout
- sequential list and b-trees, extants, b-trees, journaling for later
Backup strategies
- disk images — dd
- directory and file images — cpio, tar
- file system specific — dump/restore, xfsdump/xfsrestore
- snapshots — lvm
- the whole package — bacula, amanda
- a for those significant applications
A lab part
You should have a free partition on your SD card. Let’s try to do some LVM with it. This will involve the following commands.
- fdisk — just to check
- pvcreate — creating the physical volume
- pvscan — checking
- vgcreate — creating the volume group
- vgscan — checking
- lvcreate — creating the logical
- lvscan — checking
- vgscan -v — checking
- format and mount the logical volume!
Reading assignment
Learn about XFS.