Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171111689
D19142.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D19142.diff
View Options
Index: head/stand/i386/zfsboot/zfsboot.c
===================================================================
--- head/stand/i386/zfsboot/zfsboot.c
+++ head/stand/i386/zfsboot/zfsboot.c
@@ -545,32 +545,19 @@
char *sec;
unsigned i;
- /*
- * If we find a vdev on the whole disk, stop here.
- */
- if (vdev_probe(vdev_read2, zdsk, NULL) == 0)
- return;
-
#ifdef LOADER_GELI_SUPPORT
/*
- * Taste the disk, if it is GELI encrypted, decrypt it and check to see if
- * it is a usable vdev then. Otherwise dig
- * out the partition table and probe each slice/partition
- * in turn for a vdev or GELI encrypted vdev.
+ * Taste the disk, if it is GELI encrypted, decrypt it then dig out the
+ * partition table and probe each slice/partition in turn for a vdev or
+ * GELI encrypted vdev.
*/
elba = drvsize_ext(zdsk);
if (elba > 0) {
elba--;
}
zdsk->gdev = geli_taste(vdev_read, zdsk, elba, "disk%u:0:");
- if (zdsk->gdev != NULL) {
- if (geli_havekey(zdsk->gdev) == 0 ||
- geli_passphrase(zdsk->gdev, gelipw) == 0) {
- if (vdev_probe(vdev_read2, zdsk, NULL) == 0) {
- return;
- }
- }
- }
+ if ((zdsk->gdev != NULL) && (geli_havekey(zdsk->gdev) == 0))
+ geli_passphrase(zdsk->gdev, gelipw);
#endif /* LOADER_GELI_SUPPORT */
sec = dmadat->secbuf;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 9, 6:47 PM (7 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38605125
Default Alt Text
D19142.diff (1 KB)
Attached To
Mode
D19142: Remove whole-disk vdev support from zfsboot
Attached
Detach File
Event Timeline
Log In to Comment