~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/xfs/xfs_sysctl.h

Version: ~ [ linux-5.5-rc6 ] ~ [ linux-5.4.11 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.95 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.164 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.209 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.209 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.81 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0
  2 /*
  3  * Copyright (c) 2001-2005 Silicon Graphics, Inc.
  4  * All Rights Reserved.
  5  */
  6 #ifndef __XFS_SYSCTL_H__
  7 #define __XFS_SYSCTL_H__
  8 
  9 #include <linux/sysctl.h>
 10 
 11 /*
 12  * Tunable xfs parameters
 13  */
 14 
 15 typedef struct xfs_sysctl_val {
 16         int min;
 17         int val;
 18         int max;
 19 } xfs_sysctl_val_t;
 20 
 21 typedef struct xfs_param {
 22         xfs_sysctl_val_t sgid_inherit;  /* Inherit S_ISGID if process' GID is
 23                                          * not a member of parent dir GID. */
 24         xfs_sysctl_val_t symlink_mode;  /* Link creat mode affected by umask */
 25         xfs_sysctl_val_t panic_mask;    /* bitmask to cause panic on errors. */
 26         xfs_sysctl_val_t error_level;   /* Degree of reporting for problems  */
 27         xfs_sysctl_val_t syncd_timer;   /* Interval between xfssyncd wakeups */
 28         xfs_sysctl_val_t stats_clear;   /* Reset all XFS statistics to zero. */
 29         xfs_sysctl_val_t inherit_sync;  /* Inherit the "sync" inode flag. */
 30         xfs_sysctl_val_t inherit_nodump;/* Inherit the "nodump" inode flag. */
 31         xfs_sysctl_val_t inherit_noatim;/* Inherit the "noatime" inode flag. */
 32         xfs_sysctl_val_t xfs_buf_timer; /* Interval between xfsbufd wakeups. */
 33         xfs_sysctl_val_t xfs_buf_age;   /* Metadata buffer age before flush. */
 34         xfs_sysctl_val_t inherit_nosym; /* Inherit the "nosymlinks" flag. */
 35         xfs_sysctl_val_t rotorstep;     /* inode32 AG rotoring control knob */
 36         xfs_sysctl_val_t inherit_nodfrg;/* Inherit the "nodefrag" inode flag. */
 37         xfs_sysctl_val_t fstrm_timer;   /* Filestream dir-AG assoc'n timeout. */
 38         xfs_sysctl_val_t eofb_timer;    /* Interval between eofb scan wakeups */
 39         xfs_sysctl_val_t cowb_timer;    /* Interval between cowb scan wakeups */
 40 } xfs_param_t;
 41 
 42 /*
 43  * xfs_error_level:
 44  *
 45  * How much error reporting will be done when internal problems are
 46  * encountered.  These problems normally return an EFSCORRUPTED to their
 47  * caller, with no other information reported.
 48  *
 49  * 0    No error reports
 50  * 1    Report EFSCORRUPTED errors that will cause a filesystem shutdown
 51  * 5    Report all EFSCORRUPTED errors (all of the above errors, plus any
 52  *      additional errors that are known to not cause shutdowns)
 53  *
 54  * xfs_panic_mask bit 0x8 turns the error reports into panics
 55  */
 56 
 57 enum {
 58         /* XFS_REFCACHE_SIZE = 1 */
 59         /* XFS_REFCACHE_PURGE = 2 */
 60         /* XFS_RESTRICT_CHOWN = 3 */
 61         XFS_SGID_INHERIT = 4,
 62         XFS_SYMLINK_MODE = 5,
 63         XFS_PANIC_MASK = 6,
 64         XFS_ERRLEVEL = 7,
 65         XFS_SYNCD_TIMER = 8,
 66         /* XFS_PROBE_DMAPI = 9 */
 67         /* XFS_PROBE_IOOPS = 10 */
 68         /* XFS_PROBE_QUOTA = 11 */
 69         XFS_STATS_CLEAR = 12,
 70         XFS_INHERIT_SYNC = 13,
 71         XFS_INHERIT_NODUMP = 14,
 72         XFS_INHERIT_NOATIME = 15,
 73         XFS_BUF_TIMER = 16,
 74         XFS_BUF_AGE = 17,
 75         /* XFS_IO_BYPASS = 18 */
 76         XFS_INHERIT_NOSYM = 19,
 77         XFS_ROTORSTEP = 20,
 78         XFS_INHERIT_NODFRG = 21,
 79         XFS_FILESTREAM_TIMER = 22,
 80 };
 81 
 82 extern xfs_param_t      xfs_params;
 83 
 84 struct xfs_globals {
 85         int     log_recovery_delay;     /* log recovery delay (secs) */
 86         int     mount_delay;            /* mount setup delay (secs) */
 87         bool    bug_on_assert;          /* BUG() the kernel on assert failure */
 88 };
 89 extern struct xfs_globals       xfs_globals;
 90 
 91 #ifdef CONFIG_SYSCTL
 92 extern int xfs_sysctl_register(void);
 93 extern void xfs_sysctl_unregister(void);
 94 #else
 95 # define xfs_sysctl_register()          (0)
 96 # define xfs_sysctl_unregister()        do { } while (0)
 97 #endif /* CONFIG_SYSCTL */
 98 
 99 #endif /* __XFS_SYSCTL_H__ */
100 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp