Received: by 10.223.185.116 with SMTP id b49csp5410156wrg; Wed, 7 Mar 2018 11:14:55 -0800 (PST) X-Google-Smtp-Source: AG47ELsw1xa56otlAvDGqX7sB7/SlEbBmtSkFUkPwMf1ysI58GSx8VFT9c7DEz/QmMkiKAo/bhiw X-Received: by 2002:a17:902:7e44:: with SMTP id a4-v6mr13491576pln.392.1520450095785; Wed, 07 Mar 2018 11:14:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520450095; cv=none; d=google.com; s=arc-20160816; b=voDYS2h063Ziak57q9TlbTbxcG4LluzRcBjyZyRmsAvmVtuiPyd5AINnaBweUJVVZt LD7Xf/ptYZGqmKT2DtTi+N7EsVgTGK3oZnC7A4HTkf6kHpjdAbGCnfSsbXIVBt3VScab jzdw+Ha7xuni3jYhXL/3MAbeVOxidVtMjM+/ipemsXuvcDP1wHO0DjyU8mSAhrRfliHy PnKAIBuaF+5Wbl26nPIFVDs0zTQt2FAfaWD8NvVyollEwUnY1RVpPFwkS1k6hViyqHTA 54LS1H0ylGsWPsR9Zy/dzXh3pPu6hZZNdcx4BFTK9GolzBaqFNxIqK1TcFgJg/pNASN3 Eucg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:from:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :date:arc-authentication-results; bh=vUc8f2/+9WclCAgZuZ23NJeamqYw3y8op3AZMDD/KhI=; b=M+iI1XPXqWbfLDnW7y9rFLM8QSJ0Lf3NwBtcxAK+bTeJvSWOAPZIBwbj82d9Us9G4v eMmJDJJFO5yd//bCXWs6/Q8qgxrAdBcyJdLQ26iCQQmAjcJT3+1AMvEcb5K+RvLIcXq9 dqfN5oRuKorC834SN2V6gsgjgwdvoSSNOCzGlz+nb14wy+R5qnauf8PoL0mUrnCf0swD gIQ9FcUpJ1ChFloGku08rq2V59H/vTyGrqmbascupqxphZ0Rx63u04wYqVR4TE/0cBrv JiXcSdLPKA2pw3ILU9dMDmcYlkI3MVFuEx5JnRt95EPL/ohETLDqaFleQI2JqmTVLnXV K/Sg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=csclub.uwaterloo.ca Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g59-v6si13477077plb.249.2018.03.07.11.14.41; Wed, 07 Mar 2018 11:14:55 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=csclub.uwaterloo.ca Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754642AbeCGTN0 (ORCPT + 99 others); Wed, 7 Mar 2018 14:13:26 -0500 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:50821 "EHLO caffeine.csclub.uwaterloo.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754579AbeCGTNZ (ORCPT ); Wed, 7 Mar 2018 14:13:25 -0500 Received: by caffeine.csclub.uwaterloo.ca (Postfix, from userid 20367) id 281D8C008E; Wed, 7 Mar 2018 14:13:24 -0500 (EST) Date: Wed, 7 Mar 2018 14:13:24 -0500 To: "Theodore Y. Ts'o" , Andreas Dilger , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: ext4 ignoring rootfs default mount options Message-ID: <20180307191324.qtloesy4zdlkfnwv@csclub.uwaterloo.ca> References: <20180306190315.puocf5bu3bfz6yct@csclub.uwaterloo.ca> <20180307040608.GA2462@thunk.org> <20180307151427.i6vbeq6kqo55cdgs@csclub.uwaterloo.ca> <20180307160856.GD7507@thunk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180307160856.GD7507@thunk.org> User-Agent: NeoMutt/20170113 (1.7.2) From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 07, 2018 at 11:08:56AM -0500, Theodore Y. Ts'o wrote: > This is where it's critcal to understand that the "tune2fs -o" changes > the *default* mount options. The key in the comment is the anything > different from the *filesystem* defaults (that is, the defaults of the > particular ext4 file system, as opposed to the global defaults). The > idea is that /proc/mounts, and /etc/mtab shows the options string that > if used in /etc/fstab, or in the mount command line, will replicate > the current mount option state. Furthermore, that /proc/mounts is the > minimal set of mount option strings. One more question about this. Trying to use tune2fs -E mount_opts to set some default options, and can't figure out how to enter two options at once. Doing: tune2fs -E mount_opts=nodelalloc,nouser_xattr /dev/sda3 gives the error: tune2fs 1.43.4 (31-Jan-2017) Bad options specified. Extended options are separated by commas, and may take an argument which is set off by an equals ('=') sign. Valid extended options are: clear_mmp hash_alg= mount_opts= stride= stripe_width= test_fs ^test_fs Apparently it gets confused by the , in the argument to mount_opts. Unfortunately , happens to be the separator required by ext4 for that field. So how does one use it? Sure in this case I can set one with -o and the other with -E, but in general there seems to be a small problem here, probably only in user space though. Seems tune2fs needs some change in how it deals with extended options that contain commas. -- Len Sorensen