]> git.proxmox.com Git - mirror_spl-debian.git/commitdiff
Remove /etc/hostid missing warning
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 6 Oct 2011 21:55:17 +0000 (14:55 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 6 Oct 2011 21:58:09 +0000 (14:58 -0700)
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 <behlendorf1@llnl.gov>
module/spl/spl-generic.c

index 651d45ebc5a2ed86b813c7c47a30bfce4bf44b52..1dedf76cf22cf78d6e84f540dd6f129e51b35984 100644 (file)
@@ -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);