Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2773995imm; Thu, 24 May 2018 15:58:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoX1n3b5JZWTcESvd1T11M2e2d4qg12sdTBXL/nd+Awd/5pF9+L5Sf6Js+4Q1yR9YVgUeFa X-Received: by 2002:a17:902:7c95:: with SMTP id y21-v6mr9328750pll.76.1527202724877; Thu, 24 May 2018 15:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527202724; cv=none; d=google.com; s=arc-20160816; b=EGPNcOUxUUKdZRanDwszqvQ+lBb1FQYFKm2wFqY8My9XNyHRSvEYKjDSNxJCFinZxq XUIySA0Ed5ELg+t8hVug5EGmhnQGSgT9mg9zy3edvBKHz/kMCOBaOrHtYWUe+hyErsfK iLqo8vvEu4mGaJT34gubV3+UujD5+p3s4cZUxyPrmWxMOOnSHqB/beo+jRjM5Sy+CPXb jIAz5zbY/DfITVmStGRtZJspH7wqmg8N6I4yc7XpZUQxK5Y4kNUNaOTHI4BDop19eMMc 2uYIoK6ouALNCN28xyFjc0u8xdt/aKQ2CJACzwsr62yur5jAFrkZBaGH1IT4E6Xf21T6 QRBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=Q7anB+FOAsHAro2s1ZAJXcuI1ovYj/XzlmP/CYtKKeg=; b=jul9aAlmPq/OAHH6uGLtQQjQ9wnnzgJoczvyK8B9WurTZ6AFRxnHqCiM+VZpB1Yytg 6TCXp0s/u4gcPcGFtrMVnXTfZY9lYLiV0ephWOUpraje944yNldCrFWfV0W2PA+Jx5Lm CwoPu7VBb3p/yHAyZhbyoHL9eWpo7pKXDhpCplQsFbS+nrUups9N1gR4sNICKXlNj56B AK7Afg8bkeHd1bTnvPzfN7vLoWPHEwJyy6+Z9llUAR2MiMkN+HH4F1zTmi8vGrTzrzKE yvnEsuw7hFCJkttiw9IfaWR5d07InW0vKqccuKsFuQMGCmfl8EAcDv+zaldPxVELZcgs Breg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6-v6si3538235pln.250.2018.05.24.15.58.30; Thu, 24 May 2018 15:58:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968392AbeEXNBQ (ORCPT + 99 others); Thu, 24 May 2018 09:01:16 -0400 Received: from smtprelay0156.hostedemail.com ([216.40.44.156]:47911 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935591AbeEXNBK (ORCPT ); Thu, 24 May 2018 09:01:10 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id CC7DD18224D69; Thu, 24 May 2018 13:01:09 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:960:967:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2525:2559:2563:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:6737:7903:9025:10004:10400:10848:11232:11658:11914:12043:12048:12740:12760:12895:13069:13311:13357:13439:14096:14097:14181:14659:14721:21080:21433:21627:30054:30070:30091,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:23,LUA_SUMMARY:none X-HE-Tag: lock65_7dc2de7b8fe0f X-Filterd-Recvd-Size: 3334 Received: from XPS-9350.home (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf12.hostedemail.com (Postfix) with ESMTPA; Thu, 24 May 2018 13:01:04 +0000 (UTC) Message-ID: Subject: Re: [PATCH] block drivers/block: Use octal not symbolic permissions From: Joe Perches To: Jens Axboe , "Ed L. Cashin" , Philipp Reisner , Lars Ellenberg , Jiri Kosina , Josef Bacik , linux-block@vger.kernel.org, Ilya Dryomov , Sage Weil , Alex Elder , Philip Kelleher , "Michael S. Tsirkin" , Jason Wang , Konrad Rzeszutek Wilk , Roger Pau =?ISO-8859-1?Q?Monn=E9?= , Boris Ostrovsky , Juergen Gross Cc: linux-kernel@vger.kernel.org, drbd-dev@lists.linbit.com, nbd@other.debian.org, ceph-devel@vger.kernel.org, virtualization@lists.linux-foundation.org, xen-devel@lists.xenproject.org Date: Thu, 24 May 2018 06:01:02 -0700 In-Reply-To: <539cc400-28d7-66df-eb24-77fe95d617a2@kernel.dk> References: <5e97a292c1ba38a6b5a0caa271d85dc3de1b2aa7.1527105857.git.joe@perches.com> <6bf44255-145f-bf14-e254-860731ff9296@kernel.dk> <56ee8810463b6c537ca0c10c9f82e6d922acd1f1.camel@perches.com> <539cc400-28d7-66df-eb24-77fe95d617a2@kernel.dk> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-05-24 at 06:47 -0600, Jens Axboe wrote: > On 5/23/18 4:35 PM, Joe Perches wrote: > > On Wed, 2018-05-23 at 15:27 -0600, Jens Axboe wrote: > > > On 5/23/18 2:05 PM, Joe Perches wrote: > > > > Convert the S_ symbolic permissions to their octal equivalents as > > > > using octal and not symbolic permissions is preferred by many as more > > > > readable. > > > > > > > > see: https://lkml.org/lkml/2016/8/2/1945 > > > > > > > > Done with automated conversion via: > > > > $ ./scripts/checkpatch.pl -f --types=SYMBOLIC_PERMS --fix-inplace > > > > > > > > Miscellanea: > > > > > > > > o Wrapped modified multi-line calls to a single line where appropriate > > > > o Realign modified multi-line calls to open parenthesis > > > > > > Honestly, I see this as pretty needless churn. > > > > btw: > > > > There is currently a mixture of symbolic and octal > > permissions uses in block and drivers/block > > > > ie: 94 octal and 146 symbolic uses. > > > > If this is applied, all would become octal. > > That does help justify the change. My main worry here is creating > unnecessary conflicts, which is always annoying. But it's even more > annoying when the change creating the conflict isn't really that > important at all. Case in point, the patch doesn't apply to the > for-4.18/block branch that it should go into... Done against most recent -next as it's basically impossible to do anything against multiple private trees. Also, the script that generated the patch is in the changelog so it's simple to rerun.