Page MenuHomeFreeBSD

D37343.diff
No OneTemporary

D37343.diff

diff --git a/stand/libofw/devicename.c b/stand/libofw/devicename.c
--- a/stand/libofw/devicename.c
+++ b/stand/libofw/devicename.c
@@ -31,7 +31,6 @@
#include "bootstrap.h"
#include "libofw.h"
-#include "libzfs.h"
static int ofw_parsedev(struct ofw_devdesc **, const char *, const char **);
@@ -109,15 +108,16 @@
printf("ofw_parsedev: malloc failed\n");
return ENOMEM;
}
- strcpy(idev->d_path, name);
idev->dd.d_dev = dv;
- if (dv->dv_type == DEVT_ZFS) {
+ if (dv->dv_parsedev != NULL) {
p = devspec + strlen(dv->dv_name);
free(idev);
- err = zfs_parsedev((struct devdesc **)&idev, p, path);
+ err = dv->dv_parsedev((struct devdesc **)&idev, p, path);
if (err != 0) {
return (err);
}
+ } else {
+ strcpy(idev->d_path, name);
}
if (dev == NULL) {

File Metadata

Mime Type
text/plain
Expires
Sun, Sep 29, 8:20 PM (50 m, 4 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13144154
Default Alt Text
D37343.diff (807 B)

Event Timeline