diff options
author | sos <sos@FreeBSD.org> | 1999-09-21 20:05:54 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1999-09-21 20:05:54 +0000 |
commit | e4d8633ce85e68d08a30bb58e984f353d8b6a590 (patch) | |
tree | 0a5ee97ca24fa227d6cb816d48dd7823b2012c87 /share/examples/atapi | |
parent | 73b70d4d13907aa399a81ba42253053555298f93 (diff) | |
download | FreeBSD-src-e4d8633ce85e68d08a30bb58e984f353d8b6a590.zip FreeBSD-src-e4d8633ce85e68d08a30bb58e984f353d8b6a590.tar.gz |
Update so that only whole blocks are written to disk, the system
has dislearned how to handle != blocksize request to the raw/char
device.
Diffstat (limited to 'share/examples/atapi')
-rwxr-xr-x | share/examples/atapi/burnaudio | 11 | ||||
-rwxr-xr-x | share/examples/atapi/burndata | 12 |
2 files changed, 16 insertions, 7 deletions
diff --git a/share/examples/atapi/burnaudio b/share/examples/atapi/burnaudio index f1e1056..ab2e2a8 100755 --- a/share/examples/atapi/burnaudio +++ b/share/examples/atapi/burnaudio @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (c) 1998 Søren Schmidt +# Copyright (c) 1998,1999 Søren Schmidt # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -26,18 +26,23 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ +# $FreeBSD$ # device=/dev/r$1 +echo "preparing disk in $device" wormcontrol -f$device prepdisk double shift for f in $* do echo Burning file $f + echo "setting up to transfer audio track" wormcontrol -f $device track audio wormcontrol -f $device nextwriteable - dd if=$f of=$device bs=2352 + echo "writing data to disk" + dd if=$f of=$device obs=2352 conv=osync done +echo "fixating disk" wormcontrol -f $device fixate 1 onp +echo "done!" diff --git a/share/examples/atapi/burndata b/share/examples/atapi/burndata index 0a7577f..849c860 100755 --- a/share/examples/atapi/burndata +++ b/share/examples/atapi/burndata @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (c) 1998 Søren Schmidt +# Copyright (c) 1998,1999 Søren Schmidt # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -26,11 +26,15 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $FreeBSD$ +# $FreeBSD$ device=/dev/r$1 +echo "preparing disk in $device" wormcontrol -f$device prepdisk double +echo "setting up to transfer data track" wormcontrol -f$device track data -dd if=$2 of=$device bs=20k +echo "writing data to disk" +dd if=$2 of=$device obs=2048 conv=osync +echo "fixating disk" wormcontrol -f$device fixate 1 onp - +echo "done!" |