Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/share/examples/puffs/dtfs
Module Name: src
Committed By: pooka
Date: Thu May 17 14:10:13 UTC 2007
Modified Files:
src/share/examples/puffs/dtfs: dtfs.c dtfs.h dtfs_vfsops.c
Log Message:
Adapt to changes with mounting file systems.
Introduce a parameter -r to control the root node type. For example
"dtfs -r 'lnk /etc' /puffs" mounts dtfs with the root node as a
symbolic link to /etc:
jojonaru# ./dtfs -r 'lnk /etc' /puffs
jojonaru# ls -l /puffs
lrw-rw-rw- 1 root wheel 4 May 17 14:06 /puffs -> /etc
jojonaru# cd /puffs
jojonaru# pwd
/etc
jojonaru#
Extra credit for figuring out how to unmount this file system with
umount(8).
Likewise, "dtfs -r 'chr 2 12' /puffs" makes /puffs (i386) /dev/zero etcetc.
To generate a diff of this commit:
cvs rdiff -r1.23 -r1.24 src/share/examples/puffs/dtfs/dtfs.c
cvs rdiff -r1.14 -r1.15 src/share/examples/puffs/dtfs/dtfs.h
cvs rdiff -r1.16 -r1.17 src/share/examples/puffs/dtfs/dtfs_vfsops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index