Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 350538 Details for
Bug 472516
=sys-fs/zfs-kmod-0.6.1-r1 - Boot hang at 'Importing ZFS pools'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that might fix the issue
patch (text/plain), 1.36 KB, created by
Richard Yao (RETIRED)
on 2013-06-09 16:06:54 UTC
(
hide
)
Description:
Patch that might fix the issue
Filename:
MIME Type:
Creator:
Richard Yao (RETIRED)
Created:
2013-06-09 16:06:54 UTC
Size:
1.36 KB
patch
obsolete
>diff --git a/module/zfs/zpl_xattr.c b/module/zfs/zpl_xattr.c >index a7e38e6..eb2c00d 100644 >--- a/module/zfs/zpl_xattr.c >+++ b/module/zfs/zpl_xattr.c >@@ -288,7 +288,7 @@ __zpl_xattr_get(struct inode *ip, const char *name, void *value, size_t size, > > if (zsb->z_use_sa && zp->z_is_sa) { > error = zpl_xattr_get_sa(ip, name, value, size); >- if (error >= 0) >+ if (error != -ENOENT) > goto out; > } > >diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c >index b41eeb2..43df7cc 100644 >--- a/module/zfs/zvol.c >+++ b/module/zfs/zvol.c >@@ -1363,7 +1363,7 @@ __zvol_create_minor(const char *name, boolean_t ignore_snapdev) > zv->zv_volsize = volsize; > zv->zv_objset = os; > >- set_capacity(zv->zv_disk, zv->zv_volsize >> 9); >+ set_capacity(zv->zv_disk, 0); > > blk_queue_max_hw_sectors(zv->zv_queue, UINT_MAX); > blk_queue_max_segments(zv->zv_queue, UINT16_MAX); >@@ -1397,6 +1397,12 @@ out: > if (error == 0) { > zvol_insert(zv); > add_disk(zv->zv_disk); >+ /* You must set_capacity() to 0 unless calling setcapacity() *after* >+ you call add_disk(), according to these references: >+ http://osdir.com/ml/linux.enbd.general/2002-10/msg00176.html >+ http://osdir.com/ml/linux.enbd.general/2002-10/msg00177.html >+ http://stackoverflow.com/questions/13518404/add-disk-hangs-on-insmod */ >+ set_capacity(zv->zv_disk, zv->zv_volsize >> 9); > } > > return (error);
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 472516
:
350538
|
350540