Page MenuHomeFreeBSD

D18558.id52007.diff
No OneTemporary

D18558.id52007.diff

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

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)

Event Timeline