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:
behlendo
2008-04-24 17:41:23 +00:00
parent 1bac409fa3
commit 3561541c24
8 changed files with 50 additions and 24 deletions
+2
View File
@@ -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
View File
@@ -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",