Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146141590
D26185.id76213.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
572 B
Referenced Files
None
Subscribers
None
D26185.id76213.diff
View Options
Index: libexec/rc/rc.d/zvol
===================================================================
--- libexec/rc/rc.d/zvol
+++ libexec/rc/rc.d/zvol
@@ -17,8 +17,20 @@
stop_cmd="zvol_stop"
required_modules="zfs"
+zvol_import()
+{
+ local cachefile
+
+ for cachefile in /boot/zfs/zpool.cache /etc/zfs/zpool.cache; do
+ if [ -r $cachefile ]; then
+ zpool import -c $cachefile -a -N
+ fi
+ done
+}
+
zvol_start()
{
+ zvol_import
# Enable swap on ZVOLs with property org.freebsd:swap=on.
zfs list -H -o org.freebsd:swap,name -t volume |
while read state name; do
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 1, 4:20 AM (1 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29096912
Default Alt Text
D26185.id76213.diff (572 B)
Attached To
Mode
D26185: r364746 broke ZFS legacy mounts and zvol imports: fix
Attached
Detach File
Event Timeline
Log In to Comment