pktcdvd tool | Stand: 25.07.2010 |
A little shell script to control the pktcdvd driver using the sysfs interface available since Linux 2.6.19-rc2-mm2:
Type
pktcdvd -h for help information:
## add new packet device for block device.
## a device node is created: /dev/pktcdvd/
pktcdvd -a pktname blkdev
## remove a packet device
pktcdvd -r pktname|pktmajor:pktminor
## show packet device stat infos
pktcdvd -i pktname|pktmajor:pktminor
## set write congestion marks for packet device
pktcdvd -C pktname|pktmajor:pktminor on [off]
## print write congestion marks for packet device
pktcdvd -c pktname|pktmajor:pktminor
## print device mapping
pktcdvd -m
Example:
modprobe pktcdvd
pktcdvd -a dvdram /dev/hdc
mkudffs /dev/pktcdvd/dvdram
mount -t udf -o rw,noatime /dev/pktcdvd/dvdram /dvdram
cp files /dvdram
umount /dvdram
pktcdvd -r dvdram