summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-10-06 14:55:17 -0700
committerBrian Behlendorf <[email protected]>2011-10-06 14:58:09 -0700
commit6b3b569df30d13ed7bbbff877cffc71290a52f12 (patch)
treeb6a1f9621ddb888d3de87d4282c15d2b23af4cc5 /module
parent39a87c69211aceef23889ceb4a33291e476237b9 (diff)
Remove /etc/hostid missing warning
No longer print the following warning to the console when the /etc/hostid file is missing. This is the expected default behavior. Keeping the hostid in sync with the initramfs is now accomplished by creating the /etc/hostid in the initramfs not on the system. SPL: The /etc/hostid file is not found. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module')
-rw-r--r--module/spl/spl-generic.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/module/spl/spl-generic.c b/module/spl/spl-generic.c
index 651d45ebc..1dedf76cf 100644
--- a/module/spl/spl-generic.c
+++ b/module/spl/spl-generic.c
@@ -414,12 +414,8 @@ hostid_read(void)
file = kobj_open_file(spl_hostid_path);
- if (file == (struct _buf *)-1) {
- printk(KERN_WARNING
- "SPL: The %s file is not found.\n",
- spl_hostid_path);
+ if (file == (struct _buf *)-1)
return -1;
- }
result = kobj_get_filesize(file, &size);