FreeBSD Bugzilla – Attachment 119378 Details for
Bug 161897
[zfs] [patch] zfs partition probing causing long delay at BTX loader
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 836 bytes, created by
Steven Hartland
on 2011-10-22 14:10:09 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Steven Hartland
Created:
2011-10-22 14:10:09 UTC
Size:
836 bytes
patch
obsolete
>--- sys/boot/zfs/zfs.c.orig 2011-10-20 18:15:29.966685430 +0000 >+++ sys/boot/zfs/zfs.c 2011-10-20 18:18:22.291033636 +0000 >@@ -45,6 +45,12 @@ > > #include "zfsimpl.c" > >+/* >+ * For GPT this should be 128 but leads to 50+ second delay in BTX loader so >+ * we use the original 4 pre r198420 by default for the boot process >+ */ >+#define ZFS_MAX_SLICES 4 >+ > static int zfs_open(const char *path, struct open_file *f); > static int zfs_write(struct open_file *f, void *buf, size_t size, size_t *resid); > static int zfs_close(struct open_file *f); >@@ -415,7 +421,7 @@ > if (vdev_probe(vdev_read, (void*) (uintptr_t) fd, 0)) > close(fd); > >- for (slice = 1; slice <= 128; slice++) { >+ for (slice = 1; slice <= ZFS_MAX_SLICES; slice++) { > sprintf(devname, "disk%dp%d:", unit, slice); > fd = open(devname, O_RDONLY); > if (fd == -1) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 161897
: 119378