Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4270948pxb; Tue, 19 Apr 2022 22:34:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyq/jUSHAd4nJD6B/HZJAd5JsQIDM3qNAjJdOT3SLB6fH4l0oPCXmzrrVCphhU9SaBOkvnL X-Received: by 2002:a50:d087:0:b0:41d:7ea6:462a with SMTP id v7-20020a50d087000000b0041d7ea6462amr21521978edd.355.1650432858066; Tue, 19 Apr 2022 22:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650432858; cv=none; d=google.com; s=arc-20160816; b=qjLkcxoFm/Frw/E4NVhfsAjViRXX4STrKaS3+URScInV0wt3OCNQdZrAIMHu69BwnZ m/0ZEmax1tzSZOGOrI5TbzaacMbltK9CvTppdxyw4f0KqRF7mOaWstwHzbozTBDVy4SF x0VXZynSrmRU0O96nNoDMh99HAaJKvDf2TZskj7DCUPQ1FlzCh9qGVi8F7s55cMxNhe0 6WmtpbwxOQ0Ydev80+B1REPAZpB1oN/q9VWnAYDlga+5iqwt1C3D2ptwALAZIia71ULy 0rZc+5kh+SmXYR7azdFzKnbTk8aAAVOjnYVZpcNeD/3HAiTuyo5IFN+85PA0dyqEJhZd X4pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2xC56SbahR+A86XAZ1Xr5CheL4zTUR2Yl2PX5kgsh60=; b=xZi0ZbSZrvNd7TXL6xHkqPvr3gubhVt+XvzBwVpOfqiDpzNZ/BKKWNzfpt9b/rxY+i TUQlm+j/EidOpXAHWRyDgu3G5mr8SS2ywJu4/TSJk3hF+bq/yaV9ODyL3XaO4Lp+n9vW 3LcS7/3/5cfxizKCRF+2nrLA70M4mV30IK01SlYOk12za8+FVkz2d9GF5V5K08nVfOFO Giv7vwwdV/2rm0utxtFDmvxDJt5SNG66qBWeY6Vb1Bg/0C6p5boYgl4vtgwEmRJKJrAj TpQ8G3y+iXFfB0imV+z3yyg7UkhX1npjSwX9QiM6cA8bjfZ3+gRatB6xZKsam2nHLnz1 PIxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@philpotter-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=jVefXpea; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w15-20020a056402268f00b00423ed4c5c02si753296edd.205.2022.04.19.22.33.54; Tue, 19 Apr 2022 22:34:18 -0700 (PDT) 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=@philpotter-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=jVefXpea; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347922AbiDRVHF (ORCPT + 99 others); Mon, 18 Apr 2022 17:07:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242971AbiDRVHE (ORCPT ); Mon, 18 Apr 2022 17:07:04 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 578B22A70A for ; Mon, 18 Apr 2022 14:04:23 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id c10so19936710wrb.1 for ; Mon, 18 Apr 2022 14:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philpotter-co-uk.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=2xC56SbahR+A86XAZ1Xr5CheL4zTUR2Yl2PX5kgsh60=; b=jVefXpeaUqA2UhMsfdWRxwA6dVOS/OubaUhUbzQiNiw6Sh3TSAJzNrupAImg7ews6u ouky8CJKsd6yjdaomtrNrSxPMKZP+c97cnIiq7aCvfyOB3Zo2igqk7ZzmDrKYxU+tRSO KQDZwYpTzB/quuQMmvwf+tJfSs56zyhk/X1TmvSqzjrNzoiyiPuOgilveEhPfr6UrDik LMDrw2bn4aNZwLp0nSoYHc3bU6cNSlhsY/a960ueZeONiv4HRR+50dS6yF1nnlKXtx+h 4Ahw7F5i6QXCSQxeJ7S+OQuPdWULZcgWYcHIbC+AL6xSQF993ov+8VTg+Ti7DdcevQrz WlVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=2xC56SbahR+A86XAZ1Xr5CheL4zTUR2Yl2PX5kgsh60=; b=XjJfdOr6Ae2vsD1t+I4VZ+XWggrpFarGRa/tqCjDLzPozIZygUoTHX5ZvB1Xlm3675 ev7sQkp42zTiYNLdfBrVK7m39Sq9tKzOKM2d41dlZiESJxsqON+0ueYLpCixHYMVOAC8 i8uKYZ0H1FvH1dJs4IjTILz7kABlNS1AQ2uoueyaZT8WII0KAMmqmEwscpqCYisIR68H vxH+63Bd7mbIoLgdQurDu2bpv9aDu3ZYMTHFlYM3NQtLt1OK9cdPHmX0ym4l4HQjvnPb XQm54+Mzuu/WNZz6YIEzcTEkvpEYh/c1HUfNIKM9DauaqZW3SRJ3ylWcQa/dzIEcdYU2 ai5w== X-Gm-Message-State: AOAM533Q3saPZfUqV8X/+iSU4hU5IUNsgntVJDMDAUiMA3FLS/dy17q2 O/Nv2u94tTNihpPcIHYpPaVoSg== X-Received: by 2002:a5d:47aa:0:b0:20a:8b96:5b2c with SMTP id 10-20020a5d47aa000000b0020a8b965b2cmr8152221wrb.621.1650315861737; Mon, 18 Apr 2022 14:04:21 -0700 (PDT) Received: from equinox (2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.a.1.e.e.d.f.d.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:dfde:e1a0::2]) by smtp.gmail.com with ESMTPSA id n5-20020adf8b05000000b00207a4fd0185sm11234964wra.7.2022.04.18.14.04.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 14:04:21 -0700 (PDT) Date: Mon, 18 Apr 2022 22:04:18 +0100 From: Phillip Potter To: Jens Axboe , Enze Li Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: [PATCH] cdrom: do not print info list when there is no cdrom device Message-ID: References: <20220408084221.1681592-1-lienze@kylinos.cn> <25390602-cfa0-dba3-bfbc-a35ed6b44bcf@kernel.dk> <20220409122530.60353fcd@asus> <226c4072-a3ca-a5a4-1b7f-f7104b43af03@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <226c4072-a3ca-a5a4-1b7f-f7104b43af03@kernel.dk> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Mon, Apr 11, 2022 at 10:51:28AM -0600, Jens Axboe wrote: > > 20 -- Modify sysctl/proc interface. I plan on having one directory per > > 21 drive, with entries for outputing general drive information, and sysctl > > 22 based tunable parameters such as whether the tray should auto-close for > > 23 that drive. Suggestions (or patches) for this welcome! > > ================================================ > > I'd like to know if the relevant patches are still welcome? > > > > IIUC, the TODO List says that we need to implement a modification of the > > following form: > > ---------------------------------------------------------------------------------------------------------- > > $ tree /proc/sys/dev/cdrom > > /proc/sys/dev/cdrom > > |--sr0--autoclose > > | |-autoeject > > | |-check_media > > | |-debug > > | |-info > > | |-lock > > | > > |--sr1--autoclose > > | |-autoeject > > | |-check_media > > | |-debug > > | |-info > > | |-lock > > | > > |--sr2 ... > > . > > . > > . > > ---------------------------------------------------------------------------------------------------------- > > I would appreciate it if you could give me some advice. > > Let's not do that, this advice is perhaps 20 years old. /proc isn't to > be used for anything like that these days. > > -- > Jens Axboe > Hi Both, I will send a patch alongside others during the next merge window to remove this TODO section for now. It was part of the initial mainline git commit (17 years and two days ago), so it (as Jens says) is almost certainly even older than this. Regards, Phil