summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1999-09-21 20:05:54 +0000
committersos <sos@FreeBSD.org>1999-09-21 20:05:54 +0000
commite4d8633ce85e68d08a30bb58e984f353d8b6a590 (patch)
tree0a5ee97ca24fa227d6cb816d48dd7823b2012c87 /share
parent73b70d4d13907aa399a81ba42253053555298f93 (diff)
downloadFreeBSD-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')
-rwxr-xr-xshare/examples/atapi/burnaudio11
-rwxr-xr-xshare/examples/atapi/burndata12
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!"
OpenPOWER on IntegriCloud