Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157302852
D18558.id52007.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
608 B
Referenced Files
None
Subscribers
None
D18558.id52007.diff
View Options
Index: stand/libsa/zfs/zfs.c
===================================================================
--- stand/libsa/zfs/zfs.c
+++ stand/libsa/zfs/zfs.c
@@ -527,10 +527,11 @@
pa.fd = open(devname, O_RDONLY);
if (pa.fd == -1)
return (ENXIO);
- /* Probe the whole disk */
- ret = zfs_probe(pa.fd, pool_guid);
- if (ret == 0)
- return (0);
+ /*
+ * We will not probe the whole disk, we can not boot from such
+ * disks and some systems will misreport the disk sizes and will
+ * hung while accessing disk past the end.
+ */
/* Probe each partition */
ret = ioctl(pa.fd, DIOCGMEDIASIZE, &mediasz);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 21, 4:10 AM (5 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33373002
Default Alt Text
D18558.id52007.diff (608 B)
Attached To
Mode
D18558: loader: zfs reader should not probe partitionless disks
Attached
Detach File
Event Timeline
Log In to Comment