Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13821432rwl; Wed, 4 Jan 2023 13:41:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXuVuAr0XdjoWzx6IF373YZ7Pv4ASuA0/YeRLQbXD98uEtDfFchrIkDJ1PcNunBHuLLlSgXh X-Received: by 2002:a17:902:f604:b0:192:55ab:88fe with SMTP id n4-20020a170902f60400b0019255ab88femr55240977plg.56.1672868468079; Wed, 04 Jan 2023 13:41:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672868468; cv=none; d=google.com; s=arc-20160816; b=vfcPb3HfGMY2NwaQkorVapeaiDqQiAcnSFFhdAqLx/Z2fww+ZpE3OAioyDweyum3Wh yopjul0SL2Jg99gN2EOpGnDRV19N1rb/dvAkhsnsfboptoLWKstLF1wm8GAkcl0ele7W fbo+DC1YdJbhURrVHKSsJGk46YP6dk8+w776bFv//y1TVXc0bnixsOAH0Mq63SoKclB3 0oWGoLfAqjzjzHIJa1JgjY07DjwCn269vsbjXxVGMcFnZxcSvL1kt53LXZdxgwsaKcA4 WWehogCUB7Q+Jjv625oqrOxCoy4ucFZhi9P1LZyMGnX6Efw0SvpePmwOnnRFhFqFOwqZ LcBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Qy2aWlh3AO9eHwlnZQt7Xj6mKeEwV4UqgSs43OJ7D20=; b=GkTeV1tjRNTHy/SZb6m754GxmREg6uMeroi2lF9iMwS2PzsZFvEajFCgQwxdaf1btx n9/gRUL1gTbXnQOpxMSP9G/351Z4BqyUNmevHmsd5ffqbMpVcHUJtat8NpYtlKHJanv2 l4dhPBi8Yk0PmTWx0sbloeszLT2etYNehCcC3nYCLQKRAku29L+3xd9kIEAxjory1H7M tCHIyFyLSbz3t5MWoUhX9tq1+0ptl1Z9dfN9h1MCccAP1nhGxyFR2Wy3xqnNAK4jk/7z 6gQJxpd8t2ogpdfCEhovaBaRK5YFy+1rcb4fdPT4b8sQyoIpLTPsWouv4Dm6fthQNBjM QV1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=isRVW1dz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c10-20020a170903234a00b001910b27870esi39550327plh.512.2023.01.04.13.41.00; Wed, 04 Jan 2023 13:41:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=isRVW1dz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240429AbjADV3q (ORCPT + 58 others); Wed, 4 Jan 2023 16:29:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240548AbjADV3Z (ORCPT ); Wed, 4 Jan 2023 16:29:25 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11BC3CC0 for ; Wed, 4 Jan 2023 13:27:34 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9CBFC61844 for ; Wed, 4 Jan 2023 21:27:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3D70C433D2; Wed, 4 Jan 2023 21:27:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672867653; bh=57CtgsMHkeFVcBeyAUuKsmZhu3NAy0h5TZ/By4Ry+rE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=isRVW1dz7l8BAG1DnM02Nfai5LchfSn1JuLkRPx87dHlTKk6r/BJYQLAQdjEfKvK9 O5ZSVqVrOOybDFdKR6srQDXGVjlapVG0HpfWpZdXAxklGGzu+qmyIl9yd1VpCivfXV Lmt2AMJWdu+6MZTpH8xG8i2e0v+oIANKQi9MdtewryxJ5PNbuQVwPnezQNNqQs/WPn EGTcLjkN1GIlXXKMNbzfvarVUtb8tELXxkBtauyYu+ZGdRDPQwVddDfPMUoY7i0u+M 6e2bOrN23CVuCKqe8clVrDekxbVZ3mczJctKhsTaYYelpV0kAgJSiiUr4ok1wdEudE bOkDXQcZDyLxw== Received: by pali.im (Postfix) id C9C31A3A; Wed, 4 Jan 2023 22:27:29 +0100 (CET) Date: Wed, 4 Jan 2023 22:27:29 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Linus Torvalds Cc: Linux Kernel Mailing List Subject: Re: Linux 6.2-rc1 Message-ID: <20230104212729.s6mdthwqdoxzbjga@pali> References: <20230104190115.ceglfefco475ev6c@pali> <20230104205640.o2uy2jk4v6yfm4w3@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230104205640.o2uy2jk4v6yfm4w3@pali> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 04 January 2023 21:56:40 Pali Rohár wrote: > On Wednesday 04 January 2023 11:25:41 Linus Torvalds wrote: > > On Wed, Jan 4, 2023 at 11:01 AM Pali Rohár wrote: > > > > > > Driver is still used and userspace tools for it are part of the udftools > > > project, which is still under active maintenance. More people already > > > informed me about this "surprise". > > > > Why is that driver used? > > > > It's *literally* pointless. It's just a shell that forwards ioctl's to > > the real drivers. > > > > > Any comments on this? Because until now nobody answered why this > > > actively used driver was removed from kernel without informing anybody: > > > > Well, it's been marked as deprecated for five years, so any kernel > > config should have gotten this notice for the help entry > > > > Note: This driver is deprecated and will be removed from the > > kernel in the near future! > > > > but I guess people didn't notice. > > > > It could be re-instated, but it really is a completely useless driver. > > Just use the *regular* device nodes, not the pointless pktcd ones. > > > > Is there any real reason why udftools can't just use the normal device node? > > > > The historical reason for this driver being pointless goes back *much* > > longer than five years - it used to be that the pktcd driver was > > special, and was the only thing that did raw commands. > > > > But the regular block layer was taught to do that back around 2004, so > > the "pktcd" driver has literally just been a pointless shell for > > almost two decades. > > > > And I know it was in 2004, because I actually did most of that "make > > SCSI commands generic" work myself (but had to go back to the old BK > > archives to find the exact date - it's been two decades, after all). > > > > I did it because I was fed up with the crazy pktcd driver requiring > > extra work, when I just wanted to write CD's on my regular IDE CD-ROM > > the obvious way. > > > > So if there is some reason to actually use the pktcd driver, please > > tell us what that is. > > > > Linus > > Last time I did big retest of optical media was two years ago. At that > time kernel was not able to mount CD-RW disc in full read-write mode > from the normal node /dev/cdrom. Via pktcdvd driver mapping it was > possible without any issue. Was there any change in last 5 (or more) > years in this CD-RW area? Mounting CD-RW media in read-only mode via > normal /dev/cdrom node always worked fine. Also "burning" CD-R media > with userspace burning tools on normal /dev/cdrom node also worked. > But here it is CD-RW media in read-write mode with kernel udf filesystem > driver without any userspace involved (after proper formatting). In commit where was pktcdvd dropped is written: https://git.kernel.org/torvalds/c/f40eb99897af665f11858dd7b56edcb62c3f3c67 * At the lowest level, there is the standard driver for the CD/DVD device, * such as drivers/scsi/sr.c. This driver can handle read and write requests, * but it doesn't know anything about the special restrictions that apply to * packet writing. One restriction is that write requests must be aligned to * packet boundaries on the physical media, and the size of a write request * must be equal to the packet size. Another restriction is that a * GPCMD_FLUSH_CACHE command has to be issued to the drive before a read * command, if the previous command was a write. * * The purpose of the packet writing driver is to hide these restrictions from * higher layers, such as file systems, and present a block device that can be * randomly read and written using 2kB-sized blocks. Were all these write restrictions implemented in sr.c driver? Do you remember other details? Because CD-RW support into kernel was really introduced in 2004 in this historical commit, but it was not for SCSI sr.c driver: https://git.kernel.org/history/history/c/2f8e2dc86c9876edca632e8ef2ab1f68d1b753f0