Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
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 <behlendorf1@llnl.gov>
  • Loading branch information
behlendorf committed Oct 6, 2011
1 parent 39a87c6 commit 6b3b569
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions module/spl/spl-generic.c
Expand Up @@ -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);

Expand Down

0 comments on commit 6b3b569

Please sign in to comment.