SLIDE 11 Cameron Macdonell
The The Scruf Scruf Framework Framework
Three main components:
1) 1) A kernel module, called A kernel module, called Scruf Scruf-VFS
A modified ext2 ext2 module module
- Communicates to user-level when file operations occur
Communicates to user-level when file operations occur
2) 2) A user-level daemon A user-level daemon
- Searches for and executes the scripts
Searches for and executes the scripts
3) 3) The trigger scripts The trigger scripts
- Specially named files which encapsulate the functionality
Specially named files which encapsulate the functionality which extend the file system which extend the file system’ ’s operation s operation
What does not change?
The applications!
Cameron Macdonell
The The Scruf Scruf Framework: At User-Level Framework: At User-Level
The Daemon
A multiplexor multiplexor in a one-to-many environment in a one-to-many environment
One: Scruf Scruf-VFS in the kernel
- VFS in the kernel
- Communicate with the daemon via /proc file system
Communicate with the daemon via /proc file system
Many: The Trigger Scripts The Trigger Scripts
- Communicate with the daemon via pipe IPC
Communicate with the daemon via pipe IPC
- Locates and runs scripts, if they exist
Locates and runs scripts, if they exist
[cam@sunset ~/test]$ ls -al [cam@sunset ~/test]$ ls -al total 16 total 16 drwx drwx--S--- 2 cam grad 4096 Aug 15 14:48 .
- -S--- 2 cam grad 4096 Aug 15 14:48 .
drwxr drwxr-sr-x 69 cam grad 4096 Aug 15 14:48 ..
- sr-x 69 cam grad 4096 Aug 15 14:48 ..
- rwx
rwx------ 1 cam grad 43 Aug 15 14:46 .on.open
- ----- 1 cam grad 43 Aug 15 14:46 .on.open
- rw
rw------- 1 cam grad 951 Aug 15 14:48
- ------ 1 cam grad 951 Aug 15 14:48 anyfile
anyfile [cam@sunset ~/test]$ [cam@sunset ~/test]$