linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* config files and how to have persistent Linux kernel Driver/File System configuration info saved
@ 2018-06-28 22:37 Steve French
  2018-06-28 22:58 ` Theodore Y. Ts'o
  0 siblings, 1 reply; 6+ messages in thread
From: Steve French @ 2018-06-28 22:37 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: LKML, samba-technical, CIFS

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-06-29 19:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-28 22:37 config files and how to have persistent Linux kernel Driver/File System configuration info saved Steve French
2018-06-28 22:58 ` Theodore Y. Ts'o
2018-06-28 23:21   ` ronnie sahlberg
2018-06-28 23:24     ` Steve French
2018-06-29  4:44       ` Dave Chinner
2018-06-29 19:53         ` Steve French

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).