diff options
Diffstat (limited to 'module/spl/spl-generic.c')
-rw-r--r-- | module/spl/spl-generic.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/module/spl/spl-generic.c b/module/spl/spl-generic.c index 290c5275d..aaf1a4c10 100644 --- a/module/spl/spl-generic.c +++ b/module/spl/spl-generic.c @@ -444,12 +444,16 @@ spl_fini(void) void spl_setup(void) { + int rc; + /* * At module load time the pwd is set to '/' on a Solaris system. * On a Linux system will be set to whatever directory the caller * was in when executing insmod/modprobe. */ - vn_set_pwd("/"); + rc = vn_set_pwd("/"); + if (rc) + printk("SPL: Warning unable to set pwd to '/': %d\n", rc); } EXPORT_SYMBOL(spl_setup); |