summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2004-10-18 17:57:09 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-18 17:57:09 -0700
commited594d2d7d644a80402e4da598035538c454a3cf (patch)
tree94f1d04880dabee637699686cc095b0ed7aca2b9 /include/linux
parenta4946826c30c56a5830326552a395c5b6afc13ef (diff)
[PATCH] DVD+RW support
This patch adds support for using DVD+RW drives as writable block devices. The patch is based on work from: Andy Polyakov <appro@fy.chalmers.se> - Wrote the 2.4 patch Nigel Kukard <nkukard@lbsd.net> - Initial porting to 2.6.x It works for me using an Iomega Super DVD 8x USB drive. Nov 5 2001, Aug 8 2002. Modified by Andy Polyakov <appro@fy.chalmers.se> to support MMC-3 complaint DVD+RW units. Modified by Nigel Kukard <nkukard@lbsd.net> - support DVD+RW 2.4.x patch by Andy Polyakov <appro@fy.chalmers.se> This patch implements CDRW packet writing as a kernel block device. Usage instructions are in the packet-writing.txt file. A hint: If you don't want to wait for a complete disc format, you can format just a part of the disc. For example: cdrwtool -d /dev/hdc -m 10240 This will format 10240 blocks, ie 20MB. Signed-off-by: Peter Osterlund <petero2@telia.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/cdrom.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/cdrom.h b/include/linux/cdrom.h
index bcc9410761d9..73a1ade6a8e9 100644
--- a/include/linux/cdrom.h
+++ b/include/linux/cdrom.h
@@ -947,6 +947,8 @@ struct cdrom_device_info {
__u8 reserved : 6; /* not used yet */
int cdda_method; /* see flags */
__u8 last_sense;
+ __u8 media_written; /* dirty flag, DVD+RW bookkeeping */
+ unsigned short mmc3_profile; /* current MMC3 profile */
int for_data;
int (*exit)(struct cdrom_device_info *);
int mrw_mode_page;