Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164982059
D39408.id119839.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
951 B
Referenced Files
None
Subscribers
None
D39408.id119839.diff
View Options
diff --git a/stand/libsa/zfs/zfs.c b/stand/libsa/zfs/zfs.c
--- a/stand/libsa/zfs/zfs.c
+++ b/stand/libsa/zfs/zfs.c
@@ -373,6 +373,19 @@
}
}
+static spa_t *
+spa_find_by_dev(struct zfs_devdesc *dev)
+{
+
+ if (dev->dd.d_dev->dv_type != DEVT_ZFS)
+ return (NULL);
+
+ if (dev->pool_guid == 0)
+ return (STAILQ_FIRST(&zfs_pools));
+
+ return (spa_find_by_guid(dev->pool_guid));
+}
+
/*
* if path is NULL, create mount structure, but do not add it to list.
*/
diff --git a/stand/libsa/zfs/zfsimpl.c b/stand/libsa/zfs/zfsimpl.c
--- a/stand/libsa/zfs/zfsimpl.c
+++ b/stand/libsa/zfs/zfsimpl.c
@@ -1367,19 +1367,6 @@
return (NULL);
}
-static spa_t *
-spa_find_by_dev(struct zfs_devdesc *dev)
-{
-
- if (dev->dd.d_dev->dv_type != DEVT_ZFS)
- return (NULL);
-
- if (dev->pool_guid == 0)
- return (STAILQ_FIRST(&zfs_pools));
-
- return (spa_find_by_guid(dev->pool_guid));
-}
-
static spa_t *
spa_create(uint64_t guid, const char *name)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 6, 5:22 AM (4 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36081479
Default Alt Text
D39408.id119839.diff (951 B)
Attached To
Mode
D39408: stand/zfs: Move spa_find_by_dev from zfsimpl.c to zfs.c
Attached
Detach File
Event Timeline
Log In to Comment