Server IP : 85.214.239.14 / Your IP : 3.138.137.244 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/2/task/2/cwd/usr/share/augeas/lenses/dist/ |
Upload File : |
(* Module: Kdump Parses /etc/kdump.conf Author: Roman Rakus <rrakus@redhat.com> About: References manual page kdump.conf(5) About: License This file is licenced under the LGPL v2+, like the rest of Augeas. About: Configuration files This lens applies to /etc/kdump.conf. See <filter>. *) module Kdump = autoload xfm (************************************************************************ * Group: USEFUL PRIMITIVES *************************************************************************) let empty = Util.empty let comment = Util.comment let value_to_eol = store /[^ \t\n#][^\n#]*[^ \t\n#]|[^ \t\n#]/ let int_to_eol = store Rx.integer let yn_to_eol = store ("yes" | "no") let delimiter = Util.del_ws_spc let eol = Util.eol let value_to_spc = store Rx.neg1 let key_to_space = key /[A-Za-z0-9_.\$-]+/ let eq = Sep.equal (************************************************************************ * Group: ENTRY TYPES *************************************************************************) let list (kw:string) = counter kw . Build.key_value_line_comment kw delimiter (Build.opt_list [ seq kw . value_to_spc ] delimiter) comment let mdl_key_value = [ delimiter . key_to_space . ( eq . value_to_spc)? ] let mdl_options = [ key_to_space . mdl_key_value+ ] let mod_options = [ key "options" . delimiter . mdl_options . (comment|eol) ] (************************************************************************ * Group: ENTRIES *************************************************************************) (* Got from mount(8) *) let fs_types = "adfs" | "affs" | "autofs" | "cifs" | "coda" | "coherent" | "cramfs" | "debugfs" | "devpts" | "efs" | "ext" | "ext2" | "ext3" | "ext4" | "hfs" | "hfsplus" | "hpfs" | "iso9660" | "jfs" | "minix" | "msdos" | "ncpfs" | "nfs" | "nfs4" | "ntfs" | "proc" | "qnx4" | "ramfs" | "reiserfs" | "romfs" | "squashfs" | "smbfs" | "sysv" | "tmpfs" | "ubifs" | "udf" | "ufs" | "umsdos" | "usbfs" | "vfat" | "xenix" | "xfs" | "xiafs" let simple_kws = "raw" | "net" | "path" | "core_collector" | "kdump_post" | "kdump_pre" | "default" | "ssh" | "sshkey" | "dracut_args" | "fence_kdump_args" let int_kws = "force_rebuild" | "override_resettable" | "debug_mem_level" | "link_delay" | "disk_timeout" let yn_kws = "auto_reset_crashkernel" let option = Build.key_value_line_comment ( simple_kws | fs_types ) delimiter value_to_eol comment | Build.key_value_line_comment int_kws delimiter int_to_eol comment | Build.key_value_line_comment yn_kws delimiter yn_to_eol comment | list "extra_bins" | list "extra_modules" | list "blacklist" | list "fence_kdump_nodes" | mod_options (* View: lns The options lens *) let lns = ( empty | comment | option )* let filter = incl "/etc/kdump.conf" let xfm = transform lns filter