PacketCD

Attachment 'pktcdvd_len_fix+udf_uid_fix.diff'

Download

   1 diff -r -u linux-source-2.6.15/drivers/block/pktcdvd.c linux-source-2.6.15.new/drivers/block/pktcdvd.c
   2 --- linux-source-2.6.15/drivers/block/pktcdvd.c	2005-11-14 12:44:28.000000000 -0500
   3 +++ linux-source-2.6.15.new/drivers/block/pktcdvd.c	2006-01-03 20:00:01.000000000 -0500
   4 @@ -1639,7 +1639,7 @@
   5  	pd->settings.size = be32_to_cpu(ti.fixed_packet_size) << 2;
   6  	if (pd->settings.size == 0) {
   7  		printk("pktcdvd: detected zero packet size!\n");
   8 -		pd->settings.size = 128;
   9 +		return -ENXIO;
  10  	}
  11  	if (pd->settings.size > PACKET_MAX_SECTORS) {
  12  		printk("pktcdvd: packet size is too big\n");
  13 Only in linux-source-2.6.15.new/drivers/block: pktcdvd.c~
  14 diff -r -u linux-source-2.6.15/fs/udf/inode.c linux-source-2.6.15.new/fs/udf/inode.c
  15 --- linux-source-2.6.15/fs/udf/inode.c	2005-11-02 11:29:10.000000000 -0500
  16 +++ linux-source-2.6.15.new/fs/udf/inode.c	2006-01-03 19:02:23.000000000 -0500
  17 @@ -1342,9 +1342,11 @@
  18  
  19  	if (inode->i_uid != UDF_SB(inode->i_sb)->s_uid)
  20  		fe->uid = cpu_to_le32(inode->i_uid);
  21 +	else fe->uid = cpu_to_le32(-1);
  22  
  23  	if (inode->i_gid != UDF_SB(inode->i_sb)->s_gid)
  24  		fe->gid = cpu_to_le32(inode->i_gid);
  25 +	else fe->gid = cpu_to_le32(-1);
  26  
  27  	udfperms =	((inode->i_mode & S_IRWXO)     ) |
  28  			((inode->i_mode & S_IRWXG) << 2) |
  29 diff -r -u linux-source-2.6.15/include/linux/pktcdvd.h linux-source-2.6.15.new/include/linux/pktcdvd.h
  30 --- linux-source-2.6.15/include/linux/pktcdvd.h	2005-11-02 11:29:13.000000000 -0500
  31 +++ linux-source-2.6.15.new/include/linux/pktcdvd.h	2006-01-02 21:48:41.000000000 -0500
  32 @@ -114,7 +114,7 @@
  33  
  34  struct packet_settings
  35  {
  36 -	__u8			size;		/* packet size in (512 byte) sectors */
  37 +	__u32			size;		/* packet size in (512 byte) sectors */
  38  	__u8			fp;		/* fixed packets */
  39  	__u8			link_loss;	/* the rest is specified
  40  						 * as per Mt Fuji */
  41 @@ -169,7 +169,7 @@
  42  #if (PAGE_SIZE % CD_FRAMESIZE) != 0
  43  #error "PAGE_SIZE must be a multiple of CD_FRAMESIZE"
  44  #endif
  45 -#define PACKET_MAX_SIZE		32
  46 +#define PACKET_MAX_SIZE		128
  47  #define PAGES_PER_PACKET	(PACKET_MAX_SIZE * CD_FRAMESIZE / PAGE_SIZE)
  48  #define PACKET_MAX_SECTORS	(PACKET_MAX_SIZE * CD_FRAMESIZE >> 9)
  49  

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2006-01-04 04:49:51, 0.6 KB) [[attachment:15-storage-pktcdvd.fdi]]
  • [get | view] (2006-01-04 04:49:12, 2.1 KB) [[attachment:pktcdvd_len_fix+udf_uid_fix.diff]]
 All files | Selected Files: delete move to page

You are not allowed to attach a file to this page.