29 lines
830 B
Diff
29 lines
830 B
Diff
From 7559daf38acc293474d3d2a13ecf746bc7507a11 Mon Sep 17 00:00:00 2001
|
|
From: Darik Horn <dajhorn@vanadac.com>
|
|
Date: Tue, 11 Oct 2011 18:32:58 -0500
|
|
Subject: [PATCH 1/2] Revert "Remove /etc/hostid missing warning"
|
|
|
|
This reverts commit 6b3b569df30d13ed7bbbff877cffc71290a52f12.
|
|
---
|
|
module/spl/spl-generic.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
Index: b/module/spl/spl-generic.c
|
|
===================================================================
|
|
--- a/module/spl/spl-generic.c
|
|
+++ b/module/spl/spl-generic.c
|
|
@@ -471,8 +471,12 @@
|
|
|
|
file = kobj_open_file(spl_hostid_path);
|
|
|
|
- if (file == (struct _buf *)-1)
|
|
+ if (file == (struct _buf *)-1) {
|
|
+ printk(KERN_WARNING
|
|
+ "SPL: The %s file is not found.\n",
|
|
+ spl_hostid_path);
|
|
return -1;
|
|
+ }
|
|
|
|
result = kobj_get_filesize(file, &size);
|
|
|