diff options
Diffstat (limited to 'usr/src/cmd/cdrw/copycd.c')
| -rw-r--r-- | usr/src/cmd/cdrw/copycd.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/usr/src/cmd/cdrw/copycd.c b/usr/src/cmd/cdrw/copycd.c index 396b4ac55f..3194c0aeeb 100644 --- a/usr/src/cmd/cdrw/copycd.c +++ b/usr/src/cmd/cdrw/copycd.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -376,6 +375,19 @@ copy_cd(void) write_init(audio_cd ? TRACK_MODE_AUDIO : TRACK_MODE_DATA); } + /* + * Simulation writing can't happen on DVD+RW's + * or DVD+R's. According to the MMC spec this + * operation is not supported. So we should + * bail out if the user tries to do a simulation + * write. + */ + if (simulation && (device_type == DVD_PLUS_W || + device_type == DVD_PLUS)) { + err_msg(gettext("Media does not support simulated writing.\n")); + exit(1); + } + if (device_type == DVD_PLUS_W) { /* * DVD+RW requires that we format the media before |
