From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S267919AbUHPTve (ORCPT ); Mon, 16 Aug 2004 15:51:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267914AbUHPTve (ORCPT ); Mon, 16 Aug 2004 15:51:34 -0400 Received: from vsmtp14.tin.it ([212.216.176.118]:22264 "EHLO vsmtp14.tin.it") by vger.kernel.org with ESMTP id S267919AbUHPTvU (ORCPT ); Mon, 16 Aug 2004 15:51:20 -0400 Subject: Re: Packet writing problems From: Frediano Ziglio To: Peter Osterlund Cc: axboe@suse.de, linux-kernel@vger.kernel.org, Andrew Morton In-Reply-To: References: <1092669361.4254.24.camel@freddy> Content-Type: text/plain Message-Id: <1092685901.4255.5.camel@freddy> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Mon, 16 Aug 2004 21:51:41 +0200 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Il lun, 2004-08-16 alle 21:09, Peter Osterlund ha scritto: > ... > > > > > > DVD+RW > > > mkudffs /dev/hdc does not works... doing a strace opening /dev/hdc for > > > read/write open returns EROFS (or similar). I tried with blockdev > > > --setrw but still same errors... > > > > I see two problems. The first problem is that the Mt Rainier detection > > can succeed when it shouldn't, because it forgets to check that the > > "GET CONFIGURATION" command returns the MRW feature number. > > The second problem is in the dvdrw-support patch in the -mm kernel. > (This patch is also included in the patch you are using.) > > The problem is that some drives fail the "GET CONFIGURATION" command > when asked to only return 8 bytes. This happens for example on my > drive, which is identified as: > > hdc: HL-DT-ST DVD+RW GCA-4040N, ATAPI CD/DVD-ROM drive > > Since the cdrom_mmc3_profile() function already allocates 32 bytes for > the reply buffer, this patch is enough to make the command succeed on > my drive. > With these two patch both DVD-RW and DVD+RW works !!! Thanks you very much, it's a dream coming true. It seems that DVD+RW works better (it's faster) with packet device than with direct writing (mounting /dev/hdc). When I'll get back to work (on September) I'll test your patch with USB 2 device and another DVD writer. freddy77