Project

General

Profile

Bug #1788

"WARNING: Cannot lookup root device: /devices" is useless when rootfs is zfs

Added by Yuri Pankov about 9 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
kernel
Start date:
2011-11-18
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

"WARNING: Cannot lookup root device: /devices" (coming from http://src.illumos.org/source/xref/illumos-gate/usr/src/uts/common/fs/vfs.c#938) is useless when rootfs is zfs - rootfs.bo_name can't have leading '/' in this case, i_ddi_prompath_to_devfspath(rootfs.bo_name, ...) fails due to check in resolve_pathname(prompath, ...) (path starting with '/', http://src.illumos.org/source/xref/illumos-gate/usr/src/uts/common/os/devcfg.c#3840), hence the path isn't converted and lookupname(path, ...) is doomed to fail too. As a fix, we could skip entire code block if rootfs.bo_fstype is 'zfs'.

#1

Updated by Yuri Pankov about 8 years ago

  • Status changed from New to Resolved
  • Assignee set to Yuri Pankov
  • % Done changed from 0 to 100
  • Difficulty changed from Medium to Bite-size

Resolved in 13832:8e4bcbc31a4a.

Also available in: Atom PDF