aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/burncd/burncd.c
diff options
context:
space:
mode:
authorNate Lawson <njl@FreeBSD.org>2002-10-18 22:03:39 +0000
committerNate Lawson <njl@FreeBSD.org>2002-10-18 22:03:39 +0000
commit76ba4ecdad596812b20ae4c2ff13645605831905 (patch)
tree540c29f87f9954dc980102ee2621565072883c36 /usr.sbin/burncd/burncd.c
parenteb5b0bc42e2bd9517ce418b62a95f540f6625dce (diff)
* Add CDRIOC{READ,WRITE}SPEED ioctls to cd(4). Units are in KB/sec.
* Change atapi-cd ioctls to use the same units. * Change burncd, cdcontrol to convert CDROM speed to KB/sec before calling the ioctl. Add a "max" speed option for their command lines. This change does not break ABI but does change the units passed through the ioctl so 3rd party software that uses cdrio.h will have to convert (most likely by multiplying CDROM speed by 177 to get KB/s). PR: kern/36845 Submitted by: Philipp Mergenthaler <p@i609a.hadiko.de> (CAM ioctls) Reviewed by: sos, ken MFC after: 1 month
Notes
Notes: svn path=/head/; revision=105421
Diffstat (limited to 'usr.sbin/burncd/burncd.c')
-rw-r--r--usr.sbin/burncd/burncd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/burncd/burncd.c b/usr.sbin/burncd/burncd.c
index 1d3d2fd540ca..9f3738ef566b 100644
--- a/usr.sbin/burncd/burncd.c
+++ b/usr.sbin/burncd/burncd.c
@@ -116,7 +116,10 @@ main(int argc, char **argv)
break;
case 's':
- speed = atoi(optarg);
+ if (strcasecmp("max", optarg) == 0)
+ speed = CDR_MAX_SPEED;
+ else
+ speed = atoi(optarg);
if (speed <= 0)
errx(EX_USAGE, "Invalid speed: %s", optarg);
break;