mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Prep for 0.2.1 tag
Minor fixes to headers to use debug macros Added /proc/sys/spl/version git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@90 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
|
||||
#define DEBUG_SUBSYSTEM S_GENERIC
|
||||
|
||||
char spl_version[16] = "SPL v" VERSION;
|
||||
|
||||
long spl_hostid = 0;
|
||||
EXPORT_SYMBOL(spl_hostid);
|
||||
|
||||
|
||||
+10
-1
@@ -20,7 +20,8 @@ static unsigned long table_max = ~0;
|
||||
|
||||
#define CTL_SPL 0x87
|
||||
enum {
|
||||
CTL_DEBUG_SUBSYS = 1, /* Debug subsystem */
|
||||
CTL_VERSION = 1, /* Version */
|
||||
CTL_DEBUG_SUBSYS, /* Debug subsystem */
|
||||
CTL_DEBUG_MASK, /* Debug mask */
|
||||
CTL_DEBUG_PRINTK, /* Force all messages to console */
|
||||
CTL_DEBUG_MB, /* Debug buffer size */
|
||||
@@ -371,6 +372,14 @@ static struct ctl_table spl_table[] = {
|
||||
/* NB No .strategy entries have been provided since
|
||||
* sysctl(8) prefers to go via /proc for portability.
|
||||
*/
|
||||
{
|
||||
.ctl_name = CTL_VERSION,
|
||||
.procname = "version",
|
||||
.data = spl_version,
|
||||
.maxlen = sizeof(spl_version),
|
||||
.mode = 0444,
|
||||
.proc_handler = &proc_dostring,
|
||||
},
|
||||
{
|
||||
.ctl_name = CTL_DEBUG_SUBSYS,
|
||||
.procname = "debug_subsystem",
|
||||
|
||||
Reference in New Issue
Block a user