Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp414945imm; Thu, 28 Jun 2018 23:26:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdoVlKXhdgvOA9uiQZuK774LO3gQj6gS3ZTXUTFGvWfCKHWAEPipeXadNP8CMfMcvNK4rVz X-Received: by 2002:a65:4a86:: with SMTP id b6-v6mr11347149pgu.91.1530253567854; Thu, 28 Jun 2018 23:26:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530253567; cv=none; d=google.com; s=arc-20160816; b=BjW91UBIosITNWM9FBH6MfSw2OqEH4QA4RFivk54v9sRNI7f4k6K1st3GGtFcCAzSD r7/fbCAUOkgQCIQ9zix1UGy/cQ5+jUyfq5Kh6KztMQLh9eVZ7vAyXvnIWKHVDMIZhJ6E bJzWwgZJuR4FIH0cf4snapzyG9vVsGA21Q46VBgoxFHFOws9D8GFGPDkPgA2dS3GPrwT tttKFlDOcfPJ+goe00s7T5KZk++LELIONILxw5zCmJzvYk8dUtbkLpREsnkclFiHFVGs jvAsyAZA1KGcCrR2+91XDW6MZu7r8eIv8hmg4y7CZO7dy69KjihI+XZOurcg5pEJ6lwG /4ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature:arc-authentication-results; bh=cvh7wdYAf5SrDD4ATZzl4f6p3kZaepf28aeSOhNAoiU=; b=CfAEF5GEsgnhg2z8a5pVOjF1hefIg/GrJkiQbsVd+QhtrBaZtAggDVm3SslVlaLEsm 7rkSoo+jQ2fVBSgl0peJMwlTJlEwpZ/gs/FU6kj4poc+6VB+pBiqKwfajQGp4EqqsGv4 VkBA91PzDTxJZ8hyzihgDj5PFopKDCtJ3QJCyb92RZX28LRsx+0SlJ76GSOI0/yB/tFA dsQ7mEMPU8UVZK3PJC34Cm5HecOZlYWCr0c7OdFHqXBFGBd1uKiKR+uzKnCCZXXof0WX lE1uSRfcAc5/jQxT/Q6BLR7yQt++rFKrHLtNdOUdyhZ+RHJV0NycBPGOfbB0XBThTAiX zc7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lBxkCZJt; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r11-v6si7086081pgt.632.2018.06.28.23.25.53; Thu, 28 Jun 2018 23:26:07 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lBxkCZJt; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936057AbeF1Whb (ORCPT + 99 others); Thu, 28 Jun 2018 18:37:31 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:43439 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934984AbeF1Wh2 (ORCPT ); Thu, 28 Jun 2018 18:37:28 -0400 Received: by mail-pg0-f68.google.com with SMTP id a14-v6so3079069pgw.10; Thu, 28 Jun 2018 15:37:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=cvh7wdYAf5SrDD4ATZzl4f6p3kZaepf28aeSOhNAoiU=; b=lBxkCZJt2JhC6hgCfsTgFFuWuw41446G7jU6vysL7DHfiKNGgeZFmE+dwbTkfFgDgo lHoWEQHFgYcGHTXtmDmqWRuLLOk8GpBwMZLcjVxGrYWLgSPTCviN/7NMu09NisQ7ZTvB 4IfnRXHJxsmq3KVtnc6xfyutNMUQf/K6DQI0U5IP1ouU+X8d+hgrKYFBqXv7Q7LLAEQS gdocE9ONvCHMoU7lUTQ9eSskIexKoSL7mDj6LWH2nY8ZfemrPQXMTcDmLSDy1EbD4r1y eg4nOTN/wUJNJekXQfv3Jy2SNIoCC+3A3CSWKHjBKT0oBxkpOG19L8T0zzjjk41IOCFN 6zLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=cvh7wdYAf5SrDD4ATZzl4f6p3kZaepf28aeSOhNAoiU=; b=Gs5n9lfSyvRE2/tdxtaEm4uvMgvKJt5uZnsbSMnWGMCmvefzr+h8IIdzqpIWppVQAW ohDJA0D4S6uZNNdvIiAy1e5PGaZGI1iFd8YiUt1WKIAw6EdFVtz+5MyhsUsyJptq3/Tl wWT+YMK3FxiaPozN1d29NkkjGTqeEKCOGnb/QfTmXBnrX6ANNrrjE2n7xuwdUi8aHx96 5t0SSibmtHtmNM9KpMuC19DYIIVwRzAA0B1wT89j2RjwLTemyYO2px0FQw4wWz96i34W 1dfIn4euNQIf6hSK3fovAN4ob/VT59LCNk4d5WOqsojmW6u+FwKzX3YIHnASglBwKg1/ L8bA== X-Gm-Message-State: APt69E3qSosmd361IN7zkKawufoOEJhbKxoz9KVeaFoKcinbySpNVQXP t2Hp1JWH5t07jA7tHS8tXKAe4nzi31eMtzFqS6gl6LaR X-Received: by 2002:a63:91c8:: with SMTP id l191-v6mr10111947pge.180.1530225447628; Thu, 28 Jun 2018 15:37:27 -0700 (PDT) MIME-Version: 1.0 From: Steve French Date: Thu, 28 Jun 2018 17:37:15 -0500 Message-ID: Subject: config files and how to have persistent Linux kernel Driver/File System configuration info saved To: linux-fsdevel Cc: LKML , samba-technical , CIFS Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ronnie brought up an interesting point about the problems consistently configuring file systems (or any Linux module for that matter) so that reboot doesn't wipe away security or performance tuning changes. Linux file systems typically allow configuration via various ways (I may have left some out) for example: - module load parameters (modprobe etc. e.g. for cachefs "deferecreate" or "deferlookup" can be configured, as can various parms in the nfs or cifs/smb3 modules) - Settings via /proc/fs/ or /sys/fs (e.g. /sys/fs/ext4/features) - Settings via mount parms Other than /etc/fstab which is fairly limited, AFAIK the only file system that has persistent configuration in text files is nfs - which allows a limited number of mount related settings to be set to defaults via nfsmount.conf Are there good examples of either text based configuration of Linux kernel (preferably file system drivers) e.g. something vaguely like /etc/btrfs or an /etc/xfs to set default security or performance related parameters consistently over reboot of machine, or even better something vaguely like Samba's "net conf" tools for setting keyword=value for various types of settings in a somewhat safer way (in a registry, which in Samba's case is cluster safe, and fairly robust) What is the recommended way to persist configuration settings for Linux drivers across reboot? -- Thanks, Steve