Project

General

Profile

Actions

Bug #9066

closed

xdf devices attach hybrid VTOC/EFI label

Added by Yuri Pankov over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2018-02-07
Due date:
% Done:

100%

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

Description

# devfsadm -Cv
devfsadm[102548]: verbose: removing file: /dev/dsk/c3t0d0
devfsadm[102548]: verbose: symlink /dev/dsk/c3t0d0s7 -> ../../devices/xpvd/xdf@768:h
devfsadm[102548]: verbose: removing file: /dev/rdsk/c3t0d0
devfsadm[102548]: verbose: symlink /dev/rdsk/c3t0d0s7 -> ../../devices/xpvd/xdf@768:h,raw
devfsadm[102548]: verbose: removing file: /dev/dsk/c3t0d0s7
devfsadm[102548]: verbose: symlink /dev/dsk/c3t0d0 -> ../../devices/xpvd/xdf@768:wd
devfsadm[102548]: verbose: removing file: /dev/rdsk/c3t0d0s7
devfsadm[102548]: verbose: symlink /dev/rdsk/c3t0d0 -> ../../devices/xpvd/xdf@768:wd,raw
devfsadm[102548]: verbose: removing file: /dev/dsk/c3t1d0
devfsadm[102548]: verbose: symlink /dev/dsk/c3t1d0s7 -> ../../devices/xpvd/xdf@832:h
devfsadm[102548]: verbose: removing file: /dev/rdsk/c3t1d0
devfsadm[102548]: verbose: symlink /dev/rdsk/c3t1d0s7 -> ../../devices/xpvd/xdf@832:h,raw
devfsadm[102548]: verbose: removing file: /dev/dsk/c3t1d0s7
devfsadm[102548]: verbose: symlink /dev/dsk/c3t1d0 -> ../../devices/xpvd/xdf@832:wd
devfsadm[102548]: verbose: removing file: /dev/rdsk/c3t1d0s7
devfsadm[102548]: verbose: symlink /dev/rdsk/c3t1d0 -> ../../devices/xpvd/xdf@832:wd,raw

This happens because we attach the label early in xdf_attach() hoping to
refresh the nodes in xdf_setready(), but as we lock the label, even when
we get the efi label in cmlb_validate(), we can't remove the "h" minor,
so we have both "wd" (efi) and "h" (vtoc) minors, which drives the
devfsadm crazy.

After the delphix fix adding the timeout for xdf devices to connect to
backend in xdf_attach(), we can postpone the real cmlb_attach() until
the device is connected.

Actions #1

Updated by Electric Monk over 4 years ago

  • Status changed from New to Closed
  • % Done changed from 50 to 100

git commit cd93da824a7d319a89427338e9055f8e3426b6fe

commit  cd93da824a7d319a89427338e9055f8e3426b6fe
Author: Yuri Pankov <yuri.pankov@nexenta.com>
Date:   2018-02-08T18:10:51.000Z

    9066 xdf devices attach hybrid VTOC/EFI label
    Reviewed by: Dan Fields <dan.fields@nexenta.com>
    Reviewed by: Evan Layton <evan.layton@nexenta.com>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Actions

Also available in: Atom PDF