mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 23:02:02 -04:00
Eliminate useless adjustments of aliased device.
No need to set any fields in the cloned device. devfs uses symlinks, so the adev entries returned won't be presented to the drivers. Since we don't save copies, nothing else will see them. This code came from the old compat code, and it appears to be obsolete or never needed. Submitted by: kib@ Differential Review: https://reviews.freebsd.org/D11919
This commit is contained in:
parent
eabfbad050
commit
36d6e01474
1 changed files with 0 additions and 3 deletions
|
|
@ -369,9 +369,6 @@ g_dev_taste(struct g_class *mp, struct g_provider *pp, int insist __unused)
|
|||
__func__, gap->ga_alias, error);
|
||||
continue;
|
||||
}
|
||||
adev->si_flags |= SI_UNMAPPED;
|
||||
adev->si_iosize_max = dev->si_iosize_max;
|
||||
adev->si_drv2 = dev->si_drv2;
|
||||
snprintf(buf, sizeof(buf), "cdev=%s", gap->ga_alias);
|
||||
devctl_notify_f("GEOM", "DEV", "CREATE", buf, M_WAITOK);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue